Options Dialog

This is a discussion on Options Dialog within the Game Programming forums, part of the General Programming Boards category; In a game I'm making, I decided to try to make a simple dialog box so users can change their ...

  1. #1
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109

    Options Dialog

    In a game I'm making, I decided to try to make a simple dialog box so users can change their video and audio options as necessary. I went through all the code and the basic structure seemed to work fine. When I tried running my game on a different computer, I was unable to see the dialog box, but it still seemed to get keyboard focus and when I moved my mouse on screen, I went from my custom cursor for the game to the regular mouse over where the dialog box should have been. I could push enter to make the cursor go away (the ok button is a default).

    If the dialog box works on one computer, why shouldn't it work on the other? I have other ways in mind to create an options screen, but is there any reason why it wouldn't work on all computers?



    I'm using Direct3D for my graphics, and both computers have the same version of Direct3D. In fact, the computer on which the dialog box does not appear is better than the other one.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Run dialog prior to init for game and save results in ini file. Read ini file at start up. Provide in-game interface to change basic game settings.

  3. #3
    Yah. Morgul's Avatar
    Join Date
    Feb 2005
    Posts
    109
    That works, thanks.
    Sic vis pacum para bellum. If you want peace, prepare for war.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    There is a way to use Windows controls/dialogs inside of DX but I haven't done it and frankly seeing a common Windows control pop-up in your game kinda removes the feeling that Windows has taken a hike for a bit while we play.

    I hate seeing common Windows controls displayed in game environments. It really kills the interface in my opinion.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 01:59 PM
  2. Edit controls of a dialog from another dialog...
    By Snake in forum Windows Programming
    Replies: 9
    Last Post: 07-01-2005, 02:18 PM
  3. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  4. Getting the position of a dialog without parent on the screen
    By stormbringer in forum Windows Programming
    Replies: 1
    Last Post: 08-27-2003, 02:59 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21