Game Development Community

2 gui problems

by gr33ny · in Game Design and Creative Issues · 08/30/2007 (9:03 pm) · 2 replies

First of all, whenever i save a gui, it doesnt appear in the gui section so when i try to edit it later i can't find it, but when i save a gui, i can see the gui which i couldn't find's name. i know this is a very simple thing to do and isn't really a problem, i just havent really looked into it, and since i have another question, might as well get this outta the way too.

Secondly, i want to change how the guiwindowctrl looks. i've tried changing some parts of the defaultprofile.cs or whatever its called, and ive tried changing the demo window png file but when i do these things, my game crashes when i open up the gui edit window.
Thanks!

#1
08/30/2007 (9:28 pm)
1) You need to execute GUI scripts in order for them to show up. Check out starter.fps/client/init.cs to see how it's done.

Example:
// Load up the shell GUIs
   exec("./ui/mainMenuGui.gui");
   exec("./ui/aboutDlg.gui");
   exec("./ui/startMissionGui.gui");
   exec("./ui/joinServerGui.gui");
   exec("./ui/loadingGui.gui");
   exec("./ui/endGameGui.gui");
   exec("./ui/optionsDlg.gui");
   exec("./ui/remapDlg.gui");
   exec("./ui/StartupGui.gui");

2) You can re-skin the GUI bitmaps but you need to leave a 1 pixel space between each of the widgets. You can use any pure RGB color for the background. If you don't do this, the engine will crash.

Example:

i5.photobucket.com/albums/y189/fjs/demoWindow.png
#2
08/31/2007 (1:34 pm)
Thanks a lot, i thought if i went over the red lines whatever i did would just be stretched. thanks a lot again.