Archived

This topic is now archived and is closed to further replies.

dathui

GUI in my app

Recommended Posts

dathui    122
Im wondering wether to use a already finished gui-library or make my own. is it hard to make your own? doesn anybody know a good library? reality is only an option

Share this post


Link to post
Share on other sites
i made my own, not horribly difficult, and i began with an article hosted here at gamedev.(named something like "A GUI in DirectX")

i found it pretty rewarding, the only part i found difficult was making the interface intuitive and im still messing around with serialization.

Dredd
________________________________________

"To die with your sword still in its sheath is most regrettable" -- Miyomoto Musashi


Share this post


Link to post
Share on other sites
Permafried-    274
I''ve decided to try to take on the task myself using a scripting system which is loaded on app startup. I have one base class which contains members and methods which are common to any type of control you can think of be it a button, textbox, listbox, etc. and then build them up from there.

If you''re up for the challenege I''m sure it''s much more rewarding when you complete your own and see it rendering on the screen for the first time, but if you''d rather focus more on gameplay than the entire engine itself maybe using a pre-defined library might be your option.

Permafried-

Share this post


Link to post
Share on other sites
Mark Sheeky    134
Most GUI''s in games are self coded and it''s probably the best way to go. The front end of many games consists of little more than a menu or something. For a complex windowed game, like a chess game, you mgiht consider using the Windows interfaces.

Mark
Ever wanted to command a starship?
http://www.lostinflatspace.com

Share this post


Link to post
Share on other sites
Chaoslab    116
Coding your own gui can be easy but put some thought and time into desiging it.

I also suggest using Xml to persist it so it''s easy to edit

Share this post


Link to post
Share on other sites
Etnu    880
If you''re using DX, making a GUI is very simple; just use pre-transformed quads and ID3DXFont.

I''ve got a fairly robust GUI implemented now that can draw about 500 windows full of buttons, text, and whatnot before any slowdown is observed.

Share this post


Link to post
Share on other sites
dathui    122
the project is very gui-heavy, a quite unnusual app, but i dont want to use dx...looks like im gonna make myself a ogl-gui

Share this post


Link to post
Share on other sites