Tiberian Sun Dialog Boxes

Started by
4 comments, last by The_Mimic 23 years, 11 months ago
Does anyone know what way is best for creating dialog boxes like in many games such as Tiberian Sun''s SAVE GAME, LOAD GAME, OPTIONS, RESUME GAME dialog box? While the box is active I should still be able to see the rest of the game screen around it. I wish to have as much control on the texture the dialog has, etc. Also how do I do check boxes with this? Please help.
Advertisement
I know really well a programmer at Westwood Studios. I''ll forword the post to him .
Thanks.
You're welcome! I know John Carmack... he wants to help you make a 3D Engine. Are you interested??

Let me know,
OldManDave.

Edited by - OldManDave on 4/28/00 4:18:15 PM
Haha, very funny.
There are for me two types

1) Functions that need to take over the whole process. What I''ve done for that is to create a function that has
its own painting and keychecking functions

JTChoiceBox::Display()
{
while (MessageBoxExist())
{
int nResult = CheckForWindowsKeys();
CheckForMouseInput();
PaintScreen();
FlipBuffers();
if (nResult == EXITHERE) break;
}

2) A pretty box that shows the choices

PaintScreen()
{
other screen stuff
....
if (pMessageBox->Exists()) pMessageBox->Display();
...
}

In this one you create the box somewhere else with a list of choices

if (!pMessageBox == NULL ) pMessageBox = ListBox(LinkedListOfStuff, PosX, PosY);

For checked boxes you''re going to have to store and retrieve the info somewhere. WHere is the information stored?

There''s also an article on the GameDev.Net about C++ and Interfaces

ZoomBoy
Developing a 2D RPG with skills, weapons, and adventure.
See my character editor, Tile editor, diary, 3D Art resources at
Check out my web-site
Also new links to combat flight sims



This topic is closed to new replies.

Advertisement