1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Rename LIST_ROW_HEIGHT to kListRowHeight

This commit is contained in:
Harry-Hopkinson
2024-04-14 16:37:01 +00:00
parent c5cfc65317
commit f242bbf095
15 changed files with 137 additions and 137 deletions

View File

@@ -1241,7 +1241,7 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
screenPos.y += DrawTextWrapped(
dpi, screenPos, _width2, STR_OBJECT_SELECTION_COMPAT_OBJECT_DESCRIPTION, {},
{ COLOUR_BRIGHT_RED })
+ LIST_ROW_HEIGHT;
+ kListRowHeight;
}
auto description = ObjectGetDescription(_loadedObject.get());
@@ -1251,7 +1251,7 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
ft.Add<StringId>(STR_STRING);
ft.Add<const char*>(description.c_str());
screenPos.y += DrawTextWrapped(dpi, screenPos, _width2, STR_WINDOW_COLOUR_2_STRINGID, ft) + LIST_ROW_HEIGHT;
screenPos.y += DrawTextWrapped(dpi, screenPos, _width2, STR_WINDOW_COLOUR_2_STRINGID, ft) + kListRowHeight;
}
if (GetSelectedObjectType() == ObjectType::Ride)
{
@@ -1305,14 +1305,14 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
void DrawDebugData(DrawPixelInfo& dpi)
{
ObjectListItem* listItem = &_listItems[selected_list_item];
auto screenPos = windowPos + ScreenCoordsXY{ width - 5, height - (LIST_ROW_HEIGHT * 6) };
auto screenPos = windowPos + ScreenCoordsXY{ width - 5, height - (kListRowHeight * 6) };
// Draw fallback image warning
if (_loadedObject && _loadedObject->UsesFallbackImages())
{
DrawTextBasic(dpi, screenPos, STR_OBJECT_USES_FALLBACK_IMAGES, {}, { COLOUR_WHITE, TextAlignment::RIGHT });
}
screenPos.y += LIST_ROW_HEIGHT;
screenPos.y += kListRowHeight;
// Draw ride type.
if (GetSelectedObjectType() == ObjectType::Ride)
@@ -1321,12 +1321,12 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT });
}
screenPos.y += LIST_ROW_HEIGHT;
screenPos.y += kListRowHeight;
// Draw object source
auto stringId = ObjectManagerGetSourceGameString(listItem->repositoryItem->GetFirstSourceGame());
DrawTextBasic(dpi, screenPos, stringId, {}, { COLOUR_WHITE, TextAlignment::RIGHT });
screenPos.y += LIST_ROW_HEIGHT;
screenPos.y += kListRowHeight;
// Draw object filename
{
@@ -1337,7 +1337,7 @@ static std::vector<Widget> _window_editor_object_selection_widgets = {
DrawTextBasic(
dpi, { windowPos.x + this->width - 5, screenPos.y }, STR_WINDOW_COLOUR_2_STRINGID, ft,
{ COLOUR_BLACK, TextAlignment::RIGHT });
screenPos.y += LIST_ROW_HEIGHT;
screenPos.y += kListRowHeight;
}
// Draw object author (will be blank space if no author in file or a non JSON object)