1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-13 17:39:40 +00:00

disable windows on startup when --new-game is used

This commit is contained in:
Marc Zinnschlag 2010-07-21 10:28:58 +02:00
parent 6e3aacca08
commit a87175446c
3 changed files with 7 additions and 4 deletions

View file

@ -209,7 +209,7 @@ void OMW::Engine::go()
MWScript::registerExtensions (mExtensions);
mEnvironment.mWindowManager = new MWGui::WindowManager(mGuiManager->getGui(), mEnvironment,
mExtensions);
mExtensions, mNewGame);
mEnvironment.mSoundManager = new MWSound::SoundManager;

View file

@ -8,8 +8,8 @@
using namespace MWGui;
WindowManager::WindowManager(MyGUI::Gui *_gui, MWWorld::Environment& environment,
const Compiler::Extensions& extensions)
: gui(_gui), mode(GM_Game), shown(GW_ALL), allowed(GW_ALL)
const Compiler::Extensions& extensions, bool newGame)
: gui(_gui), mode(GM_Game), shown(GW_ALL), allowed(newGame ? GW_None : GW_ALL)
{
// Get size info from the Gui object
assert(gui);

View file

@ -102,11 +102,14 @@ namespace MWGui
public:
/// The constructor needs the main Gui object
WindowManager(MyGUI::Gui *_gui, MWWorld::Environment& environment,
const Compiler::Extensions& extensions);
const Compiler::Extensions& extensions, bool newGame);
virtual ~WindowManager();
void setMode(GuiMode newMode)
{
if (newMode==GM_Inventory && allowed==GW_None)
return;
mode = newMode;
updateVisible();
}