equal
deleted
inserted
replaced
262 static const WindowDesc _town_authority_desc = { |
262 static const WindowDesc _town_authority_desc = { |
263 WDP_AUTO, WDP_AUTO, 317, 222, 317, 222, |
263 WDP_AUTO, WDP_AUTO, 317, 222, 317, 222, |
264 WC_TOWN_AUTHORITY, WC_NONE, |
264 WC_TOWN_AUTHORITY, WC_NONE, |
265 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
265 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS, |
266 _town_authority_widgets, |
266 _town_authority_widgets, |
267 NULL |
|
268 }; |
267 }; |
269 |
268 |
270 static void ShowTownAuthorityWindow(uint town) |
269 static void ShowTownAuthorityWindow(uint town) |
271 { |
270 { |
272 AllocateWindowDescFront<TownAuthorityWindow>(&_town_authority_desc, town); |
271 AllocateWindowDescFront<TownAuthorityWindow>(&_town_authority_desc, town); |
395 static const WindowDesc _town_view_desc = { |
394 static const WindowDesc _town_view_desc = { |
396 WDP_AUTO, WDP_AUTO, 260, 150, 260, 150, |
395 WDP_AUTO, WDP_AUTO, 260, 150, 260, 150, |
397 WC_TOWN_VIEW, WC_NONE, |
396 WC_TOWN_VIEW, WC_NONE, |
398 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, |
397 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON, |
399 _town_view_widgets, |
398 _town_view_widgets, |
400 NULL |
|
401 }; |
399 }; |
402 |
400 |
403 void ShowTownViewWindow(TownID town) |
401 void ShowTownViewWindow(TownID town) |
404 { |
402 { |
405 AllocateWindowDescFront<TownViewWindow>(&_town_view_desc, town); |
403 AllocateWindowDescFront<TownViewWindow>(&_town_view_desc, town); |
581 static const WindowDesc _town_directory_desc = { |
579 static const WindowDesc _town_directory_desc = { |
582 WDP_AUTO, WDP_AUTO, 208, 202, 208, 202, |
580 WDP_AUTO, WDP_AUTO, 208, 202, 208, 202, |
583 WC_TOWN_DIRECTORY, WC_NONE, |
581 WC_TOWN_DIRECTORY, WC_NONE, |
584 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
582 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
585 _town_directory_widgets, |
583 _town_directory_widgets, |
586 NULL |
|
587 }; |
584 }; |
588 |
585 |
589 void ShowTownDirectory() |
586 void ShowTownDirectory() |
590 { |
587 { |
591 new TownDirectoryWindow(&_town_directory_desc); |
588 new TownDirectoryWindow(&_town_directory_desc); |
708 static const WindowDesc _scen_edit_town_gen_desc = { |
705 static const WindowDesc _scen_edit_town_gen_desc = { |
709 WDP_AUTO, WDP_AUTO, 160, 95, 160, 95, |
706 WDP_AUTO, WDP_AUTO, 160, 95, 160, 95, |
710 WC_SCEN_TOWN_GEN, WC_NONE, |
707 WC_SCEN_TOWN_GEN, WC_NONE, |
711 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, |
708 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_STICKY_BUTTON, |
712 _scen_edit_town_gen_widgets, |
709 _scen_edit_town_gen_widgets, |
713 NULL, |
|
714 }; |
710 }; |
715 |
711 |
716 void ShowBuildTownWindow() |
712 void ShowBuildTownWindow() |
717 { |
713 { |
718 if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return; |
714 if (_game_mode != GM_EDITOR && !IsValidPlayer(_current_player)) return; |