if i'm making a program with directdraw, like my snake game, what do you think would be the best method to implement options to it? it is necessary that in this options there are buttons, and fields where the user can type something in. if i call i dialog box it looks very ugly, because of the resolution of my game (640*480). what other possibilities are there?

nop
Posted on 2001-12-19 14:43:35 by NOP-erator
Ownerdraw it all and use a smaller font? :). Or code your own input
from scratch. Or have an options dialog box *before* switching to
graphics mode.
Posted on 2001-12-19 15:28:19 by f0dder
We have done our own, non windows and non GDI, GUI in our game, the most simple approach is to paint some buttons and border frames in a 2D or 3D gfx application and then paint them on screen, use your own routines to check mouse is in a button's area and act as required (on click, on mouse over etc)

You will nedd at a minimum:
1.buttons,
2.a dialog frame and background (optional transparency)
3. an text edit line (optional)

Extra goodies
-list boxes
-combo boxes
-radio buttons

this is a little complicated but very nice and rewarding :)

Eventually this can evolve into your own simple GUI...

Most games go like this, look at the Starcrafts transparent menus (or ours in HE but theirs are still nicer :) ) they are all done in 640x480x8bits .... Windows (even XP) cant stand a chance against them.. (they look so nice)...
Posted on 2001-12-20 03:24:27 by BogdanOntanu