Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tommyc on Tue 23/11/2004 16:25:39

Title: problems with gui
Post by: tommyc on Tue 23/11/2004 16:25:39
i have 2 problems the first one is how do i get rif of the drop down menu on my splash screen.

the second one is after i click new game and my AVI show the inventory GUI apears it the defult mone execpt i put a back ground on it and changed some buttons.
Title: Re: problems with gui
Post by: Candle on Tue 23/11/2004 16:29:44
DisableInterface ()

Disables the player interface. This works the same way as it is disabled while an animation is running: the mouse cursor is changed to the Wait cursor, and mouse clicks will not be sent through to the "on_mouse_click" function. Also, all interface buttons will be disabled.
NOTE: AGS keeps a count of the number of times DisableInterface is called. Every call to DisableInterface must be matched by a later call to EnableInterface, otherwise the interface will get permanently disabled.

Example:

DisableInterface();

will disable the user's interface.
Title: Re: problems with gui
Post by: Scummbuddy on Wed 24/11/2004 02:19:32
actually, we would suggest that you use GUIOff(#); instead. Chris is on the way of getting rid of InterfaceOn and Off.

You'll need to be a bit more clear on your second question, please.
Title: Re: problems with gui
Post by: Gilbert on Wed 24/11/2004 02:24:11
Hehe, Scumm, you should read more carefully. They didn't mention InterfaceOn/Off(), En/DisableInterface() are actually different things.
Title: Re: problems with gui
Post by: Scummbuddy on Wed 24/11/2004 04:58:32
I knew all this Halo2 Xbox Live would get to me. Thanks for the correction.  ;D
Title: Re: problems with gui
Post by: tommyc on Wed 24/11/2004 16:49:50
i will refrase the second question as thats the one thats realy bugging me at the momnet

when i load up my game the first screen that the player charcter is visble in the quit gui apears it also started happening when i click a guioff(#) button to exit other GUI's it closes the first gui and loads up the exit GUI
Title: Re: problems with gui
Post by: Scummbuddy on Wed 24/11/2004 19:43:26
a) select the character not visible in this room, on the room settings. below where you would select to import a background image

b) this sounds like a problem with braces to me. you can feel free to upload your code and we can view it and see your problem. i suspect that you are either missing a brace, or it was placed incorrectly.