mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
Refactor Dropdown to TitleCase (#13352)
* Refactor Dropdown Namespace * Refactor Dropdown to TitleCase
This commit is contained in:
@@ -361,11 +361,11 @@ static void window_title_command_editor_mousedown(rct_window* w, rct_widgetindex
|
||||
gDropdownItemsArgs[i] = _window_title_command_editor_orders[i].nameStringId;
|
||||
}
|
||||
|
||||
window_dropdown_show_text_custom_width(
|
||||
WindowDropdownShowTextCustomWidth(
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0,
|
||||
DROPDOWN_FLAG_STAY_OPEN, numItems, widget->width() - 3);
|
||||
Dropdown::Flag::StayOpen, numItems, widget->width() - 3);
|
||||
|
||||
dropdown_set_checked(get_command_info_index(command.Type), true);
|
||||
Dropdown::SetChecked(get_command_info_index(command.Type), true);
|
||||
break;
|
||||
}
|
||||
case WIDX_INPUT_DROPDOWN:
|
||||
@@ -378,11 +378,11 @@ static void window_title_command_editor_mousedown(rct_window* w, rct_widgetindex
|
||||
gDropdownItemsArgs[i] = SpeedNames[i];
|
||||
}
|
||||
|
||||
window_dropdown_show_text_custom_width(
|
||||
WindowDropdownShowTextCustomWidth(
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0,
|
||||
DROPDOWN_FLAG_STAY_OPEN, numItems, widget->width() - 3);
|
||||
Dropdown::Flag::StayOpen, numItems, widget->width() - 3);
|
||||
|
||||
dropdown_set_checked(command.Speed - 1, true);
|
||||
Dropdown::SetChecked(command.Speed - 1, true);
|
||||
}
|
||||
else if (command.Type == TITLE_SCRIPT_LOAD)
|
||||
{
|
||||
@@ -393,11 +393,11 @@ static void window_title_command_editor_mousedown(rct_window* w, rct_widgetindex
|
||||
gDropdownItemsArgs[i] = reinterpret_cast<uintptr_t>(_sequence->Saves[i].c_str());
|
||||
}
|
||||
|
||||
window_dropdown_show_text_custom_width(
|
||||
WindowDropdownShowTextCustomWidth(
|
||||
{ w->windowPos.x + widget->left, w->windowPos.y + widget->top }, widget->height() + 1, w->colours[1], 0,
|
||||
DROPDOWN_FLAG_STAY_OPEN, numItems, widget->width() - 3);
|
||||
Dropdown::Flag::StayOpen, numItems, widget->width() - 3);
|
||||
|
||||
dropdown_set_checked(command.SaveIndex, true);
|
||||
Dropdown::SetChecked(command.SaveIndex, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user