Template replacement: Use more descriptive strings for add vehicle button
This commit is contained in:
@@ -1322,8 +1322,13 @@ struct BuildVehicleWindow : BuildVehicleWindowBase {
|
||||
if (refit) refit = Engine::Get(this->sel_engine)->GetDefaultCargoType() != this->cargo_filter[this->cargo_filter_criteria];
|
||||
|
||||
if (this->virtual_train_mode) {
|
||||
widget->widget_data = STR_TMPL_CONFIRM;
|
||||
widget->tool_tip = STR_TMPL_CONFIRM;
|
||||
if (refit) {
|
||||
widget->widget_data = STR_TMPL_ADD_VEHICLE_REFIT;
|
||||
widget->tool_tip = STR_TMPL_ADD_REFIT_TOOLTIP;
|
||||
} else {
|
||||
widget->widget_data = STR_TMPL_ADD_VEHICLE;
|
||||
widget->tool_tip = STR_TMPL_ADD_TOOLTIP;
|
||||
}
|
||||
} else {
|
||||
if (refit) {
|
||||
widget->widget_data = STR_BUY_VEHICLE_TRAIN_BUY_REFIT_VEHICLE_BUTTON + this->vehicle_type;
|
||||
@@ -2082,8 +2087,13 @@ struct BuildVehicleWindowTrainAdvanced final : BuildVehicleWindowBase {
|
||||
const auto widget = this->GetWidget<NWidgetCore>(widget_id);
|
||||
|
||||
if (this->virtual_train_mode) {
|
||||
widget->widget_data = STR_TMPL_CONFIRM;
|
||||
widget->tool_tip = STR_TMPL_CONFIRM;
|
||||
if (GetRefitButtonMode(this->loco)) {
|
||||
widget->widget_data = STR_TMPL_ADD_LOCOMOTIVE_REFIT;
|
||||
widget->tool_tip = STR_TMPL_ADD_REFIT_TOOLTIP;
|
||||
} else {
|
||||
widget->widget_data = STR_TMPL_ADD_LOCOMOTIVE;
|
||||
widget->tool_tip = STR_TMPL_ADD_TOOLTIP;
|
||||
}
|
||||
} else {
|
||||
if (GetRefitButtonMode(this->loco)) {
|
||||
widget->widget_data = STR_BUY_VEHICLE_TRAIN_BUY_REFIT_LOCOMOTIVE_BUTTON;
|
||||
@@ -2100,8 +2110,13 @@ struct BuildVehicleWindowTrainAdvanced final : BuildVehicleWindowBase {
|
||||
const auto widget = this->GetWidget<NWidgetCore>(widget_id);
|
||||
|
||||
if (this->virtual_train_mode) {
|
||||
widget->widget_data = STR_TMPL_CONFIRM;
|
||||
widget->tool_tip = STR_TMPL_CONFIRM;
|
||||
if (GetRefitButtonMode(this->wagon)) {
|
||||
widget->widget_data = STR_TMPL_ADD_WAGON_REFIT;
|
||||
widget->tool_tip = STR_TMPL_ADD_REFIT_TOOLTIP;
|
||||
} else {
|
||||
widget->widget_data = STR_TMPL_ADD_WAGON;
|
||||
widget->tool_tip = STR_TMPL_ADD_TOOLTIP;
|
||||
}
|
||||
} else {
|
||||
if (GetRefitButtonMode(this->wagon)) {
|
||||
widget->widget_data = STR_BUY_VEHICLE_TRAIN_BUY_REFIT_WAGON_BUTTON;
|
||||
|
@@ -7308,6 +7308,15 @@ STR_TMPL_CREATEGUI_TITLE :{WHITE}Create/E
|
||||
STR_TMPL_MAINGUI_DEFINEDGROUPS :{BLACK}Defined Groups for Company
|
||||
STR_TMPL_TMPLRPL_EX_DIFF_RAILTYPE :Uses Template of different rail type
|
||||
|
||||
STR_TMPL_ADD_LOCOMOTIVE :{BLACK}Add locomotive
|
||||
STR_TMPL_ADD_WAGON :{BLACK}Add wagon
|
||||
STR_TMPL_ADD_VEHICLE :{BLACK}Add vehicle
|
||||
STR_TMPL_ADD_LOCOMOTIVE_REFIT :{BLACK}Add and refit locomotive
|
||||
STR_TMPL_ADD_WAGON_REFIT :{BLACK}Add and refit wagon
|
||||
STR_TMPL_ADD_VEHICLE_REFIT :{BLACK}Add and refit vehicle
|
||||
STR_TMPL_ADD_TOOLTIP :{BLACK}Add the highlighted vehicle to the template.
|
||||
STR_TMPL_ADD_REFIT_TOOLTIP :{BLACK}Add and refit the highlighted vehicle to the template.
|
||||
|
||||
STR_TMPL_SET_USEDEPOT :{BLACK}Use vehicles in depot
|
||||
STR_TMPL_SET_USEDEPOT_TIP :{BLACK}Use vehicles inside the depot that are in a neutral and idle state to compose trains on template replacement in order to reduce buying costs
|
||||
STR_TMPL_SET_KEEPREMAINDERS :{BLACK}Keep remainders
|
||||
|
Reference in New Issue
Block a user