Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
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 Offline OP

User
TSG_Torsten  Offline 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=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)

Re: GUID (Graphical User Interface Designer) [Re: TSG_Torsten] #232003
10/18/08 18:36
10/18/08 18:36
Joined: Mar 2008
Posts: 68
Germany, Essen
V
virtualmarctek Offline
Junior Member
virtualmarctek  Offline
Junior Member
V

Joined: Mar 2008
Posts: 68
Germany, Essen
Endlich mal nen Programm um leicht Menüs zu erstellen.


mfg, Marc V.
Re: GUID (Graphical User Interface Designer) [Re: TSG_Torsten] #232008
10/18/08 19:02
10/18/08 19:02
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
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!

Re: GUID (Graphical User Interface Designer) [Re: NITRO777] #232013
10/18/08 19:55
10/18/08 19:55

F
Fear411
Unregistered
Fear411
Unregistered
F



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 Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
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

Re: GUID (Graphical User Interface Designer) [Re: NITRO777] #232015
10/18/08 20:03
10/18/08 20:03
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
Hi yes I had a chance to test it. Its not perfect but it is very usable and helpful. Thanks a lot!

Re: GUID (Graphical User Interface Designer) [Re: TSG_Torsten] #232016
10/18/08 20:07
10/18/08 20:07
Joined: Mar 2006
Posts: 237
Deutschland, NRW, Recklinghaus...
TSG_Christof Offline
Member
TSG_Christof  Offline
Member

Joined: Mar 2006
Posts: 237
Deutschland, NRW, Recklinghaus...
I have work with it its easy to use

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 Offline
Expert
NITRO777  Offline
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...??
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();
} 


Re: GUID (Graphical User Interface Designer) [Re: NITRO777] #232022
10/18/08 20:44
10/18/08 20:44
Joined: Mar 2003
Posts: 3,010
analysis paralysis
NITRO777 Offline
Expert
NITRO777  Offline
Expert

Joined: Mar 2003
Posts: 3,010
analysis paralysis
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..

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 Offline OP

User
TSG_Torsten  Offline OP

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
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

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1