GUID (Graphical User Interface Designer)

Posted By: TSG_Torsten

GUID (Graphical User Interface Designer) - 10/18/08 18:32

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=279

You 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 wink

I Hope it is usefull for some of you smile

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)
Posted By: virtualmarctek

Re: GUID (Graphical User Interface Designer) - 10/18/08 18:36

Endlich mal nen Programm um leicht Menüs zu erstellen.
Posted By: NITRO777

Re: GUID (Graphical User Interface Designer) - 10/18/08 19:02

wow. It looks extremely useful and professionally done. I am too busy to test it closely now, but I will look at it in the next couple of days. Right now,however, it looks awesome! Thanks!
Posted By: Anonymous

Re: GUID (Graphical User Interface Designer) - 10/18/08 19:55

looks very cool.
Does it support resolution change?
Posted By: TSG_Torsten

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:02

Originally Posted By: Fear411
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
Posted By: NITRO777

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:03

Hi yes I had a chance to test it. Its not perfect but it is very usable and helpful. Thanks a lot!
Posted By: TSG_Christof

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:07

I have work with it its easy to use
Posted By: NITRO777

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:24

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...??
Code:
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:

Code:
////////////////////////////////////////////////////////////////////
#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();
} 

Posted By: NITRO777

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:44

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..
Posted By: TSG_Torsten

Re: GUID (Graphical User Interface Designer) - 10/18/08 20:54

Originally Posted By: TriNitroToluene
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:
Code:
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
Posted By: Blink

Re: GUID (Graphical User Interface Designer) - 10/19/08 00:25

are you going to do a c-script version for us still using?
Posted By: TSG_Torsten

Re: GUID (Graphical User Interface Designer) - 10/19/08 02:42

Originally Posted By: Blink
are you going to do a c-script version for us still using?


The tool already supports c-script export as well as the lite-c export. wink

Regards
TSGames
Posted By: Vadim647

Re: GUID (Graphical User Interface Designer) - 10/19/08 17:33

Nice tool. Nice site. But why it's mixed up English & German languages in? (looks a bit weird)
Posted By: TSG_Torsten

Re: GUID (Graphical User Interface Designer) - 10/20/08 03:39

Originally Posted By: Vadim647
Nice tool. Nice site. But why it's mixed up English & German languages in? (looks a bit weird)

The site is normally just visited by german users. But because the Management System, which the site is using, is great for uploading files and describing them, I decided to publish the tool there.

Regards
TSGames
Posted By: Masterchief_JB

Re: GUID (Graphical User Interface Designer) - 10/22/08 18:41

Thank you very much! This tool makes many things much easier! Thank you very much!
Posted By: Meerkat

Re: GUID (Graphical User Interface Designer) - 10/30/08 20:04

Nice Tool! Thank you TSG_Torsten! :3 It making some easyer for me. ^^
Posted By: 3aTmE

Re: GUID (Graphical User Interface Designer) - 10/31/08 17:15

wow, i was since a longer time ago not more online at the forums.. i must say... im realy suprised about this tool.. ^^
i must at this szene now think back ad the paneleditor *hehe*
well, good work dude!
Posted By: Muhsin

Re: GUID (Graphical User Interface Designer) - 11/13/08 18:55

Looks Nice!!!
is it easy to use?
© 2024 lite-C Forums