Changeset - r20815:c0659cbf1fe0
[Not reviewed]
master
0 1 0
planetmaker - 11 years ago 2013-10-13 11:06:58
planetmaker@openttd.org
(svn r25859) -Add [FS#5784]: Hightlight active goto item in order list dropdown (adf88)
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -1275,7 +1275,15 @@ public:
 
				if (this->GetWidget<NWidgetLeaf>(widget)->ButtonHit(pt)) {
 
					this->OrderClick_Goto();
 
				} else {
 
					ShowDropDownMenu(this, this->vehicle->type == VEH_AIRCRAFT ? _order_goto_dropdown_aircraft : _order_goto_dropdown, 0, WID_O_GOTO, 0, 0);
 
					int sel;
 
					switch (this->goto_type) {
 
						case OPOS_NONE:        sel = -1; break;
 
						case OPOS_GOTO:        sel =  0; break;
 
						case OPOS_CONDITIONAL: sel =  2; break;
 
						case OPOS_SHARE:       sel =  3; break;
 
						default: NOT_REACHED();
 
					}
 
					ShowDropDownMenu(this, this->vehicle->type == VEH_AIRCRAFT ? _order_goto_dropdown_aircraft : _order_goto_dropdown, sel, WID_O_GOTO, 0, 0);
 
				}
 
				break;
 

	
0 comments (0 inline, 0 general)