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 /main_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 'main_gui.c')
-rw-r--r-- | main_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c index 27fa04fe8..365d9b306 100644 --- a/main_gui.c +++ b/main_gui.c @@ -1394,6 +1394,7 @@ static const Widget _scen_edit_town_gen_widgets[] = { { WWT_TEXTBTN, RESIZE_NONE, 14, 2, 53, 68, 79, STR_02A1_SMALL, STR_02A4_SELECT_TOWN_SIZE}, { WWT_TEXTBTN, RESIZE_NONE, 14, 54, 105, 68, 79, STR_02A2_MEDIUM, STR_02A4_SELECT_TOWN_SIZE}, { WWT_TEXTBTN, RESIZE_NONE, 14, 106, 157, 68, 79, STR_02A3_LARGE, STR_02A4_SELECT_TOWN_SIZE}, +{ WWT_LABEL, RESIZE_NONE, 7, 0, 147, 54, 67, STR_02A5_TOWN_SIZE, STR_NULL}, { WIDGETS_END}, }; @@ -1402,7 +1403,6 @@ static void ScenEditTownGenWndProc(Window *w, WindowEvent *e) switch (e->event) { case WE_PAINT: DrawWindowWidgets(w); - DrawStringCentered(80, 56, STR_02A5_TOWN_SIZE, 0); break; case WE_CREATE: |