It looks like you're new here. If you want to get involved, click one of these buttons!
mainmenu = gideros.class(Sprite) function mainmenu:init() --Create Event Button local createBtn = Button.new() createBtn:setPosition(40, 200) createBtn:setSize(250,100) --Create Event Mask createBtn:setBGImage("Images/btn1.png") createBtn:setImage("Images/btn1_over.png") --The Actual Button and Listener createBtn:addEventListener("click", function() sceneManager:changeScene("createEvent", .25, SceneManager.overFromLeftWithFade) end) addToRootView(createBtn) end |