Commit 64c6198 1 parent 08552bf commit 64c6198 Copy full SHA for 64c6198
File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,6 @@ void MapViewState::onActivate()
308
308
void MapViewState::onDeactivate ()
309
309
{
310
310
mGameOverDialog .enabled (false );
311
- mGameOptionsDialog .enabled (false );
312
311
313
312
hideUi ();
314
313
}
Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ void MapViewState::setupUiPositions(NAS2D::Vector<int> size)
225
225
mCheatMenu .position (NAS2D::Point {centerPosition (mCheatMenu ).x , centerPosition (mCheatMenu ).y });
226
226
mGameOverDialog .position (centerPosition (mGameOverDialog ) - NAS2D::Vector{0 , 100 });
227
227
mAnnouncement .position (centerPosition (mAnnouncement ) - NAS2D::Vector{0 , 100 });
228
- mGameOptionsDialog .position (centerPosition (mGameOptionsDialog ) - NAS2D::Vector{0 , 100 });
229
228
230
229
mDiggerDirection .position (NAS2D::Point {centerPosition (mDiggerDirection ).x , size.y / 2 - 125 });
231
230
@@ -280,7 +279,6 @@ void MapViewState::unhideUi()
280
279
mConnections .show ();
281
280
282
281
mGameOverDialog .enabled (true );
283
- mGameOptionsDialog .enabled (true );
284
282
}
285
283
286
284
@@ -392,7 +390,6 @@ void MapViewState::drawUI()
392
390
mStructures .update ();
393
391
394
392
// Windows
395
- mGameOptionsDialog .update ();
396
393
mWindowStack .update ();
397
394
398
395
if (!modalUiElementDisplayed ()) { mToolTip .update (); }
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ GameViewContainer::GameViewContainer(GameState& gameState) :
18
18
const auto rendererCenter = NAS2D::Utility<NAS2D::Renderer>::get ().center ().to <int >();
19
19
const auto centerPosition = [&rendererCenter](const Control& control) { return (rendererCenter - control.size () / 2 ); };
20
20
mFileIoDialog .position (NAS2D::Point {centerPosition (mFileIoDialog ).x , centerPosition (mFileIoDialog ).y });
21
+ mGameOptionsDialog .position (NAS2D::Point {centerPosition (mGameOptionsDialog ).x , centerPosition (mGameOptionsDialog ).y });
21
22
22
23
constexpr auto hudHeight = constants::ResourceIconSize + constants::MarginTight * 2 ;
23
24
const auto rendererSize = NAS2D::Utility<NAS2D::Renderer>::get ().size ();
You can’t perform that action at this time.
0 commit comments