@@ -674,8 +674,6 @@ void MainMenuGUI::Update()
674
674
m_MainMenuButtons[BACKTOMAIN]->SetVisible (false );
675
675
m_MainMenuButtons[PLAYTUTORIAL]->SetVisible (false );
676
676
m_MainMenuButtons[METACONTINUE]->SetVisible (false );
677
- // Move main menu button back to center
678
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 320 );
679
677
m_ScreenChange = false ;
680
678
}
681
679
@@ -735,7 +733,7 @@ void MainMenuGUI::Update()
735
733
// m_pGUIController->GetControl("ButtonStartSkirmish")->SetVisible(true);
736
734
UpdateTeamBoxes ();
737
735
// Move main menu button over so the start button fits
738
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (200 , 280 );
736
+ m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (200 , 280 );
739
737
m_MainMenuButtons[BACKTOMAIN]->SetVisible (true );
740
738
m_ScreenChange = false ;
741
739
}
@@ -770,7 +768,8 @@ void MainMenuGUI::Update()
770
768
{
771
769
m_apScreenBox[OPTIONSSCREEN]->SetVisible (true );
772
770
m_MainMenuButtons[BACKTOMAIN]->SetVisible (true );
773
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 360 );
771
+ m_apScreenBox[OPTIONSSCREEN]->GUIPanel ::AddChild (m_MainMenuButtons[BACKTOMAIN]);
772
+ m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (180 , 220 );
774
773
m_pBackToOptionsButton->SetVisible (false );
775
774
UpdateDeviceLabels ();
776
775
m_ScreenChange = false ;
@@ -813,7 +812,8 @@ void MainMenuGUI::Update()
813
812
if (m_ScreenChange) {
814
813
m_apScreenBox[EDITORSCREEN]->SetVisible (true );
815
814
m_MainMenuButtons[BACKTOMAIN]->SetVisible (true );
816
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 285 );
815
+ m_apScreenBox[EDITORSCREEN]->GUIPanel ::AddChild (m_MainMenuButtons[BACKTOMAIN]);
816
+ m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (4 , 145 );
817
817
m_ScreenChange = false ;
818
818
}
819
819
}
@@ -825,7 +825,8 @@ void MainMenuGUI::Update()
825
825
if (m_ScreenChange) {
826
826
m_apScreenBox[CREDITSSCREEN]->SetVisible (true );
827
827
m_MainMenuButtons[BACKTOMAIN]->SetVisible (true );
828
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 430 );
828
+ m_apScreenBox[CREDITSSCREEN]->GUIPanel ::AddChild (m_MainMenuButtons[BACKTOMAIN]);
829
+ m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (240 , 298 );
829
830
// Set the scroll panel to be out of sight at the bottom of the credits screen box
830
831
m_pScrollPanel->SetPositionRel (0 , m_apScreenBox[CREDITSSCREEN]->GetHeight ());
831
832
m_ScrollTimer.Reset ();
@@ -1139,7 +1140,6 @@ void MainMenuGUI::Update()
1139
1140
// Hide all screens, the appropriate screen will reappear on next update
1140
1141
HideAllScreens ();
1141
1142
m_MainMenuButtons[BACKTOMAIN]->SetVisible (false );
1142
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 280 );
1143
1143
1144
1144
// If leaving the options screen, save the settings!
1145
1145
if (m_MenuScreen == OPTIONSSCREEN)
@@ -1241,8 +1241,6 @@ void MainMenuGUI::Update()
1241
1241
// CPU team present, so ask for the difficulty level of it before starting
1242
1242
else
1243
1243
{
1244
- // Move main menu button back to center
1245
- m_MainMenuButtons[BACKTOMAIN]->SetPositionRel (260 , 280 );
1246
1244
m_MenuScreen = DIFFICULTYSCREEN;
1247
1245
m_ScreenChange = true ;
1248
1246
g_GUISound.ButtonPressSound ()->Play ();
0 commit comments