mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename BUTTON_FACE_HEIGHT to kButtonFaceHeight
This commit is contained in:
parent
2ccb77320b
commit
14cdfc7262
|
@ -825,8 +825,8 @@ static Widget _windowFinancesResearchWidgets[] =
|
||||||
{
|
{
|
||||||
campaignButton->type = WindowWidgetType::Button;
|
campaignButton->type = WindowWidgetType::Button;
|
||||||
campaignButton->top = y;
|
campaignButton->top = y;
|
||||||
campaignButton->bottom = y + BUTTON_FACE_HEIGHT + 1;
|
campaignButton->bottom = y + kButtonFaceHeight + 1;
|
||||||
y += BUTTON_FACE_HEIGHT + 2;
|
y += kButtonFaceHeight + 2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -908,7 +908,7 @@ static Widget _windowFinancesResearchWidgets[] =
|
||||||
ft.Add<money64>(AdvertisingCampaignPricePerWeek[i]);
|
ft.Add<money64>(AdvertisingCampaignPricePerWeek[i]);
|
||||||
DrawTextBasic(dpi, screenCoords + ScreenCoordsXY{ WH_SUMMARY, 0 }, STR_MARKETING_PER_WEEK, ft);
|
DrawTextBasic(dpi, screenCoords + ScreenCoordsXY{ WH_SUMMARY, 0 }, STR_MARKETING_PER_WEEK, ft);
|
||||||
|
|
||||||
screenCoords.y += BUTTON_FACE_HEIGHT + 2;
|
screenCoords.y += kButtonFaceHeight + 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5735,7 +5735,7 @@ static_assert(std::size(RatingNames) == 6);
|
||||||
|
|
||||||
// Anchor graph widget
|
// Anchor graph widget
|
||||||
auto x = width - 4;
|
auto x = width - 4;
|
||||||
auto y = height - BUTTON_FACE_HEIGHT - 8;
|
auto y = height - kButtonFaceHeight - 8;
|
||||||
|
|
||||||
widgets[WIDX_GRAPH].right = x;
|
widgets[WIDX_GRAPH].right = x;
|
||||||
widgets[WIDX_GRAPH].bottom = y;
|
widgets[WIDX_GRAPH].bottom = y;
|
||||||
|
@ -5744,7 +5744,7 @@ static_assert(std::size(RatingNames) == 6);
|
||||||
widgets[WIDX_GRAPH_ALTITUDE].top = y;
|
widgets[WIDX_GRAPH_ALTITUDE].top = y;
|
||||||
widgets[WIDX_GRAPH_VERTICAL].top = y;
|
widgets[WIDX_GRAPH_VERTICAL].top = y;
|
||||||
widgets[WIDX_GRAPH_LATERAL].top = y;
|
widgets[WIDX_GRAPH_LATERAL].top = y;
|
||||||
y += BUTTON_FACE_HEIGHT + 1;
|
y += kButtonFaceHeight + 1;
|
||||||
widgets[WIDX_GRAPH_VELOCITY].bottom = y;
|
widgets[WIDX_GRAPH_VELOCITY].bottom = y;
|
||||||
widgets[WIDX_GRAPH_ALTITUDE].bottom = y;
|
widgets[WIDX_GRAPH_ALTITUDE].bottom = y;
|
||||||
widgets[WIDX_GRAPH_VERTICAL].bottom = y;
|
widgets[WIDX_GRAPH_VERTICAL].bottom = y;
|
||||||
|
|
|
@ -45,7 +45,7 @@ constexpr uint8_t CloseButtonWidth = 10;
|
||||||
constexpr uint8_t kScrollableRowHeight = 12;
|
constexpr uint8_t kScrollableRowHeight = 12;
|
||||||
constexpr uint8_t kListRowHeight = 12;
|
constexpr uint8_t kListRowHeight = 12;
|
||||||
constexpr uint8_t kTableCellHeight = 12;
|
constexpr uint8_t kTableCellHeight = 12;
|
||||||
#define BUTTON_FACE_HEIGHT 12
|
constexpr uint8_t kButtonFaceHeight = 12;
|
||||||
#define SPINNER_HEIGHT 12
|
#define SPINNER_HEIGHT 12
|
||||||
#define DROPDOWN_HEIGHT 12
|
#define DROPDOWN_HEIGHT 12
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue