diff options
author | belugas <belugas@openttd.org> | 2006-08-22 15:23:25 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2006-08-22 15:23:25 +0000 |
commit | 4c2abf1de53e28a5c3c6c6920efabc4653693c4c (patch) | |
tree | 9e31a242a7914da837b80e0913064ecc99b10e3b /dock_gui.c | |
parent | 480af9c9171badb7db906d2cc05856f4c2d87b73 (diff) | |
download | openttd-4c2abf1de53e28a5c3c6c6920efabc4653693c4c.tar.xz |
(svn r6046) CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered label
CodeChange : Move almost all fixed strings from ON_PAINT event to Widget array using WWT_LABEL.
Feature : All "Select Refit Cargo" are now centered, instead of been left aligned
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dock_gui.c b/dock_gui.c index 8e3b3b84b..aa51caeb0 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -239,7 +239,6 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e) SetTileSelectBigSize(0, 0, 0, 0); } - DrawStringCentered(74, 17, STR_3066_COVERAGE_AREA_HIGHLIGHT, 0); DrawStationCoverageAreaText(4, 50, (uint)-1, rad); break; } @@ -271,11 +270,12 @@ static void BuildDockStationWndProc(Window *w, WindowEvent *e) } static const Widget _build_dock_station_widgets[] = { -{ WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, -{ WWT_CAPTION, RESIZE_NONE, 7, 11, 147, 0, 13, STR_3068_DOCK, STR_018C_WINDOW_TITLE_DRAG_THIS}, -{ WWT_PANEL, RESIZE_NONE, 7, 0, 147, 14, 74, 0x0, STR_NULL}, -{ WWT_TEXTBTN, RESIZE_NONE, 14, 14, 73, 30, 40, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE}, -{ WWT_TEXTBTN, RESIZE_NONE, 14, 74, 133, 30, 40, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA}, +{ WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, +{ WWT_CAPTION, RESIZE_NONE, 7, 11, 147, 0, 13, STR_3068_DOCK, STR_018C_WINDOW_TITLE_DRAG_THIS}, +{ WWT_PANEL, RESIZE_NONE, 7, 0, 147, 14, 74, 0x0, STR_NULL}, +{ WWT_TEXTBTN, RESIZE_NONE, 14, 14, 73, 30, 40, STR_02DB_OFF, STR_3065_DON_T_HIGHLIGHT_COVERAGE}, +{ WWT_TEXTBTN, RESIZE_NONE, 14, 74, 133, 30, 40, STR_02DA_ON, STR_3064_HIGHLIGHT_COVERAGE_AREA}, +{ WWT_LABEL, RESIZE_NONE, 7, 0, 147, 17, 30, STR_3066_COVERAGE_AREA_HIGHLIGHT, STR_NULL}, { WIDGETS_END}, }; |