Posted by aidevelopment on Fri, 29 Jun 2012 19:41:24
Hey All, hoping someone can lend me a hand here. :)
I've been trying to wrap my head around drop down menus for a while now, and it's surprisingly difficult. After following multiple examples and tutorials that don't work, I've hacked together some operable code to get my drop downs working.
However, I'd like to create the dropdowns in XML, and not clutter up my LUA code with it. The problem I'm noticing right now is that I cannot initialize the dropdowns correctly in XML.
This does not work correctly (I end up with a blank drop down box that says "Custom" with no options:
<Button name="QTrack_Main_Cont" parent="QTrack_Main" inherits="UIDropDownMenuTemplate"> <Scripts> <OnLoad> UIDropDownMenu_Initialize(QTrack_Main_Filter, QTrack_Main_Filter_initialize)</OnLoad> </Scripts> </Button>
However, this works fine in LUA, when placed in the drop down's parent frame onload function. UIDropDownMenuInitialize(QTrackMainFilter, QTrackMainFilterinitialize)
Hopefully I'm just missing something simple, anybody have any idea what's up?
Posted by aidevelopment on Fri, 29 Jun 2012 19:42:21
Not sure what's up with the forum post parsing there...
Posted by aidevelopment on Sat, 30 Jun 2012 16:30:59