Hi,
So I'm trying to initialize a few buttons when my HUD is first opened, but I've run into a problem. If after my HUD is immediately opened and I try to do
The value of Buttons[0] will be none. However if I initialize Buttons[0] at some random point later, it works fine. When I looked at the GFxProjectedUI file in the UTGame directory I noticed they do the exact same thing in the SetupArsenal() class, which is called when the inventory is opened. Without using the WidgetInitialized() function, is there a fix/work around that doesn't involve adding some arbitrary waiting time?
So I'm trying to initialize a few buttons when my HUD is first opened, but I've run into a problem. If after my HUD is immediately opened and I try to do
Code:
Buttons[0] = GFxClikWidget(WireView.GetObject("button1", class'GFxClikWidget'));
Comment