src/station_gui.cpp
changeset 9273 35e0224ea8f1
parent 9214 933c86db8e44
child 9297 1cb8d7bbdc8a
equal deleted inserted replaced
9272:e64b518a7b54 9273:35e0224ea8f1
   367 		SetDParam(1, this->vscroll.count);
   367 		SetDParam(1, this->vscroll.count);
   368 
   368 
   369 		/* Set text of sort by dropdown */
   369 		/* Set text of sort by dropdown */
   370 		this->widget[SLW_SORTDROPBTN].data = _station_sort_listing[this->sort_type];
   370 		this->widget[SLW_SORTDROPBTN].data = _station_sort_listing[this->sort_type];
   371 
   371 
   372 		DrawWindowWidgets(this);
   372 		this->DrawWidgets();
   373 
   373 
   374 		/* draw arrow pointing up/down for ascending/descending sorting */
   374 		/* draw arrow pointing up/down for ascending/descending sorting */
   375 		DrawSortButtonState(this, SLW_SORTBY, this->flags & VL_DESC ? SBS_DOWN : SBS_UP);
   375 		this->DrawSortButtonState(SLW_SORTBY, this->flags & VL_DESC ? SBS_DOWN : SBS_UP);
   376 
   376 
   377 		int cg_ofst;
   377 		int cg_ofst;
   378 		int x = 89;
   378 		int x = 89;
   379 		int y = 14;
   379 		int y = 14;
   380 		int xb = 2; ///< offset from left of widget
   380 		int xb = 2; ///< offset from left of widget
   811 		this->SetWidgetDisabledState(SVW_PLANES,   !(st->facilities & FACIL_AIRPORT));
   811 		this->SetWidgetDisabledState(SVW_PLANES,   !(st->facilities & FACIL_AIRPORT));
   812 		this->SetWidgetDisabledState(SVW_SHIPS,    !(st->facilities & FACIL_DOCK));
   812 		this->SetWidgetDisabledState(SVW_SHIPS,    !(st->facilities & FACIL_DOCK));
   813 
   813 
   814 		SetDParam(0, st->index);
   814 		SetDParam(0, st->index);
   815 		SetDParam(1, st->facilities);
   815 		SetDParam(1, st->facilities);
   816 		DrawWindowWidgets(this);
   816 		this->DrawWidgets();
   817 
   817 
   818 		int x = 2;  ///< coordinates used for printing waiting/accepted/rating of cargo
   818 		int x = 2;  ///< coordinates used for printing waiting/accepted/rating of cargo
   819 		int y = 15;
   819 		int y = 15;
   820 		int pos = this->vscroll.pos; ///< = this->vscroll.pos
   820 		int pos = this->vscroll.pos; ///< = this->vscroll.pos
   821 
   821