Update to v4 of house placing patch.
This commit is contained in:
@@ -380,8 +380,8 @@ void ShowDropDownListAt(Window *w, const DropDownList *list, int selected, int b
|
||||
|
||||
if (auto_width) width = max(width, max_item_width);
|
||||
|
||||
Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - width : wi_rect.left), top};
|
||||
Dimension dw_size = {width, height};
|
||||
Point dw_pos = { w->left + (_current_text_dir == TD_RTL ? wi_rect.right + 1 - (int)width : wi_rect.left), top};
|
||||
Dimension dw_size = {width, (uint)height};
|
||||
new DropdownWindow(w, list, selected, button, instant_close, dw_pos, dw_size, wi_colour, scroll);
|
||||
}
|
||||
|
||||
|
@@ -39,7 +39,6 @@ enum EditorTerraformToolbarWidgets {
|
||||
WID_ETT_PLACE_ROCKS, ///< Place rocks button.
|
||||
WID_ETT_PLACE_DESERT, ///< Place desert button (in tropical climate).
|
||||
WID_ETT_PLACE_OBJECT, ///< Place transmitter button.
|
||||
WID_ETT_PLACE_HOUSE, ///< Place house button.
|
||||
WID_ETT_BUTTONS_END, ///< End of pushable buttons.
|
||||
WID_ETT_INCREASE_SIZE = WID_ETT_BUTTONS_END, ///< Upwards arrow button to increase terraforming size.
|
||||
WID_ETT_DECREASE_SIZE, ///< Downwards arrow button to decrease terraforming size.
|
||||
|
@@ -62,6 +62,13 @@ enum TownFoundingWidgets {
|
||||
WID_TF_LAYOUT_RANDOM, ///< Selection for a randomly chosen town layout.
|
||||
};
|
||||
|
||||
/** Widgets of the #SelectTownWindow class. */
|
||||
enum SelectTownWidgets {
|
||||
WID_ST_CAPTION, ///< Caption of the window.
|
||||
WID_ST_PANEL, ///< Main panel.
|
||||
WID_ST_SCROLLBAR, ///< Scrollbar of the panel.
|
||||
};
|
||||
|
||||
/** Widgets of the #HousePickerWindow class. */
|
||||
enum HousePickerWidgets {
|
||||
WID_HP_CAPTION,
|
||||
@@ -72,6 +79,10 @@ enum HousePickerWidgets {
|
||||
WID_HP_HOUSE_SELECT_SCROLL, ///< Scrollbar associated with the house matrix.
|
||||
WID_HP_HOUSE_SELECT, ///< Panels with house images in the house matrix.
|
||||
WID_HP_HOUSE_PREVIEW, ///< House preview panel.
|
||||
WID_HP_PREV_VARIANT_SEL, ///< Selection widget to show/hide the prev variant buttons.
|
||||
WID_HP_PREV_VARIANT, ///< Prev variant button.
|
||||
WID_HP_NEXT_VARIANT_SEL, ///< Selection widget to show/hide the next variant buttons.
|
||||
WID_HP_NEXT_VARIANT, ///< Next variant button.
|
||||
WID_HP_HOUSE_NAME, ///< House name display.
|
||||
WID_HP_HISTORICAL_BUILDING, ///< "Historical building" label.
|
||||
WID_HP_HOUSE_POPULATION, ///< House population display.
|
||||
@@ -83,11 +94,4 @@ enum HousePickerWidgets {
|
||||
WID_HP_HOUSE_SUPPLY, ///< Cargo supplied.
|
||||
};
|
||||
|
||||
/** Widgets of the #SelectTownWindow class. */
|
||||
enum SelectTownWidgets {
|
||||
WID_ST_CAPTION, ///< Caption of the window.
|
||||
WID_ST_PANEL, ///< Main panel.
|
||||
WID_ST_SCROLLBAR, ///< Scrollbar of the panel.
|
||||
};
|
||||
|
||||
#endif /* WIDGETS_TOWN_WIDGET_H */
|
||||
|
Reference in New Issue
Block a user