Vince Posted September 15, 2019 Share Posted September 15, 2019 So would I be able to connect a MouseDown function to each button I add for a list of items or a set up. like so: function CreateLayout() local ui --make ui frame and items --set pos in scrolling ui return ui end for i,v in pairs(player_invy) do local ui = CreateLayout() ui.ItemName = v.name ui.itemImage = v.image ui.itemqty = v.qty end function Script:MouseDown(button,x,y) Not quite sure what the button variable does as I can't seem to find a section for it. If it's what button it pressed then I can just catalog the buttons in an array and loop though? Quote Link to comment Share on other sites More sharing options...
Josh Posted September 16, 2019 Share Posted September 16, 2019 Have you seen the example here? https://www.leadwerks.com/learn?page=API-Reference_Object_Widget_Button Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.