Advertisement
Dalznkaa

Untitled

Oct 15th, 2022 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. local GuiH = require("GuiH")
  2. local gui = GuiH.create_gui(term.current())
  3. gui.create.switch({
  4. x=5,y=6,width=10,height=3,
  5. background_color=colors.green,
  6. text=gui.text{
  7. text="reboot",
  8. centered=true,
  9. transparent=true
  10. },
  11. on_click=check_switch(object)
  12.  
  13. })
  14. local function check_switch(object)
  15. print(object.value)
  16. end
  17. gui.execute()
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement