Merge commit 'a8b575671894ffe1329ef37dca4989c0e60d70f5'
These merges are becoming more awful every time Conflicts: src/ai/ai_gui.cpp src/build_vehicle_gui.cpp src/cheat_gui.cpp src/company_gui.cpp src/depot_gui.cpp src/dock_gui.cpp src/error_gui.cpp src/genworld_gui.cpp src/misc_gui.cpp src/network/network_content_gui.cpp src/network/network_gui.cpp src/newgrf_gui.cpp src/news_gui.cpp src/rail_gui.cpp src/rev.cpp.in src/road_gui.cpp src/settings_gui.cpp src/settings_gui.h src/signs_gui.cpp src/station_gui.cpp src/table/settings.ini src/terraform_gui.cpp src/toolbar_gui.cpp src/toolbar_gui.h src/vehicle_gui.cpp src/video/sdl_v.cpp src/viewport.cpp src/widget.cpp src/widgets/settings_widget.h
This commit is contained in:
@@ -16,6 +16,11 @@
|
||||
enum ReplaceVehicleWidgets {
|
||||
WID_RV_CAPTION, ///< Caption of the window.
|
||||
|
||||
/* Sort dropdown at the right. */
|
||||
WID_RV_SORT_ASCENDING_DESCENDING, ///< Ascending/descending sort order button.
|
||||
WID_RV_SHOW_HIDDEN_ENGINES, ///< Toggle whether to display the hidden vehicles.
|
||||
WID_RV_SORT_DROPDOWN, ///< Dropdown for the sort criteria.
|
||||
|
||||
/* Left and right matrix + details. */
|
||||
WID_RV_LEFT_MATRIX, ///< The matrix on the left.
|
||||
WID_RV_LEFT_SCROLLBAR, ///< The scrollbar for the matrix on the left.
|
||||
|
||||
@@ -15,13 +15,15 @@
|
||||
/** Widgets of the #BuildVehicleWindow class. */
|
||||
enum BuildVehicleWidgets {
|
||||
WID_BV_CAPTION, ///< Caption of window.
|
||||
WID_BV_SORT_ASSENDING_DESCENDING, ///< Sort direction.
|
||||
WID_BV_SORT_ASCENDING_DESCENDING, ///< Sort direction.
|
||||
WID_BV_SORT_DROPDOWN, ///< Criteria of sorting dropdown.
|
||||
WID_BV_CARGO_FILTER_DROPDOWN, ///< Cargo filter dropdown.
|
||||
WID_BV_SHOW_HIDDEN_ENGINES, ///< Toggle whether to display the hidden vehicles.
|
||||
WID_BV_LIST, ///< List of vehicles.
|
||||
WID_BV_SCROLLBAR, ///< Scrollbar of list.
|
||||
WID_BV_PANEL, ///< Button panel.
|
||||
WID_BV_BUILD, ///< Build panel.
|
||||
WID_BV_SHOW_HIDE, ///< Button to hide or show the selected engine.
|
||||
WID_BV_BUILD_SEL, ///< Build button.
|
||||
WID_BV_RENAME, ///< Rename button.
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ static const NWidgetPart _nested_dropdown_menu_widgets[] = {
|
||||
static WindowDesc _dropdown_desc(
|
||||
WDP_MANUAL, NULL, 0, 0,
|
||||
WC_DROPDOWN_MENU, WC_NONE,
|
||||
0,
|
||||
WDF_NO_FOCUS,
|
||||
_nested_dropdown_menu_widgets, lengthof(_nested_dropdown_menu_widgets)
|
||||
);
|
||||
|
||||
@@ -427,8 +427,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);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@ enum GenerateLandscapeWidgets {
|
||||
|
||||
WID_GL_GENERATE_BUTTON, ///< 'Generate' button.
|
||||
|
||||
WID_GL_MAX_HEIGHTLEVEL_DOWN, ///< Decrease max. heightlevel
|
||||
WID_GL_MAX_HEIGHTLEVEL_TEXT, ///< Max. heightlevel
|
||||
WID_GL_MAX_HEIGHTLEVEL_UP, ///< Increase max. heightlevel
|
||||
|
||||
WID_GL_START_DATE_DOWN, ///< Decrease start year.
|
||||
WID_GL_START_DATE_TEXT, ///< Start year.
|
||||
WID_GL_START_DATE_UP, ///< Increase start year.
|
||||
|
||||
@@ -25,19 +25,21 @@ enum NewGRFInspectWidgets {
|
||||
|
||||
/** Widgets of the #SpriteAlignerWindow class. */
|
||||
enum SpriteAlignerWidgets {
|
||||
WID_SA_CAPTION, ///< Caption of the window.
|
||||
WID_SA_PREVIOUS, ///< Skip to the previous sprite.
|
||||
WID_SA_GOTO, ///< Go to a given sprite.
|
||||
WID_SA_NEXT, ///< Skip to the next sprite.
|
||||
WID_SA_UP, ///< Move the sprite up.
|
||||
WID_SA_LEFT, ///< Move the sprite to the left.
|
||||
WID_SA_RIGHT, ///< Move the sprite to the right.
|
||||
WID_SA_DOWN, ///< Move the sprite down.
|
||||
WID_SA_SPRITE, ///< The actual sprite.
|
||||
WID_SA_OFFSETS, ///< The sprite offsets.
|
||||
WID_SA_PICKER, ///< Sprite picker.
|
||||
WID_SA_LIST, ///< Queried sprite list.
|
||||
WID_SA_SCROLLBAR, ///< Scrollbar for sprite list.
|
||||
WID_SA_CAPTION, ///< Caption of the window.
|
||||
WID_SA_PREVIOUS, ///< Skip to the previous sprite.
|
||||
WID_SA_GOTO, ///< Go to a given sprite.
|
||||
WID_SA_NEXT, ///< Skip to the next sprite.
|
||||
WID_SA_UP, ///< Move the sprite up.
|
||||
WID_SA_LEFT, ///< Move the sprite to the left.
|
||||
WID_SA_RIGHT, ///< Move the sprite to the right.
|
||||
WID_SA_DOWN, ///< Move the sprite down.
|
||||
WID_SA_SPRITE, ///< The actual sprite.
|
||||
WID_SA_OFFSETS_ABS, ///< The sprite offsets (absolute).
|
||||
WID_SA_OFFSETS_REL, ///< The sprite offsets (relative).
|
||||
WID_SA_PICKER, ///< Sprite picker.
|
||||
WID_SA_LIST, ///< Queried sprite list.
|
||||
WID_SA_SCROLLBAR, ///< Scrollbar for sprite list.
|
||||
WID_SA_RESET_REL, ///< Reset relative sprite offset
|
||||
};
|
||||
|
||||
#endif /* WIDGETS_NEWGRF_DEBUG_WIDGET_H */
|
||||
|
||||
@@ -26,6 +26,7 @@ enum GameOptionsWidgets {
|
||||
WID_GO_BUTTON_SIZE_DROPDOWN, ///< Size of in-game UI elements, such as buttons.
|
||||
WID_GO_TEXT_SIZE_DROPDOWN, ///< Size of medium font, sizes of other fonts are derived from it.
|
||||
WID_GO_VERTICAL_TOOLBAR, ///< Enable vertical toolbar.
|
||||
WID_GO_GUI_ZOOM_DROPDOWN, ///< Dropdown for the GUI zoom level.
|
||||
WID_GO_BASE_GRF_DROPDOWN, ///< Use to select a base GRF.
|
||||
WID_GO_BASE_GRF_STATUS, ///< Info about missing files etc.
|
||||
WID_GO_BASE_GRF_TEXTFILE, ///< Open base GRF readme, changelog (+1) or license (+2).
|
||||
|
||||
@@ -34,4 +34,4 @@ enum QueryEditSignWidgets {
|
||||
WID_QES_NEXT, ///< Next button.
|
||||
};
|
||||
|
||||
#endif /* */
|
||||
#endif /* SIGN_WIDGET_H */
|
||||
|
||||
Reference in New Issue
Block a user