Scrolling Game Development Kit Forum

SGDK Version 2 => Help, Errors, FAQ => Topic started by: Jam0864 on 2009-01-29, 04:38:03 PM

Title: Wondering how I could disable the menu in windowed mode
Post by: Jam0864 on 2009-01-29, 04:38:03 PM
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?)
Title: Re: Wondering how I could disable the menu in windowed mode
Post by: bluemonkmn 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;
Title: Re: Wondering how I could disable the menu in windowed mode
Post by: Jam0864 on 2009-01-30, 05:41:30 AM
Ok, easy fix, works perfectly.
Thanks.