Game Development Community

How do you clear out board or table or window ??

by Henning Martinsen · in Torque Game Engine · 06/23/2008 (1:22 pm) · 2 replies

Hi
I wonder how I can clear out board or table or window or what ever they been called.
Like clear screen or something like that.

But I have no idea where I can look at and put it in inspector, where you do all your apply.

Any idea ??

#1
06/23/2008 (1:39 pm)
Are you working on a GUI ( Graphic User Interface ), such as a Main Menu?

Even if your not working on a main menu or the like of it, you can load graphic file that is a plain color of your choice in the same manner as the Getting Started.pdf that comes with the engine. It means you need to have player interaction with a button or a key press to activate a script function to load the blank graphic.

Not to sound funny, but why would you want to load a blank screen?
#2
06/23/2008 (2:47 pm)
Am using gui to make different menu board only so user can chooce what ever they want in the game before they beginning to play.

But before that works right I need to clear out one board before new board poping up. Else you will see the board you where going from and can't read what is on the new board.

I think I got the help about this problem, I just change from Canvas.pushDialog(partner); to Canvas.setContent( partner );, problem solved.

I tryed out now and I must remember to make the board/window/table or what ever it's called biger then the problem is gone.
Here the picture showing you what I mean