Thread: Options Dialog

  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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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, 02: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