Merge branch 'master' into jgrpp
# Conflicts: # src/airport_gui.cpp # src/build_vehicle_gui.cpp # src/direction_type.h # src/gfx_type.h # src/group_gui.cpp # src/misc_gui.cpp # src/rail_gui.cpp # src/road_gui.cpp # src/signs_gui.cpp # src/slope_func.h # src/smallmap_gui.cpp # src/terraform_gui.cpp # src/toolbar_gui.cpp # src/town_gui.cpp # src/town_type.h # src/vehicle_type.h # src/widget_type.h
This commit is contained in:
@@ -837,7 +837,7 @@ static std::unique_ptr<NWidgetBase> CargoWidgets()
|
||||
return container;
|
||||
}
|
||||
|
||||
static const NWidgetPart _nested_company_stations_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_company_stations_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
|
||||
NWidget(WWT_CAPTION, COLOUR_GREY, WID_STL_CAPTION), SetDataTip(STR_STATION_LIST_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
|
||||
@@ -891,7 +891,7 @@ void ShowCompanyStations(CompanyID company)
|
||||
AllocateWindowDescFront<CompanyStationsWindow>(&_company_stations_desc, company);
|
||||
}
|
||||
|
||||
static const NWidgetPart _nested_station_view_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_station_view_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_GREY),
|
||||
NWidget(WWT_IMGBTN, COLOUR_GREY, WID_SV_RENAME), SetMinimalSize(12, 14), SetDataTip(SPR_RENAME, 0x0),
|
||||
@@ -2514,7 +2514,7 @@ static const T *FindStationsNearby(TileArea ta, bool distant_join, IsSpecialized
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
static const NWidgetPart _nested_select_station_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_select_station_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN),
|
||||
NWidget(WWT_CAPTION, COLOUR_DARK_GREEN, WID_JS_CAPTION), SetDataTip(STR_JOIN_STATION_CAPTION, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS),
|
||||
@@ -2747,7 +2747,7 @@ void ShowSelectWaypointIfNeeded(const CommandContainer &cmd, TileArea ta)
|
||||
ShowSelectBaseStationIfNeeded<Waypoint>(cmd, ta);
|
||||
}
|
||||
|
||||
static const NWidgetPart _nested_station_rating_tooltip_widgets[] = {
|
||||
static constexpr NWidgetPart _nested_station_rating_tooltip_widgets[] = {
|
||||
NWidget(WWT_PANEL, COLOUR_GREY, WID_TT_BACKGROUND), SetMinimalSize(64, 32), EndContainer(),
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user