(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
This commit is contained in:
belugas
2006-08-22 15:23:25 +00:00
parent 480af9c917
commit 4c2abf1de5
11 changed files with 69 additions and 68 deletions

View File

@@ -731,7 +731,6 @@ static void MessageOptionsWndProc(Window *w, WindowEvent *e)
if (_news_ticker_sound) SETBIT(w->click_state, 25);
DrawWindowWidgets(w);
DrawStringCentered(185, 15, STR_0205_MESSAGE_TYPES, 0);
/* XXX - Draw the fake widgets-buttons. Can't add these to the widget-desc since
* openttd currently can only handle 32 widgets. So hack it *g* */
@@ -839,6 +838,7 @@ static const Widget _message_options_widgets[] = {
{ WWT_TEXTBTN, RESIZE_NONE, 3, 87, 98, 154, 165, STR_0225, STR_NULL},
{ WWT_4, RESIZE_NONE, 3, 4, 98, 166, 177, STR_02DB_OFF, STR_NULL},
{ WWT_LABEL, RESIZE_NONE, 13, 0, 409, 13, 26, STR_0205_MESSAGE_TYPES, STR_NULL},
{ WIDGETS_END},
};