Computer Science Canada How could you make a GUI like this one.... |
Author: | rbb [ Fri May 09, 2003 10:02 am ] |
Post subject: | How could you make a GUI like this one.... |
How do you make a custom GUi but with different button formations and differnts background colors. Like this one 2D shooter game 6 Homer_simpson 183 Sat Apr 26, 2003 12:38 pm Homer_simpson It's on the submission forum |
Author: | Homer_simpson [ Fri May 09, 2003 11:18 am ] |
Post subject: | |
try http://www.compsci.ca/bbs/viewtopic.php?t=623 I have put all the Custom GUI that i used in 2D shooter in there... if you need any help with using them just lemme know... |
Author: | rbb [ Mon May 12, 2003 8:37 am ] |
Post subject: | Okay I need some help here... |
Alright I was just wondering how you made your layout for that spaceship game so centered and looked good. I tried to use your custom GUI thing and all I can get is the button thing on the left side. I just need some assistance on how to center it and make it look decently presentable. |
Author: | Homer_simpson [ Mon May 12, 2003 12:57 pm ] | ||
Post subject: | |||
ok... for that you need another one of my functions
you have to know how to use menu function... here are the instructions: function menu (num, x1, x2, y1, ksp, dssp, c1, c2 : int, s : array 1 .. * of string) : int num is the number of options the menu will have (in my example 5) x1 is where in x grid the menu starts x2 is where in x grid the menu ends y1 is where in y grid the menu starts(y2 will be caclulated depending on number of options and distances between them...) ksp indicates how tall each buttons is dssp sets the space between each button c1 is the color 1(when mouse is not over) c2 is the color 2(when mouse is over) s is an array of string which will be used to set the text for the buttons you have to declare a variable like this var menutext:array 1..numberofoptions of string and then give it value like this menutext(1):="blah blah" menutext(2):="blah blah" menutext(3):="blah blah" . . . if anymore questions please ask... |
Author: | rbb [ Tue May 13, 2003 8:41 am ] |
Post subject: | To cahnge teh background color do you... |
To change the background color do you use drawfill and things like that and to have the button link to another page;. How do you do these things |
Author: | Homer_simpson [ Tue May 13, 2003 4:39 pm ] | ||
Post subject: | |||
well just use an if statement and say like :
|