Search found 5 matches
- Mon Apr 10, 2023 2:34 am
- Forum: Support and Development
- Topic: Button not recognizing different number of presses
- Replies: 2
- Views: 1261
Re: Button not recognizing different number of presses
Thanks so much! It was just that I wasn't passing arguments from mousepressed lol. Def something I should've checked but whatever. Appreciate your help!
- Sun Apr 09, 2023 9:02 pm
- Forum: Support and Development
- Topic: Button not recognizing different number of presses
- Replies: 2
- Views: 1261
Button not recognizing different number of presses
The following is the function I am using to create the button: function gui.addIconButton2TouchSupport(px,py,onpress,onpress2,col,icon,sw,sh) --pos, size, function to excec when button is clicked, color, icon as love image, optional w/h local ico=icon or'' local btncol=col or{1,1,1} local btn={ p={x...
- Sat Dec 31, 2022 12:24 am
- Forum: General
- Topic: For loop not iterating through all objects of list?
- Replies: 6
- Views: 1906
Re: For loop not iterating through all objects of list?
Thank you! The problem was the mousepressed thing, plus I localized a bunch of stuff so yeah looking way better now
- Fri Dec 30, 2022 4:27 am
- Forum: General
- Topic: For loop not iterating through all objects of list?
- Replies: 6
- Views: 1906
- Thu Dec 29, 2022 4:59 am
- Forum: General
- Topic: For loop not iterating through all objects of list?
- Replies: 6
- Views: 1906
For loop not iterating through all objects of list?
load=function(self) called=true guiobj={} table.insert(guiobj,gui.addBtn(love.graphics.getWidth()/2.25,450,100,30, function(self) if(not coin.flip)then coin.flip=true end end,"call it",{1,0,1})) table.insert(guiobj,gui.addToggle(200,200,50,50,called)) end, update=function(self) for i=1,#g...