Poll

Did you find this helpful?

Yes
No

Author Topic: [Tutorial] Making a Gui  (Read 44986 times)

How do i reopen a file i was working on then closed?
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.


This deserves a sticky
« Last Edit: May 03, 2009, 04:54:34 AM by Protokol »

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: [Select]
exec("./guiname.GUI");
That will make the engine execute the GUI file.

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?
« Last Edit: May 02, 2009, 08:57:38 PM by heedicalking »

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);

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);
It is second, I made that like it said in tutorial but when I hit the button the message pops up.




NOT LETTING THIS DIE STILL!


Last part is confusing, got errors in console and cant figure the problem out :C

All this stuff is for windows XP and Vista, But what to do if you're on a mac to get to the MOD Editor

And if you people think its funny to say "Buy windows" its not.


I can't help you if your on a mac, sorry.