Thread: Nesting Issues
View Single Post
  #5  
Unread 05-02-2012, 04:03 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Send a message via AIM to Drumstix42 Send a message via MSN to Drumstix42 Send a message via Yahoo to Drumstix42
Default

EQAditu is right, and gm9 had stated it a few times in the past in a few topics.

You can figure out it's called "_HUD" by echoing some ".Name" parameters to the chat window or to a ui text elelment.
Basically if you do it in UIBuilder one way, you just need to remove a ".Parent.MainHUD" from your code for it to work normally in-game.

You CAN still use Parent.MainHUD in some cases, or for other parts of the UI, but it will only seem to modify the code if that window is never shown automatically, or ever receives a /show_window command. This command seems almost like an initialization code, as in it adds it to the "_HUD" root.

For the reason above, is why you must use the /show_window command once per "new" custom window you add, before you try to access it via UI code.
In my UI, I use tons of customs windows to save locations/sizes as settings, and I have to make sure I use the /show_window command for all of them.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote