
-----------------------------------
Kyle Biro
Sun Nov 24, 2013 8:19 am

GUI.CreateButtonFull text on button disappears.
-----------------------------------
What is the problem you are having?
When I run my game, the first thing that shows up is one button that says "Start Game Describe what you have tried to solve this problem
GUI.Refresh, but nothing changed


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
This is the code that handles with the menu (the button that shows up at the start).



proc menu
    var startGameButton : int
    startGameButton := GUI.CreateButtonFull (maxx div 2 - 100, maxy div 2, 200, "START GAME  

Please specify what version of Turing you are using
Turing 4.1

-----------------------------------
Dreadnought
Sun Nov 24, 2013 2:46 pm

Re: GUI.CreateButtonFull text on button disappears.
-----------------------------------
Seems to work fine for me...

Are you using "offscreenonly" by any chance?

-----------------------------------
Kyle Biro
Sun Nov 24, 2013 8:26 pm

RE:GUI.CreateButtonFull text on button disappears.
-----------------------------------
Ah, yes, I do have an "offscreenonly" in a different file. Is that what causes the problem?

-----------------------------------
Dreadnought
Sun Nov 24, 2013 9:38 pm

Re: GUI.CreateButtonFull text on button disappears.
-----------------------------------
Well if your in "offscreenonly" mode, the window won't get updated until you call [tdoc]View.Update[/tdoc] (however, alt-tabbing will force an update I think).

-----------------------------------
Tony
Sun Nov 24, 2013 9:41 pm

RE:GUI.CreateButtonFull text on button disappears.
-----------------------------------
View.Update for the offscreenonly mode (which buffers graphics until the frame is ready).

-----------------------------------
Kyle Biro
Mon Nov 25, 2013 5:43 am

RE:GUI.CreateButtonFull text on button disappears.
-----------------------------------
Does it matter where the View.Update goes in the code? I put it just above the loop and it seems to work fine.

Nevertheless, thank you everybody.
