Has anyone had any luck forming a dropdown listbox or combobox in Lokasenna's Lua GUI (or any GUI for that matter)? If so, would ya help a brother out?
I know there needs to be layers, that part I get. I know it should have some kind of 'mouse-down' event that switches the text box with the menu box layers, but I'm not sure how to go about switching the layers.
Quote:
Z-layers
_z_ is used to establish a front-to-back hierarchy for the various elements. This concept will be familiar to most as "layers", in Photoshop for instance. A _z_ value of 1 would be "front", with no practical limit (okay, roughly a thousand) on how many layers are allowed.
When GUI.Main checks for user input, it updates the elements on each z-layer from front to back so that elements in front will always catch the input first.
Likewise, when elements have changed and request a redraw, they use their z-layer. Scripts can also call for redraws on either specific layers or all the visible ones.
|