1 registered members (flink),
767
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
GUID (Graphical User Interface Designer)
#232002
10/18/08 18:32
10/18/08 18:32
|
Joined: Mar 2005
Posts: 564 /www/europe/ germany/index.php
TSG_Torsten
OP
User
|
OP
User
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
|
Hi all, I've developed a tool which should help you designing menus or interfaces for GameStudio. First of all, the Download-Site: http://tsgames.de/?item=279You also find there more information about the usage. All you create with this tool is free for commerical or non-commercial use. A credit would be nice, but is not needed. Here is a small feature list: - Create panels or buttons from tga, pcx or bmp files
- Align panels at top, bottom, left, right, center
- Render simple images or text buttons (with mouse_off, over and click)
- Create sub-menus (different "pages")
- Assign OnClick-functions to panels or buttons
- Create menus which always fit the current screen size
- Easy panel positioning by mouse and arrow-keys
- Copy & Paste panels
- Create ledger lines to set panels at the right position
- C-Script and Lite-C Code-Export (Thanks to Lukas and Virtualmarc)
Comments, Suggestions, as well as Crtitics are welcome I Hope it is usefull for some of you P.S.: Often the tool does crash for different reasons. You can restore your project by terminating the process and restarting the tool. It will ask you to restore your last auto-save (will be created every 10 seconds)
|
|
|
Re: GUID (Graphical User Interface Designer)
[Re: NITRO777]
#232013
10/18/08 19:55
10/18/08 19:55
|
Fear411
Unregistered
|
Fear411
Unregistered
|
looks very cool. Does it support resolution change?
|
|
|
Re: GUID (Graphical User Interface Designer)
[Re: ]
#232014
10/18/08 20:02
10/18/08 20:02
|
Joined: Mar 2005
Posts: 564 /www/europe/ germany/index.php
TSG_Torsten
OP
User
|
OP
User
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
|
looks very cool. Does it support resolution change? It support to export menus which being fitted to the current screen-size. That means, you create a menu optimized for 1024x768. When the user runs a 800x600 screen, all panels being scaled smaller and will be set exactly at the right position. The alignment of panels (bottom, right, center, etc.) of course works in every resolution, either. For this feature the code-exporter generates a startup function called "set_menu_startup()" in which the positions will be continously calculated. Regards TSGames
|
|
|
Re: GUID (Graphical User Interface Designer)
[Re: TSG_Christof]
#232020
10/18/08 20:24
10/18/08 20:24
|
Joined: Mar 2003
Posts: 3,010 analysis paralysis
NITRO777
Expert
|
Expert
Joined: Mar 2003
Posts: 3,010
analysis paralysis
|
Why are none of the panels showing up? The following is the generated script: All I did was get rid of the menu code. I included this generated script from main...?? PANEL* pa_2 =
{
bmap="simple_2.tga";
layer=3 ;
pos_x=120 ;
pos_y=300 ;
scale_x=9.665 ;
scale_y=7.176 ;
angle=153.104 ;
}
PANEL* pa_4 =
{
bmap="simple_4.tga";
layer=5 ;
pos_x=220 ;
pos_y=120 ;
scale_x=2.825 ;
scale_y=2.825 ;
}
PANEL* pa_6 =
{
bmap="simple_6.tga";
layer=7 ;
pos_x=240 ;
pos_y=140 ;
scale_x=1.497 ;
scale_y=0.286 ;
}
BMAP* roll_primary_0="roll_primary_0.tga";
BMAP* roll_primary_1="roll_primary_1.tga";
BMAP* roll_primary_2="roll_primary_2.tga";
PANEL* pa_7 =
{
bmap=roll_primary_0;
button(0,0,roll_primary_2,roll_primary_0,roll_primary_1,NULL,NULL,NULL);
layer=8 ;
pos_x=280 ;
pos_y=140 ;
flags=OVERLAY;
}
void set_panels_startup()
{
while(1)
{
wait(5);
}
}
function roll_primary()
{
// Enter function content...
random(10);
} This is the simple main script which calls it: ////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
#include <panels.c>
var a = 1;
var b = 2;
var c = 0;
/////////////////////////////////////////////////////////////////////
/*PANEL* panDisplay =
{
digits(35, 10, "a = %0.f", *, 1, a);
digits(35, 19, "b = %0.f", *, 1, b);
digits(35, 28, "c = %0.f", *, 1, c);
flags = VISIBLE;
}*/
/////////////////////////////////////////////////////////////////////
function test()
{
var counter = 1;
while (counter > 0)
{
randomize();
a=random(15)+3;
b=random(15)+3;
c=random(15)+3;
wait (1);
counter = counter -1;
}
}
function main()
{
video_mode = 8; // create a program window of 1024x768 pixels
//screen_color.blue = 150; // and make its background dark blue
test();
}
|
|
|
Re: GUID (Graphical User Interface Designer)
[Re: NITRO777]
#232023
10/18/08 20:54
10/18/08 20:54
|
Joined: Mar 2005
Posts: 564 /www/europe/ germany/index.php
TSG_Torsten
OP
User
|
OP
User
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
|
I figured it out, I had to set the panels to flags=VISIBLE, I dont know why, maybe a difference between c-script and lite-c, IM using lite-c. Works ok now I guess.. The code export has the functions open_menu, open_global and open_menu_1 ... 10 to show the panels. So you can open the menu when you need it. Example of one of this function:
void open_global()
{
close_menu();
SET(pa_0,VISIBLE);
SET(pa_1,VISIBLE);
}
Just call this functions. More you can find at the download site, section "Code Implementation". I hope I could help you. Regards TSGames
|
|
|
|