Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
xml panel repeater
--lua 5.3 local colors = {} colors[1] = "White" colors[2] = "Blue" colors[3] = "Brown" colors[4] = "Green" colors[5] = "Orange" colors[6] = "Pink" colors[7] = "Purple" colors[8] = "Red" colors[9] = "Teal" colors[10] = "Yellow" function getxml(c) local str = [[ <Panel id="hud_]]..string.lower(c)..[[" class="container" visibility="]]..c..[[" active="false"> <Mask image="mask_controls"> <Panel class="inner"> <TableLayout> <Row> <Cell><Slider maxValue="100" class="red" id="slider_health_]]..string.lower(c)..[["><Text>HEALTH</Text></Slider></Cell> <Cell><Button text="7" onClick="xml_attack1"></Button></Cell> <Cell><Button text="8" onClick="xml_attack2"></Button></Cell> <Cell><Button text="9" onClick="xml_attack3"></Button></Cell> </Row> <Row> <Cell><Slider maxValue="100" class="green" id="slider_energy_]]..string.lower(c)..[["><Text>ENERGY</Text></Slider></Cell> <Cell><Button text="4" onClick="xml_jump"></Button></Cell> <Cell><Button text="5" onClick="xml_move_forwards" icon="arrow_up"></Button></Cell> <Cell><Button text="6" onClick="xml_jump"></Button></Cell> </Row> <Row> <Cell><Slider maxValue="100" class="blue" id="slider_stamina_]]..string.lower(c)..[["><Text>STAMINA</Text></Slider></Cell> <Cell><Button text="1" onClick="xml_move_left" icon="arrow_left"></Button></Cell> <Cell><Button text="2" onClick="xml_move_backwards" icon="arrow_down"></Button></Cell> <Cell><Button text="3" onClick="xml_move_right" icon="arrow_right"></Button></Cell> </Row> </TableLayout> </Panel> </Mask> </Panel>]] print(str) end for _,v in ipairs(colors) do getxml(v) end
run
|
edit
|
history
|
help
0
Basic Lehmer RNG implementation using closures
ShSlotMachine_Data
Hand positions in a circle
PAID HACK PuBG
Code golf - ASCII art #1
test
Goalless DRAWS
anti.lua
855
PAID HACK PuBG