Vida Marcell Posted April 8, 2022 Posted April 8, 2022 I want to make lod generator for checking texture resolutions, basicall when i push the lod levels in the listbox, the image's resolution will change. But how can i get the selected item, to do something when its selected? Quote
Josh Posted April 8, 2022 Posted April 8, 2022 The widget emits a WIDGETSELECT event when a new item is selected, with the item index stored in the event data member. https://www.ultraengine.com/learn/CPP/CreateListBox Quote Let's build cool stuff and have fun.
Vida Marcell Posted April 8, 2022 Author Posted April 8, 2022 Thanks Josh, i know that, i read it, but i dont understand. How can the code know if i push the "lod 1" button? Can you give me a little example Quote
Vida Marcell Posted April 8, 2022 Author Posted April 8, 2022 Allright wait, now i know how should i do it, the event.data gives me the number of the selected button. 1 1 Quote
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.