Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / wiga - window gadgets.

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 18th Sep 2006 11:36 Edited at: 18th Sep 2006 11:38
Hello,
i have been working on and off on a window gadget system.
basically it sucks, but it looks totally awesome.

at the moment it isn't 100% functional but i'm getting there.

what is left to do is:
* file browser (Save, Load and OK button)
* some global variables that need to be resett
* if clicking the menu, make sure a button isn't clicked etc.
* parent and child based structure
* and other stuff, oh and + stuff.

anyway, here is a simple list of commands:


here is the wigaFunctions.dba file:


you may not find it useful at all, but whatever. i am using this in the level editor for zombie hunter 3.


here is an example:


and that example brings up this:


Attachments

Login to view attachments
Mr Kohlenstoff
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Germany
Posted: 18th Sep 2006 18:55
This looks great, I'm saving it to my favourites.

Visit the DBPro - Speed up your game-Thread. http://forum.thegamecreators.com/?m=forum_view&t=88661&b=1
Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 24th Sep 2006 21:48
Looks good, I'm about to use it...heheheh...

My Apps:
Decal Maker
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 24th Sep 2006 22:52
LukasW,

this comes on the moment i need it

Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 25th Sep 2006 19:40
Lukas,how do i check if a MenuSubItem is clicked that it then does something?as im trying to figure it out,this has no real help file only a command list...

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 25th Sep 2006 20:07 Edited at: 25th Sep 2006 20:08
this gui need some serious work though, i notice that when i am working on "game manager", this gui gets doesn't have enough features, and there are too many bugs.

and yes, i haven't written a help file yet.
i was going to do that once the gui was finished.

but anyway, to check if a menu item is clicked, do this:



Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 25th Sep 2006 21:04 Edited at: 25th Sep 2006 21:24
Ah,thanks Lukas,that helps,i couldnt figure it out from the example
EDIT:
OK,you realy should make it the button doesnt stay clicked...

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 25th Sep 2006 23:44
ah yes.. overwrite the old "wigaMainMenuUpdate()" function with this code:


Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 26th Sep 2006 08:07
i will lukas,i will

Thanks again

Coder#05
19
Years of Service
User Offline
Joined: 26th Oct 2005
Location: Denmark
Posted: 1st Nov 2006 18:34
Just wanna say im using this for something unusfull hehe anyway thanks.

easy comes easy goes
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 1st Nov 2006 20:26 Edited at: 1st Nov 2006 20:29
Hey, that's pretty sweet! Runs fast as well from what I can tell.

It would be neat if you could set the default colours for the GUI, maybe with some variables at the top - would allow themes to be imported and stuff.

But yeah, neat.


You are not alone.

Login to post a reply

Server time is: 2024-11-22 23:36:52
Your offset time is: 2024-11-22 23:36:52