Skip to content

Commit

Permalink
GUI: Fix WindowDesc inikey issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JGRennison committed Dec 13, 2023
1 parent 695ea21 commit 898b790
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/build_vehicle_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3272,7 +3272,7 @@ static WindowDesc _build_vehicle_desc(__FILE__, __LINE__,
);

static WindowDesc _build_template_vehicle_desc(__FILE__, __LINE__,
WDP_AUTO, nullptr, 240, 268,
WDP_AUTO, "build_template_vehicle", 240, 268,
WC_BUILD_VIRTUAL_TRAIN, WC_CREATE_TEMPLATE,
WDF_CONSTRUCTION,
std::begin(_nested_build_vehicle_widgets), std::end(_nested_build_vehicle_widgets),
Expand All @@ -3288,7 +3288,7 @@ static WindowDesc _build_vehicle_desc_train_advanced(__FILE__, __LINE__,
);

static WindowDesc _build_template_vehicle_desc_advanced(__FILE__, __LINE__,
WDP_AUTO, nullptr, 480, 268,
WDP_AUTO, "build_template_vehicle_dual", 480, 268,
WC_BUILD_VIRTUAL_TRAIN, WC_CREATE_TEMPLATE,
WDF_CONSTRUCTION,
std::begin(_nested_build_vehicle_widgets_train_advanced), std::end(_nested_build_vehicle_widgets_train_advanced),
Expand Down
2 changes: 1 addition & 1 deletion src/departures_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static const NWidgetPart _nested_departures_list[] = {
};

static WindowDesc _departures_desc(__FILE__, __LINE__,
WDP_AUTO, nullptr, 260, 246,
WDP_AUTO, "depatures", 260, 246,
WC_DEPARTURES_BOARD, WC_NONE,
0,
std::begin(_nested_departures_list), std::end(_nested_departures_list)
Expand Down
4 changes: 2 additions & 2 deletions src/order_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ static const NWidgetPart _nested_cargo_type_orders_widgets[] = {

/** Window description for the 'load' variant of CargoTypeOrdersWindow. */
static WindowDesc _cargo_type_load_orders_widgets (__FILE__, __LINE__,
WDP_AUTO, "view_cargo_type_load_order", 195, 186,
WDP_AUTO, nullptr, 195, 186,
WC_VEHICLE_CARGO_TYPE_LOAD_ORDERS, WC_VEHICLE_ORDERS,
WDF_CONSTRUCTION,
std::begin(_nested_cargo_type_orders_widgets), std::end(_nested_cargo_type_orders_widgets)
);

/** Window description for the 'unload' variant of CargoTypeOrdersWindow. */
static WindowDesc _cargo_type_unload_orders_widgets (__FILE__, __LINE__,
WDP_AUTO, "view_cargo_type_unload_order", 195, 186,
WDP_AUTO, nullptr, 195, 186,
WC_VEHICLE_CARGO_TYPE_UNLOAD_ORDERS, WC_VEHICLE_ORDERS,
WDF_CONSTRUCTION,
std::begin(_nested_cargo_type_orders_widgets), std::end(_nested_cargo_type_orders_widgets)
Expand Down
2 changes: 1 addition & 1 deletion src/tracerestrict_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4283,7 +4283,7 @@ class TraceRestrictSlotWindow : public BaseVehicleListWindow {
};

static WindowDesc _slot_window_desc(__FILE__, __LINE__,
WDP_AUTO, "list_groups_train", 525, 246,
WDP_AUTO, "list_tr_slots", 525, 246,
WC_TRACE_RESTRICT_SLOTS, WC_NONE,
0,
std::begin(_nested_slot_widgets), std::end(_nested_slot_widgets)
Expand Down

0 comments on commit 898b790

Please sign in to comment.