Re-centered start/stop vehicle string
This commit is contained in:
@@ -2654,8 +2654,8 @@ public:
|
|||||||
int image_left = (rtl ? text_right + 1 : r.left) + WD_IMGBTN_LEFT;
|
int image_left = (rtl ? text_right + 1 : r.left) + WD_IMGBTN_LEFT;
|
||||||
int image = ((v->vehstatus & VS_STOPPED) != 0) ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING;
|
int image = ((v->vehstatus & VS_STOPPED) != 0) ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING;
|
||||||
int lowered = this->IsWidgetLowered(WID_VV_START_STOP) ? 1 : 0;
|
int lowered = this->IsWidgetLowered(WID_VV_START_STOP) ? 1 : 0;
|
||||||
DrawSprite(image, PAL_NONE, image_left + lowered, r.top + WD_IMGBTN_TOP + lowered);
|
DrawSprite(image, PAL_NONE, image_left + lowered, Center(r.top, r.bottom - r.top) + WD_IMGBTN_TOP + lowered);
|
||||||
DrawString(text_left + lowered, text_right + lowered, r.top + WD_FRAMERECT_TOP + lowered, str, TC_FROMSTRING, SA_HOR_CENTER);
|
DrawString(text_left + lowered, text_right + lowered, Center(r.top, r.bottom - r.top) + lowered, str, TC_FROMSTRING, SA_HOR_CENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnClick(Point pt, int widget, int click_count)
|
virtual void OnClick(Point pt, int widget, int click_count)
|
||||||
|
|||||||
4
todo.txt
4
todo.txt
@@ -16,3 +16,7 @@
|
|||||||
- Tooltip window steals touches, move tooltip window back to the top of the mouse cursor.
|
- Tooltip window steals touches, move tooltip window back to the top of the mouse cursor.
|
||||||
|
|
||||||
- Move windows by dragging past window edge, close windows by moving them to toolbar.
|
- Move windows by dragging past window edge, close windows by moving them to toolbar.
|
||||||
|
|
||||||
|
- Graph window is too wide.
|
||||||
|
|
||||||
|
- Timetable window is not finger-friendly.
|
||||||
|
|||||||
Reference in New Issue
Block a user