|
Re: Gamestudio GUI
[Re: MrGuest]
#332699
07/11/10 17:16
07/11/10 17:16
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
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
|
|
|
Re: Gamestudio GUI
[Re: MasterQ32]
#332723
07/11/10 19:03
07/11/10 19:03
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
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.
Last edited by Richi007; 07/11/10 19:04.
|
|
|
Re: Gamestudio GUI
[Re: MasterQ32]
#332733
07/11/10 20:13
07/11/10 20:13
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
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!
Last edited by Richi007; 07/12/10 14:12.
|
|
|
Re: Gamestudio GUI
[Re: Ascalon]
#332866
07/12/10 15:16
07/12/10 15:16
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
OP
Expert
|
OP
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
one question: do you want a function pointer to react to changes or updates? a simple example:
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;
...
Last edited by Richi007; 07/12/10 15:18.
|
|
|
Re: Gamestudio GUI
[Re: MasterQ32]
#332935
07/13/10 02:41
07/13/10 02:41
|
Joined: Mar 2009
Posts: 146 USA
paracharlie
Member
|
Member
Joined: Mar 2009
Posts: 146
USA
|
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?
A8 Commercial
|
|
|
|