I just tried it myself in an empty game, and here it works perfectly too.
*Sigh* I guess this is where the endless hunt for the bug begins...
UPDATE:
Finally for some reason beyond my knowledge I ended up taking the code into the same function that actually made the GUI visible, and then it worked flawlessly. Why I cannot say...
Of course this is a little inelegant, but it works.
*Sigh* I guess this is where the endless hunt for the bug begins...
UPDATE:
Finally for some reason beyond my knowledge I ended up taking the code into the same function that actually made the GUI visible, and then it worked flawlessly. Why I cannot say...
Of course this is a little inelegant, but it works.