Changeset - r28588:6c2af998e7d5
[Not reviewed]
master
0 2 0
Tyler Trahan - 3 months ago 2024-01-28 13:01:09
tyler@tylertrahan.com
Fix: Extra refit button when train/RV is in a depot (#11904)
2 files changed with 1 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -778,9 +778,6 @@ public:
 
		this->CreateNestedTree();
 
		this->vscroll = this->GetScrollbar(WID_O_SCROLLBAR);
 
		this->FinishInitNested(v->index);
 
		if (v->owner == _local_company) {
 
			this->DisableWidget(WID_O_EMPTY);
 
		}
 

	
 
		this->selected_order = -1;
 
		this->order_over = INVALID_VEH_ORDER_ID;
 
@@ -1600,8 +1597,7 @@ static constexpr NWidgetPart _nested_ord
 
															SetDataTip(STR_ORDER_SERVICE, STR_ORDER_SERVICE_TOOLTIP), SetResize(1, 0),
 
				EndContainer(),
 
				NWidget(NWID_SELECTION, INVALID_COLOUR, WID_O_SEL_TOP_RIGHT),
 
					NWidget(WWT_TEXTBTN, COLOUR_GREY, WID_O_EMPTY), SetMinimalSize(93, 12), SetFill(1, 0),
 
															SetDataTip(STR_ORDER_REFIT, STR_ORDER_REFIT_TOOLTIP), SetResize(1, 0),
 
					NWidget(WWT_PANEL, COLOUR_GREY), SetMinimalSize(93, 12), SetFill(1, 0), SetResize(1, 0), EndContainer(),
 
					NWidget(NWID_BUTTON_DROPDOWN, COLOUR_GREY, WID_O_REFIT_DROPDOWN), SetMinimalSize(93, 12), SetFill(1, 0),
 
															SetDataTip(STR_ORDER_REFIT_AUTO, STR_ORDER_REFIT_AUTO_TOOLTIP), SetResize(1, 0),
 
				EndContainer(),
src/widgets/order_widget.h
Show inline comments
 
@@ -25,7 +25,6 @@ enum OrderWidgets : WidgetID {
 
	WID_O_UNLOAD,                    ///< Select unload.
 
	WID_O_REFIT,                     ///< Select refit.
 
	WID_O_SERVICE,                   ///< Select service (at depot).
 
	WID_O_EMPTY,                     ///< Placeholder for refit dropdown when not owner.
 
	WID_O_REFIT_DROPDOWN,            ///< Open refit options.
 
	WID_O_COND_VARIABLE,             ///< Choose condition variable.
 
	WID_O_COND_COMPARATOR,           ///< Choose condition type.
0 comments (0 inline, 0 general)