Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------
- -- --
- -- 1ng0`s XP-Shower --
- -- --
- ----------------------
- redstone.setOutput("front", true)
- os.loadAPI("button")
- m = peripheral.wrap("bottom")
- m.clear()
- --screen()
- function fillTable()
- button.setTable("10 Lvl.", test1, 2,8,2,4)
- button.setTable("20 Lvl.", test2, 11,17,2,4)
- button.setTable("30 Lvl.", test3, 2,8,6,8)
- button.setTable("? Lvl.", test4, 11,17,6,8)
- button.setTable("- Lvl", test5, 2,8,10,12)
- button.setTable("+ Lvl", test6, 11,17,10,12)
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function test1()
- button.flash("10 Lvl.")
- -- print("10")
- end
- function test2()
- button.flash("20 Lvl.")
- -- print("20")
- end
- function test3()
- button.flash("30 Lvl.")
- -- print("30")
- end
- function test4()
- end
- function test5()
- button.toggleButton("- Lvl")
- if button("- Lvl")("active") then
- redstone.setOutput("back", true)
- else
- redstone.setOutput("back", false)
- end
- end
- function test6()
- button.toggleButton("+ Lvl")
- --if button.toggleButton[+ Lvl]["active"] then
- -- redstone.setOutput("front", false)
- -- button[+ Lvl]["active"] = false
- --else
- -- redstone.setOutput("front", true)
- -- buttons[+ Lvl]["active"] = true
- --end
- end
- fillTable()
- button.heading("1ng0`s XP-Shower")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement