Author Topic: Wondering how I could disable the menu in windowed mode  (Read 2493 times)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Wondering how I could disable the menu at the top, with the buttons to change controls, view the credits/about window and exit the game.

There's no need for the inbuilt control changing menu because my game is not set up to support it, (doesn't use button1,2,3,4 or the arrows) and I plan on integrating the about menu into the GUI, so there's no need for it in the top menu either.

So I would like to know if it's possible to disable the menu at the top when in windowed mode so it isn't displayed. (Or is it so tightly integrated into the project's that I shouldn't bother?)

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Wondering how I could disable the menu in windowed mode
« Reply #1 on: 2009-01-29, 09:16:43 PM »
I'm running Ubuntu at the moment, so I can't test this, but I think if you open GameForm.cs in the SourceCode folder, you can delete this line, and the menu won't appear:
Code: [Select]
this.Menu = this.mnuGame;
And this line farther down, which turns it on again after switching to windowed mode from full screen mode:
Code: [Select]
Menu = mnuGame;

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Wondering how I could disable the menu in windowed mode
« Reply #2 on: 2009-01-30, 05:41:30 AM »
Ok, easy fix, works perfectly.
Thanks.