Hiranus icon

button sample 2

Hiranus | PRO | 09/30/14 02:24:51 PM UTC | 0 ⭐ | 570 👁️ | Never ⏰ | []
Lua |

530 B

|

None

|

0 👍

/

0 👎

os.loadAPI("button")
button.prepareMonitor()
button.setGlobalButtonVar(11,3,2)
function test1()
  print ("test1")
end
function test2()
  print ("test2")
end
function test3()
  print ("test3")
end
function test4()
  print ("test4")
end
button.addBasicButton("This",test1,button.toggle)
button.addBasicButton("API",test2,button.toggle)
button.addBasicButton("Is",test3,button.flash)
button.addBasicButton("Cool",test4,button.toggle)
button.calculateButtons()
button.redrawScreen()
while true do
  button.getClick()
end

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