CLASS::CLASS()
{
	MyGUI::WindowPtr win = dynamic_cast<MyGUI::WindowPtr>(mMainWidget);

	m_single_player->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickSelectTerrainButton);
	m_rig_editor->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickRigEditorButton);
	m_settings->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickSettingButton);
	m_about->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickAboutButton);
	m_exit->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickExitButton);
	m_multi_player->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickMultiPlayerButton);

	m_single_player->setCaption(_L("Singleplayer"));
	m_rig_editor->setCaption(_L("Rig-Editor"));
	m_settings->setCaption(_L("Settings"));
	m_about->setCaption(_L("About"));
	m_exit->setCaption(_L("Quit"));
	m_multi_player->setCaption(_L("Multiplayer"));

	win->setCaption(_L("Main Menu"));
	win->setMovable(false);

	if (!BSETTING("DevMode", false))
	{
		m_multi_player->setEnabled(false);
		m_rig_editor->setEnabled(false);
	}

	Hide();
}
CLASS::CLASS()
{
	MyGUI::WindowPtr win = dynamic_cast<MyGUI::WindowPtr>(mMainWidget);
	win->setMovable(false);

	m_resume_game->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickResumeButton);
	m_change_map->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickChangeMapButton);
	m_back_to_menu->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickBackToMenuButton);
	m_rig_editor->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickRigEditorButton);
	m_quit_game->eventMouseButtonClick += MyGUI::newDelegate(this, &CLASS::eventMouseButtonClickQuitButton);

	win->setCaption(_L("Pause"));
	m_resume_game->setCaption(_L("Resume Game"));
	m_change_map->setCaption(_L("Change Map"));
	m_back_to_menu->setCaption(_L("Back to menu"));
	m_rig_editor->setCaption(_L("Rig Editor"));
	m_quit_game->setCaption(_L("Quit to Desktop"));
}