|
1 #ifndef GUI_H |
|
2 #define GUI_H |
|
3 |
|
4 /* main_gui.c */ |
|
5 void SetupColorsAndInitialWindow(); |
|
6 void CcPlaySound10(bool success, uint tile, uint32 p1, uint32 p2); |
|
7 void PlaceProc_Sign(uint tile); |
|
8 |
|
9 /* settings_gui.c */ |
|
10 void ShowGameOptions(); |
|
11 void ShowGameDifficulty(); |
|
12 void ShowPatchesSelection(); |
|
13 |
|
14 /* graph_gui.c */ |
|
15 void ShowOperatingProfitGraph(); |
|
16 void ShowIncomeGraph(); |
|
17 void ShowDeliveredCargoGraph(); |
|
18 void ShowPerformanceHistoryGraph(); |
|
19 void ShowCompanyValueGraph(); |
|
20 void ShowCargoPaymentRates(); |
|
21 void ShowCompanyLeagueTable(); |
|
22 |
|
23 /* news_gui.c */ |
|
24 void ShowLastNewsMessage(); |
|
25 void ShowMessageOptions(); |
|
26 void ShowMessageHistory(); |
|
27 |
|
28 /* traintoolb_gui.c */ |
|
29 void ShowBuildRailToolbar(int index, int button); |
|
30 void PlaceProc_BuyLand(uint tile); |
|
31 |
|
32 /* train_gui.c */ |
|
33 void ShowPlayerTrains(int player); |
|
34 void ShowTrainViewWindow(Vehicle *v); |
|
35 void ShowTrainDetailsWindow(Vehicle *v); |
|
36 void ShowOrdersWindow(Vehicle *v); |
|
37 |
|
38 void ShowRoadVehViewWindow(Vehicle *v); |
|
39 |
|
40 /* road_gui.c */ |
|
41 void ShowBuildRoadToolbar(); |
|
42 void ShowBuildRoadScenToolbar(); |
|
43 void ShowPlayerRoadVehicles(int player); |
|
44 |
|
45 /* dock_gui.c */ |
|
46 void ShowBuildDocksToolbar(); |
|
47 void ShowPlayerShips(int player); |
|
48 |
|
49 void ShowShipViewWindow(Vehicle *v); |
|
50 |
|
51 /* aircraft_gui.c */ |
|
52 void ShowBuildAirToolbar(); |
|
53 void ShowPlayerAircraft(int player); |
|
54 |
|
55 /* terraform_gui.c */ |
|
56 void PlaceProc_DemolishArea(uint tile); |
|
57 void PlaceProc_LowerLand(uint tile); |
|
58 void PlaceProc_RaiseLand(uint tile); |
|
59 void PlaceProc_LevelLand(uint tile); |
|
60 void ShowTerraformToolbar(); |
|
61 |
|
62 /* misc_gui.c */ |
|
63 void PlaceLandBlockInfo(); |
|
64 void ShowAboutWindow(); |
|
65 void ShowBuildTreesToolbar(); |
|
66 void ShowBuildTreesScenToolbar(); |
|
67 void ShowTownDirectory(); |
|
68 void ShowIndustryDirectory(); |
|
69 void ShowSubsidiesList(); |
|
70 void ShowPlayerStations(int player); |
|
71 void ShowPlayerFinances(int player); |
|
72 void ShowPlayerCompany(int player); |
|
73 |
|
74 void ShowEstimatedCostOrIncome(int32 cost, int x, int y); |
|
75 void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
|
76 |
|
77 void DrawStationCoverageAreaText(int sx, int sy, uint mask); |
|
78 void CheckRedrawStationCoverage(Window *w); |
|
79 |
|
80 void ShowSmallMap(); |
|
81 void SetVScrollCount(Window *w, int num); |
|
82 void SetHScrollCount(Window *w, int num); |
|
83 |
|
84 void ShowCheatWindow(); |
|
85 void AskForNewGameToStart(); |
|
86 |
|
87 void DrawEditBox(Window *w, int wid); |
|
88 void HandleEditBox(Window *w, int wid); |
|
89 |
|
90 |
|
91 /* network gui */ |
|
92 void ShowNetworkGameWindow(); |
|
93 |
|
94 |
|
95 /* bridge_gui.c */ |
|
96 void ShowBuildBridgeWindow(uint start, uint end, byte type); |
|
97 |
|
98 enum { |
|
99 ZOOM_IN = 0, |
|
100 ZOOM_OUT = 1, |
|
101 ZOOM_NONE = 2, // hack, used to update the button status |
|
102 }; |
|
103 |
|
104 bool DoZoomInOut(int how); |
|
105 void ShowBuildIndustryWindow(); |
|
106 void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
|
107 void ShowMusicWindow(); |
|
108 |
|
109 void DrawVehicleProfitButton(Vehicle *v, int x, int y); |
|
110 |
|
111 /* main_gui.c */ |
|
112 VARDEF byte _newspaper_flag; |
|
113 VARDEF byte _construct_mode; |
|
114 VARDEF byte _station_show_coverage; |
|
115 VARDEF PlaceProc *_place_proc; |
|
116 VARDEF bool _no_button_sound; |
|
117 |
|
118 #endif /* GUI_H */ |