Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GuiH = require("GuiH")
- local gui = GuiH.create_gui(term.current())
- gui.create.switch({
- x=5,y=6,width=10,height=3,
- background_color=colors.green,
- text=gui.text{
- text="reboot",
- centered=true,
- transparent=true
- },
- on_click=check_switch(object)
- })
- local function check_switch(object)
- print(object.value)
- end
- gui.execute()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement