src/player_gui.cpp
changeset 6144 5a0ffbf27ced
parent 6105 761d393829d6
child 6235 5077e6ed3788
child 6516 ee6d057b9850
equal deleted inserted replaced
6143:87e99d425124 6144:5a0ffbf27ced
   188 	}
   188 	}
   189 }
   189 }
   190 
   190 
   191 static const WindowDesc _player_finances_desc = {
   191 static const WindowDesc _player_finances_desc = {
   192 	WDP_AUTO, WDP_AUTO, 407, 216,
   192 	WDP_AUTO, WDP_AUTO, 407, 216,
   193 	WC_FINANCES,0,
   193 	WC_FINANCES, WC_NONE,
   194 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   194 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   195 	_player_finances_widgets,
   195 	_player_finances_widgets,
   196 	PlayerFinancesWndProc
   196 	PlayerFinancesWndProc
   197 };
   197 };
   198 
   198 
   199 static const WindowDesc _player_finances_small_desc = {
   199 static const WindowDesc _player_finances_small_desc = {
   200 	WDP_AUTO, WDP_AUTO, 280, 60,
   200 	WDP_AUTO, WDP_AUTO, 280, 60,
   201 	WC_FINANCES,0,
   201 	WC_FINANCES, WC_NONE,
   202 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   202 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   203 	_player_finances_small_widgets,
   203 	_player_finances_small_widgets,
   204 	PlayerFinancesWndProc
   204 	PlayerFinancesWndProc
   205 };
   205 };
   206 
   206 
   207 static const WindowDesc _other_player_finances_desc = {
   207 static const WindowDesc _other_player_finances_desc = {
   208 	WDP_AUTO, WDP_AUTO, 407, 204,
   208 	WDP_AUTO, WDP_AUTO, 407, 204,
   209 	WC_FINANCES,0,
   209 	WC_FINANCES, WC_NONE,
   210 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   210 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   211 	_other_player_finances_widgets,
   211 	_other_player_finances_widgets,
   212 	PlayerFinancesWndProc
   212 	PlayerFinancesWndProc
   213 };
   213 };
   214 
   214 
   215 static const WindowDesc _other_player_finances_small_desc = {
   215 static const WindowDesc _other_player_finances_small_desc = {
   216 	WDP_AUTO, WDP_AUTO, 280, 48,
   216 	WDP_AUTO, WDP_AUTO, 280, 48,
   217 	WC_FINANCES,0,
   217 	WC_FINANCES, WC_NONE,
   218 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   218 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON,
   219 	_other_player_finances_small_widgets,
   219 	_other_player_finances_small_widgets,
   220 	PlayerFinancesWndProc
   220 	PlayerFinancesWndProc
   221 };
   221 };
   222 
   222 
   470 { WIDGETS_END },
   470 { WIDGETS_END },
   471 };
   471 };
   472 
   472 
   473 static const WindowDesc _select_player_livery_2cc_desc = {
   473 static const WindowDesc _select_player_livery_2cc_desc = {
   474 	WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14,
   474 	WDP_AUTO, WDP_AUTO, 400, 49 + 1 * 14,
   475 	WC_PLAYER_COLOR, 0,
   475 	WC_PLAYER_COLOR, WC_NONE,
   476 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   476 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   477 	_select_player_livery_2cc_widgets,
   477 	_select_player_livery_2cc_widgets,
   478 	SelectPlayerLiveryWndProc
   478 	SelectPlayerLiveryWndProc
   479 };
   479 };
   480 
   480 
   497 { WIDGETS_END },
   497 { WIDGETS_END },
   498 };
   498 };
   499 
   499 
   500 static const WindowDesc _select_player_livery_desc = {
   500 static const WindowDesc _select_player_livery_desc = {
   501 	WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14,
   501 	WDP_AUTO, WDP_AUTO, 275, 49 + 1 * 14,
   502 	WC_PLAYER_COLOR, 0,
   502 	WC_PLAYER_COLOR, WC_NONE,
   503 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   503 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   504 	_select_player_livery_widgets,
   504 	_select_player_livery_widgets,
   505 	SelectPlayerLiveryWndProc
   505 	SelectPlayerLiveryWndProc
   506 };
   506 };
   507 
   507 
   551 {   WIDGETS_END},
   551 {   WIDGETS_END},
   552 };
   552 };
   553 
   553 
   554 static const WindowDesc _select_player_face_desc = {
   554 static const WindowDesc _select_player_face_desc = {
   555 	WDP_AUTO, WDP_AUTO, 190, 149,
   555 	WDP_AUTO, WDP_AUTO, 190, 149,
   556 	WC_PLAYER_FACE,0,
   556 	WC_PLAYER_FACE, WC_NONE,
   557 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   557 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   558 	_select_player_face_widgets,
   558 	_select_player_face_widgets,
   559 	SelectPlayerFaceWndProc
   559 	SelectPlayerFaceWndProc
   560 };
   560 };
   561 
   561 
   867 }
   867 }
   868 
   868 
   869 
   869 
   870 static const WindowDesc _player_company_desc = {
   870 static const WindowDesc _player_company_desc = {
   871 	WDP_AUTO, WDP_AUTO, 360, 170,
   871 	WDP_AUTO, WDP_AUTO, 360, 170,
   872 	WC_COMPANY, 0,
   872 	WC_COMPANY, WC_NONE,
   873 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   873 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
   874 	_player_company_widgets,
   874 	_player_company_widgets,
   875 	PlayerCompanyWndProc
   875 	PlayerCompanyWndProc
   876 };
   876 };
   877 
   877 
   928 {   WIDGETS_END},
   928 {   WIDGETS_END},
   929 };
   929 };
   930 
   930 
   931 static const WindowDesc _buy_company_desc = {
   931 static const WindowDesc _buy_company_desc = {
   932 	153, 171, 334, 137,
   932 	153, 171, 334, 137,
   933 	WC_BUY_COMPANY,0,
   933 	WC_BUY_COMPANY, WC_NONE,
   934 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   934 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
   935 	_buy_company_widgets,
   935 	_buy_company_widgets,
   936 	BuyCompanyWndProc
   936 	BuyCompanyWndProc
   937 };
   937 };
   938 
   938 
  1051 {   WIDGETS_END},
  1051 {   WIDGETS_END},
  1052 };
  1052 };
  1053 
  1053 
  1054 static const WindowDesc _highscore_desc = {
  1054 static const WindowDesc _highscore_desc = {
  1055 	0, 0, 641, 481,
  1055 	0, 0, 641, 481,
  1056 	WC_HIGHSCORE,0,
  1056 	WC_HIGHSCORE, WC_NONE,
  1057 	0,
  1057 	0,
  1058 	_highscore_widgets,
  1058 	_highscore_widgets,
  1059 	HighScoreWndProc
  1059 	HighScoreWndProc
  1060 };
  1060 };
  1061 
  1061 
  1062 static const WindowDesc _endgame_desc = {
  1062 static const WindowDesc _endgame_desc = {
  1063 	0, 0, 641, 481,
  1063 	0, 0, 641, 481,
  1064 	WC_ENDSCREEN,0,
  1064 	WC_ENDSCREEN, WC_NONE,
  1065 	0,
  1065 	0,
  1066 	_highscore_widgets,
  1066 	_highscore_widgets,
  1067 	EndGameWndProc
  1067 	EndGameWndProc
  1068 };
  1068 };
  1069 
  1069