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 / [DBP] zGui

Author
Message
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 21st Jul 2008 00:27
Hi ALL!

I decided to write a gui for a world editor of mine.
Source code is included with the download.
Keywords file (zgui.ini) is included with the download. Place this in your dbpro/editor/keywords folder if you want syntax highlighting.

If the gui becomes a success I will probably write help files as well.

Progress:
Main Menu
Windows
Frames
List View
Radio Box
Check box
Slider (horiz,vertic)
Button
Labels
File Browser


Requirements:
DarkBasic Professional U69
Matrix1 Data dll by IanM [link]
Direct3D dll by Cloggy (I think).[link]

Image:


Download:
zGui 1.0 - 10.5kb [RAR]

I allways afraided from a clowns. aww..
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 21st Jul 2008 06:52 Edited at: 21st Jul 2008 06:52
Quote: "Not Found
The requested URL /downloads/zgui10.rar was not found on this server."


Looks great though.

Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 21st Jul 2008 07:30
Fixed.

I allways afraided from a clowns. aww..
Profit
18
Years of Service
User Offline
Joined: 19th Feb 2006
Location: United States
Posted: 21st Jul 2008 20:33 Edited at: 21st Jul 2008 20:38
I like zGui. I like the clean look.

The only problem I had with it was sometimes I had to click on things a few times before they worked.

Keep up the good work.

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 22nd Jul 2008 17:01
I'm gonna beat you up because your GUIs are better than mine.

Don't you just hate that Zotoaster guy?
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 22nd Jul 2008 17:16
Profit,
Yea I have that problem too.
I think I know how to fix it: Only check for mouse clicks ONE time each loop. Not one time each for each gadget each loop.
For example, make a function called zGui_MouseAction().
In that function, if mouse is clicked, check if mouse is over a gadget.
But I feel I have other more important things to finish first.

Zotoaster,
Aww..:S I allways afraided from a person who will beat me up.
Well if you think my Gui is OK, you are welcome to steal some code from it. Just don't over do it. Btw, I haven't seen any of your Guis I think. You've seen Sasukes? His is totally awesome!

I allways afraided from a clowns. aww..
Anonymous User
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location:
Posted: 22nd Jul 2008 22:18
Ooh looks just like something I need at the minute, thanks for this and I hope you keep on developing.

???
Sasuke
18
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 25th Jul 2008 18:09
Lukas, great work, like your coding style aswell, though you've got some mad long name for functions(eg. Color Value from ini function), but least at just looking at the name of the function you know what it does.

Have you taken a look at my Creating a Level Editor thread, it's been awhile since anyone else has shown there development on there editors, like to keep it going.

The link:
http://forum.thegamecreators.com/?m=forum_view&b=1&t=108410&p=8

A dream is a fantasy, if you achieve that fantasy it was never a dream to begin with.
AtomR
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Portugal
Posted: 26th Jul 2008 12:03 Edited at: 26th Jul 2008 12:26
I get an error with

Open Ini Store 1, zGui.Settings.Folder+"gui"+gui$

Where is that command from?

-EDIT-

Found it. I had Matrix1util installed but for some reason had to manually copy one of the dlls again.

Take care
AtomR

Login to post a reply

Server time is: 2024-11-22 07:03:35
Your offset time is: 2024-11-22 07:03:35