Author Topic: How do you save GUIs?  (Read 894 times)

How do you save GUIs so you can open it in the middle tab of the GUI editor? Because, whenever I restart Blockland, the GUI isn't there. I don't know where to save it to make it show up.

myguiname.save("base/mygui.cs");


When you want to edit it again...
exec("base/mygui.cs");

myguiname.save("base/mygui.cs");


When you want to edit it again...
exec("base/mygui.cs");
Should it be a CS file, or should it actually be a GUI file?

myguiname.save("base/mygui.cs");


When you want to edit it again...
exec("base/mygui.cs");
Wrong!

GUIName.save("base/lighting/guiname.gui");

Once you restart

exec("base/lighting/guiname.gui");

Should it be a CS file, or should it actually be a GUI file?

GUI file

It would function fine if both are .cs files, but it is good to keep in mind that the built in saving feature uses .GUI

GUI files are full of ASCII text anyway.

Pacnet attempts to correct me but fails

GUI files are full of ASCII text anyway.
I can make a .ahbiurh file full of ascii text and it won't execute, so your comparison isn't really a valid point here.

It can be either a .cs or .gui file, it really doesn't matter, but if you're packaging it then it's good practice to have it a .gui file.