Gamestudio GUI

Posted By: MasterQ32

Gamestudio GUI - 06/20/10 13:36

Hey Guys,
if you want to use listboxes or comboboxes in your project,
download my gui library!
I want to create a library, which is able to create a whole gui
for your game or your program!
this library is build very simple, with panels and texts, but it
works
Download and try it!
GUI Documentation and Download
Posted By: TSG_Torsten

Re: Gamestudio GUI - 06/21/10 10:20

Great idea!

And well-done documentation!

Thanks for sharing this work with us!

Regards
TSGames
Posted By: MasterQ32

Re: Gamestudio GUI - 06/21/10 12:20

i will add some other features like textbox or menubar, but not this week, maybe next week, because i don't need this features at the moment and i will add it if i need them.
another idea is that you can use background images or borders created by a function or a color transition as bg
Posted By: MasterQ32

Re: Gamestudio GUI - 07/10/10 15:04

New Update!

The GUI now provides Checkboxes and Radiobuttons!

You can download it here:
http://www.masterq32.de/gui/
The link also contains a full documentation of the Project!

Use it, you don't need to use credits, but it would be nice if you note my name in your credits.
Posted By: Razoron

Re: Gamestudio GUI - 07/10/10 15:45

I can't download it. I'm waiting on masterq32.de for over 2 minutes now.
Posted By: MasterQ32

Re: Gamestudio GUI - 07/10/10 15:48

Originally Posted By: Razoron
I can't download it. I'm waiting on masterq32.de for over 2 minutes now.

strange, on my computer it doesn't take longer than a half second

you can try it again, the site is full online
Posted By: Damocles_

Re: Gamestudio GUI - 07/11/10 00:40

Thanks for the contribution.

---

As a side-note to make your contribution more "popular":

Always offer an easy to run example project to showcase your
project. (not just a code fragment)
This way you will receive more response.
Posted By: Liamissimo

Re: Gamestudio GUI - 07/11/10 10:26

I am agreeing to Damocles, I also downloaded it but I didn't used it because there were no example
Posted By: MrGuest

Re: Gamestudio GUI - 07/11/10 11:22

Nice contribution,

Things to try:
-easy ability to change the optionbutton and checkbox image,
-until an item is selected on a listbox or combobox, it should return -1 for the selection instead of 0,
-add a function for returning the selected line number as well as the string.
-change your variable types from var to short (some people will say there's not much impact, but there's a lot of vars and you never know how many of your tools the end-user will create)
-add use of scrollbars to listboxes and comboboxes
-add a sort function to listboxes and comboboxes
Posted By: Razoron

Re: Gamestudio GUI - 07/11/10 12:41

I still can't download it..
Posted By: MasterQ32

Re: Gamestudio GUI - 07/11/10 17:16

Originally Posted By: MrGuest

Things to try:
-easy ability to change the optionbutton and checkbox image,
-until an item is selected on a listbox or combobox, it should return -1 for the selection instead of 0,
-add a function for returning the selected line number as well as the string.
-change your variable types from var to short (some people will say there's not much impact, but there's a lot of vars and you never know how many of your tools the end-user will create)
-add use of scrollbars to listboxes and comboboxes
-add a sort function to listboxes and comboboxes


Thanks for your response, i will try to implement all this features, but for now i want to create a container (Panel) and the example.
Maybe the change from var to short.
Check this thread, updates will be postet
Posted By: MasterQ32

Re: Gamestudio GUI - 07/11/10 19:03

Some little information about the status:

Those things are done:
- easy ability to change the optionbutton and checkbox image
- add a function for returning the selected line number as well as the string.
- change your variable types from var to int

This things are new:
Containers
Something like a panel
Windows
A container with caption, is moveable like a normal window

Those things are changed:
The background of the Elemtents is no more transparent.
Posted By: MasterQ32

Re: Gamestudio GUI - 07/11/10 20:13

Hey Guys,

