So far I have used them successfully.
I am stuck on the button_add one when trying to use both pressed and released
The example given enables the pressed state to be sensed as per the example in "Lua tips & tricks"
Code: Select all
button_add("pressed.png", "released.png", 0, 0, 256, 256, function()
print("Button has been pressed")
end)
Code: Select all
button_id = button_add(img_normal,img_pressed,x,y,width,height,click_press_callback,click_release_callback)
Or is it not possible?