Old 12-11-2018, 05:25 PM   #1
tXShooter
Human being with feelings
 
tXShooter's Avatar
 
Join Date: Aug 2017
Posts: 336
Default Combobox in the Lokasenna V2 GUI environment?

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.
__________________
"But be ye doers of the word, and not hearers only, deceiving your own selves."
tXShooter is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:10 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.