GUI deletion question

Started by xeroxeroxero, Sat 27/09/2008 12:08:47

Previous topic - Next topic

xeroxeroxero

This is my first post here (and my first post on any forum) so be gentle,

I am currently making a new title and what I want to do is remove the toolbar on the game screen completely. I understand this is called the GUI. I have "deleted" some of them, but when I go to run the game I get the error message

GlobalScript.asc(6): Error (line 6): Undefined token 'gPanel'

The idea, you see, is that I remove all toolbars, so that the game is entire mouse controlled, and does not go through any other interface. I am hoping that this is a beginners question, but it sure seems tricky to me!

Anyway I am very stuck and would like to move on in this project so any help would be much appreciated.

Khris

There are several GUIs, gPanel is the settings GUI implemented in the default game template (which lets you save/restore and change settings).

Either restart and delete just gStatusline, or remove every reference to gPanel from the global script (the first, causing the mentioned error, being initialize_control_panel()).

xeroxeroxero

So if I were to restart building the game and just delete this gline from, i'm assuming the GUI's section, this would solve it? Only I have just gone through the script and it will take forever to do it the other way. I apologise if i'm not up on my scripting, I'm really new to this programming thing.

Pumaman

The easiest thing to do is leave the GUIs there, but switch them off. So rather than deleting them, just open them up and make sure that the Visibility setting in the properties pane is set to Off / Popup Modal.

That way you can leave the script alone and you just won't see the GUIs.

xeroxeroxero

AWESOME! Thank you very much for the responses to my question. I can tell already that this is a really positive community.  ;D

SMF spam blocked by CleanTalk