Blockland Forums > Modification Help
[Tutorial] Making a Gui
<< < (4/30) > >>
heedicalking:

--- Quote from: MagicAhrim on April 30, 2009, 09:13:56 PM ---How do i reopen a file i was working on then closed?

--- End quote ---
A GUI? You have to save it as guiname.gui in the gui menu. I same them in add-ons. Then you can re open the I think.
Protokol:

This deserves a sticky
AGlass0fMilk:
There are several reasons why you might not be able to view the GUI in the list:
1: You do not have it packaged with a server/client.cs a description, and the GUI file, you need to have the server/client.cs exec the GUI file, Ill put this in the guide.

2: You have a server.cs file that does not execute the GUI until you load it up in game, load up a mission with it enabled, then open the GUI editor

3: Your server/client.cs or GUI file syntaxes and the engine cannot load up the GUI.

Those are probable reasons.

In your server/client.cs file you must have:

--- Code: ---exec("./guiname.GUI");

--- End code ---
That will make the engine execute the GUI file.
heedicalking:
I cannot find mine to enable under the add-ons menu before you start up a server.Fixed, how do I make it so when I hit the button, it closes the window?
AGlass0fMilk:
Hit what button? Like the escape button on your keyboard? Or the button on your GUI? If it's the second one, you need to make the command canvas.popdialog(yourguiname);
Navigation
Message Index
Next page
Previous page

Go to full version