mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Rename WindowWidgetType to WidgetType and change for new code style
This commit is contained in:
@@ -42,10 +42,10 @@ namespace OpenRCT2::Ui::Windows
|
||||
// clang-format off
|
||||
static constexpr auto _savePromptWidgets = makeWidgets(
|
||||
makeWindowShim(kStringIdNone, WW_SAVE, WH_SAVE),
|
||||
makeWidget({ 2, 19}, {256, 12}, WindowWidgetType::LabelCentred, WindowColour::primary, kStringIdEmpty ), // question/label
|
||||
makeWidget({ 8, 35}, { 78, 14}, WindowWidgetType::Button, WindowColour::primary, STR_SAVE_PROMPT_SAVE ), // save
|
||||
makeWidget({ 91, 35}, { 78, 14}, WindowWidgetType::Button, WindowColour::primary, STR_SAVE_PROMPT_DONT_SAVE), // don't save
|
||||
makeWidget({174, 35}, { 78, 14}, WindowWidgetType::Button, WindowColour::primary, STR_SAVE_PROMPT_CANCEL ) // cancel
|
||||
makeWidget({ 2, 19}, {256, 12}, WidgetType::labelCentred, WindowColour::primary, kStringIdEmpty ), // question/label
|
||||
makeWidget({ 8, 35}, { 78, 14}, WidgetType::button, WindowColour::primary, STR_SAVE_PROMPT_SAVE ), // save
|
||||
makeWidget({ 91, 35}, { 78, 14}, WidgetType::button, WindowColour::primary, STR_SAVE_PROMPT_DONT_SAVE), // don't save
|
||||
makeWidget({174, 35}, { 78, 14}, WidgetType::button, WindowColour::primary, STR_SAVE_PROMPT_CANCEL ) // cancel
|
||||
);
|
||||
// clang-format on
|
||||
|
||||
@@ -61,8 +61,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
// clang-format off
|
||||
static constexpr auto _quitPromptWidgets = makeWidgets(
|
||||
makeWindowShim(STR_QUIT_GAME_PROMPT_TITLE, WW_QUIT, WH_QUIT),
|
||||
makeWidget({ 8, 19}, {78, 14}, WindowWidgetType::Button, WindowColour::primary, STR_OK ), // ok
|
||||
makeWidget({91, 19}, {78, 14}, WindowWidgetType::Button, WindowColour::primary, STR_CANCEL) // cancel
|
||||
makeWidget({ 8, 19}, {78, 14}, WidgetType::button, WindowColour::primary, STR_OK ), // ok
|
||||
makeWidget({91, 19}, {78, 14}, WidgetType::button, WindowColour::primary, STR_CANCEL) // cancel
|
||||
);
|
||||
// clang-format on
|
||||
|
||||
|
||||
Reference in New Issue
Block a user