forked from rosebudai/OpenRCT2-Web
Move NewsTicker to its own window and rename GameStatusBar
* Move NewsTicker to its own window * Toggle bottom toolbar window when changing theme settings * Rename GameBottomToolbar to GameStatusBar * Regroup strings by window in UiStringIds.h * Rename string ids based on current usage * Rename UITHEME_FLAG_USE_GAME_STATUS_BAR * Use dedicated string for status bar instead of reusing title sequence one
This commit is contained in:
1 parent
b52dc2d933
commit
212c99ae59
23 files changed
+350
-224
No files matched your search
@@ -763,18 +763,28 @@ static constexpr float kWindowScrollLocations[][2] = {
|
||||
dateInfoPanel->windowPos.y = height - 32;
|
||||
}
|
||||
|
||||
WindowBase* bottomWind = windowMgr->FindByClass(WindowClass::bottomToolbar);
|
||||
if (bottomWind != nullptr && parkInfoPanel != nullptr && dateInfoPanel != nullptr)
|
||||
auto bottomWidth = std::max(640, width);
|
||||
auto bottomOffset = 0;
|
||||
if (parkInfoPanel != nullptr && dateInfoPanel != nullptr)
|
||||
{
|
||||
bottomWind->width = std::max(640, width) - parkInfoPanel->width - dateInfoPanel->width;
|
||||
bottomWind->windowPos.x = parkInfoPanel->width;
|
||||
bottomWind->windowPos.y = height - 32;
|
||||
bottomWidth -= parkInfoPanel->width + dateInfoPanel->width;
|
||||
bottomOffset = parkInfoPanel->width;
|
||||
}
|
||||
else if (bottomWind != nullptr)
|
||||
|
||||
WindowBase* statusBar = windowMgr->FindByClass(WindowClass::gameStatusBar);
|
||||
if (statusBar != nullptr)
|
||||
{
|
||||
bottomWind->width = std::max(640, width);
|
||||
bottomWind->windowPos.x = 0;
|
||||
bottomWind->windowPos.y = height - 32;
|
||||
statusBar->width = bottomWidth;
|
||||
statusBar->windowPos.x = bottomOffset;
|
||||
statusBar->windowPos.y = height - 32;
|
||||
}
|
||||
|
||||
WindowBase* newsTicker = windowMgr->FindByClass(WindowClass::newsTicker);
|
||||
if (newsTicker != nullptr)
|
||||
{
|
||||
newsTicker->width = bottomWidth;
|
||||
newsTicker->windowPos.x = bottomOffset;
|
||||
newsTicker->windowPos.y = height - 32;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user