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.

Dark GDK / UI for db

Author
Message
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 2nd Sep 2005 08:11
Has anyone made a game UI library? I was going to work on one for my project but I don't want to reinvent the wheel. I'm not talking bluegui either I mean UI controls to put in your game itself.
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 2nd Sep 2005 15:39
Why not use MFC? Mike posted an example not long ago.


Thank you for the votez!1!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Sep 2005 15:44
The problem with using MFC is that its looks just plain weird having Windows windows on top of gaming window.

Thats not to say it doesn't work fine - it just doesn't look good.

Unfortunately customised UI's can be a pain to do...

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 5th Sep 2005 03:41
Yes, using MFC only helps if I want a gaming window and a UI window. I am talking about In-Game UI. Edit controls etc. for things like menus, online lobbies, strategy games, and things like that.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 6th Sep 2005 05:52
Does MFC offer some sort of Java "look n feel"? I'm a java not a c++ guy so I have no clue.

Your signature has been erased by a mod because it's larger than 600x120...
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 6th Sep 2005 05:55
im a java guy too but what i meant is for like text boxes and lists and whatnot for the game window. You cant put the MFC controls directly in the game window if i understand correctly
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 6th Sep 2005 05:57
How do you mean ? The closest you could get for different looks is to use skins (but the code would be awful).

I dont know about any UI stuff - you would have to design your own graphics and code to handle them.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 6th Sep 2005 06:04
thats what I have been doing, was wondering if I wasnt reinventing the wheel
matt rochon
21
Years of Service
User Offline
Joined: 15th Mar 2003
Location: Canada
Posted: 7th Sep 2005 23:33
ok well if I'm going to write my own, any suggestions on how to implement the little features that make a gui easy to use

EX:
On a textbox you can position the cursor and select text and whatnot

Automatic scroll bars for widgets

Resizable headings for lists and worksheets (sorting when you click on a heading)


Also if anyone wants to help me with all of this then feel free since I have never written a gui engine and couldn't possibly figure out the best way first time. I plan on making it open source and freely downloadable if it ends up working well.

So far I've got a framework for designing widgets and a manager to display them and handle input and such. The only widgets I have worked on so far are static text and text boxes.
posting unit #42
19
Years of Service
User Offline
Joined: 10th Dec 2004
Location:
Posted: 15th Sep 2005 16:02
Use classes and oop. It will make for a more flexible system.

Copy the java model for gui components ie everything is a sub class of panel.

Use virtual functions for draw() update() methods.

I haven't been around for a while so I have no idea of your programing level, you might have worked this out already.

Don't overdo the gui if you target is for games (like the steam gui)
It needs to be non-blocking and as fast as possible.

Login to post a reply

Server time is: 2024-11-19 01:32:57
Your offset time is: 2024-11-19 01:32:57