new Version is out!
Check last post to see changes.
Download and Documentaion is the same, but demo is included for now!

Please test it!
Posted By: djfeeler

Re: Gamestudio GUI - 07/12/10 05:37

It can be used freely in our project?
Posted By: Ascalon

Re: Gamestudio GUI - 07/12/10 06:21

realy great great thing and good documentation !! thank you a lot !
Posted By: MasterQ32

Re: Gamestudio GUI - 07/12/10 15:16

one question:
do you want a function pointer to react to changes or updates?
a simple example:
Code:
function checkbox_infome(int checked)
{
	//Show a message with the check status
	error(str_printf(NULL,"%i",checked));
}

...
//Declare the checkbox
CHECKBOX* checkbox;
//create the checkbox
checkbox = checkbox_create(0,0,128,16,"Checkbox 1",vector(128,128,128),CHECKED,3);
//Register the event
checkbox.CheckedChanged = checkbox_infome;
...


Posted By: paracharlie

Re: Gamestudio GUI - 07/13/10 02:41

In a game I would have the user make multiple choices while creating a character lets say. Such as choose skills or abilities. So maybe a callback that reacts to changes. Make sense?
Posted By: MasterQ32

Re: Gamestudio GUI - 07/13/10 13:52

ok, i will implement the feature in the next version.
look at the code above, this code is working without any problems!
so you can react on the change!
it's implementet in the new sliders and in the chekbox, but i will add it to all others too.
Posted By: MasterQ32

Re: Gamestudio GUI - 07/13/10 19:35

callbacks are full implemented, you have scrollbars at your listbox and combobox, also some bugfixes are done.
Posted By: bodden

Re: Gamestudio GUI - 07/14/10 13:58

Nice work. And very well documented. Thank's for that.

For the very end of your todo-list: Did you think about a database connection to fill e.g. the comboboxes?
Posted By: MasterQ32

Re: Gamestudio GUI - 07/14/10 14:47

Originally Posted By: bodden
For the very end of your todo-list: Did you think about a database connection to fill e.g. the comboboxes?


don't know how to implement this with raw lite-c, because i don't want to create a such complex script.

Originally Posted By: djfeeler
It can be used freely in our project?

yes, but it would be nice to note my name in the credits (MasterQ32 or Felix Queißner(Queissner is also accepted ))
Posted By: MasterQ32

Re: Gamestudio GUI - 07/20/10 20:58

some information about the project status:
I am thinking about a new documentation, because i have to change my whole old documentation. So one question:
Should i use an online manual or a chm manual or both?
What do you prefer?
Posted By: djfeeler

Re: Gamestudio GUI - 07/21/10 04:38

hello !

I prefer both !

thanks for your contribution grin
Posted By: bobby_danseco

Re: Gamestudio GUI - 07/24/10 12:50

hi..
thanks for this very useful contribution.
just wanted to ask how to implement scroll bar in combo and
list box..

just wandering also if your planning to add a command button
or a text box. laugh thus this will complete the gui dialog box.

thanks...
Posted By: MasterQ32

Re: Gamestudio GUI - 07/24/10 13:21

yes, buttons and textboxes will be implementet!
but i don't know, how to create a goodlooking text insert...
i will try something with a panel, but i don't know, if its better than inkey
Posted By: bobby_danseco

Re: Gamestudio GUI - 07/25/10 13:59

hi..

there is a crash on combobox_remove /combobox_update?
and i cant reload it back..

thanks laugh
Posted By: MasterQ32

Re: Gamestudio GUI - 07/25/10 14:00

i know this crash, but the fuction do what it should do!
i have no idea why this crash occurs, but maybe there's a NULL pointer or so
Posted By: XuserTM

Re: Gamestudio GUI - 07/25/10 15:06

woooow this is wonderfull.
I try laugh
Posted By: paracharlie

Re: Gamestudio GUI - 08/21/10 00:36

try while(!pointer){wait(1);} and try to find out what, where, how.
© 2024 lite-C Forums