Some questions about the GUI
by Tobias Rieder · in Game Design and Creative Issues · 11/22/2004 (11:29 am) · 4 replies
I've some questions about the GUI and may they are noob-questions but i realy don't find the solutions about them.
First problem:
In the default "startMissionGui.gui" of TGE there is a line which loads the map names in a list where you can select them to start it.
Now i made our one .gui file and i want the same list of maps in it.
But there are no maps in our list.
I looked through the hole gui file but with no result for a solution.
Is there anything wrong with the function? Do i have to change something because of the different file name?
Second problem:
The file "demoWindow.png" has the bitmaps for the windows in the GUI.
For our Game we need other colors and an other style but everytime i change the file
there is an error from torque.
How can i make my own "window-bitmap" files or how can a change the original one?
And where is the logic how is this file interpretated?
general:
I'm searching for a detailed GUI-tutorial not just the basics.
The first thread ;)
thanks for answers
greetz
Tobias Rieder
First problem:
In the default "startMissionGui.gui" of TGE there is a line which loads the map names in a list where you can select them to start it.
Quote:and the function on the button (i don't paste it in here, it needs too much space.)
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
....
};
new GuiTextListCtrl(SM_missionList) {
profile = "GuiTextArrayProfile";
....
};
Now i made our one .gui file and i want the same list of maps in it.
But there are no maps in our list.
I looked through the hole gui file but with no result for a solution.
Is there anything wrong with the function? Do i have to change something because of the different file name?
Second problem:
The file "demoWindow.png" has the bitmaps for the windows in the GUI.
For our Game we need other colors and an other style but everytime i change the file
there is an error from torque.
How can i make my own "window-bitmap" files or how can a change the original one?
And where is the logic how is this file interpretated?
general:
I'm searching for a detailed GUI-tutorial not just the basics.
The first thread ;)
thanks for answers
greetz
Tobias Rieder
About the author
#2
1) I cannot directy answer this question, I don't know exactly how it functions. I would recommend examining where the SM_missionList data is coming from as a start, though.
2) The file is interpreted by using the red lines as a dividing grid. If you edit this file you'll need to make sure that whatever color is in the top left corner of the image array is used as a divider between all images in the array. The ordering of elements for the window display is coded into the window GUI control, but you should be able to "reskin" the windows by replacing the components and keeping them in the same order.
12/03/2004 (10:48 am)
Re:1) I cannot directy answer this question, I don't know exactly how it functions. I would recommend examining where the SM_missionList data is coming from as a start, though.
2) The file is interpreted by using the red lines as a dividing grid. If you edit this file you'll need to make sure that whatever color is in the top left corner of the image array is used as a divider between all images in the array. The ordering of elements for the window display is coded into the window GUI control, but you should be able to "reskin" the windows by replacing the components and keeping them in the same order.
#3
03/09/2005 (8:06 pm)
Did you solve your problem Tobias?
#4
It's still on my todo-list, I will look after it sometime.
Why?
03/13/2005 (7:51 am)
Well not really but I didn't spend much time on this problem.It's still on my todo-list, I will look after it sometime.
Why?
Tobias Rieder
please help!
//push up//