author | dominik |
Sun, 14 Nov 2004 20:25:07 +0000 | |
changeset 412 | 3b10a6e44e7e |
parent 175 | d6cccece959a |
child 478 | 3a161108a15d |
permissions | -rw-r--r-- |
0 | 1 |
#ifndef GUI_H |
2 |
#define GUI_H |
|
3 |
||
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
4 |
#include "window.h" |
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
5 |
|
0 | 6 |
/* main_gui.c */ |
7 |
void SetupColorsAndInitialWindow(); |
|
8 |
void CcPlaySound10(bool success, uint tile, uint32 p1, uint32 p2); |
|
9 |
void PlaceProc_Sign(uint tile); |
|
10 |
||
11 |
/* settings_gui.c */ |
|
12 |
void ShowGameOptions(); |
|
13 |
void ShowGameDifficulty(); |
|
14 |
void ShowPatchesSelection(); |
|
15 |
||
16 |
/* graph_gui.c */ |
|
17 |
void ShowOperatingProfitGraph(); |
|
18 |
void ShowIncomeGraph(); |
|
19 |
void ShowDeliveredCargoGraph(); |
|
20 |
void ShowPerformanceHistoryGraph(); |
|
21 |
void ShowCompanyValueGraph(); |
|
22 |
void ShowCargoPaymentRates(); |
|
23 |
void ShowCompanyLeagueTable(); |
|
116
ca4332a9ec1d
(svn r117) Feature: Performance details window in company league menu (TrueLight)
dominik
parents:
0
diff
changeset
|
24 |
void ShowPerformanceRatingDetail(); |
0 | 25 |
|
26 |
/* news_gui.c */ |
|
27 |
void ShowLastNewsMessage(); |
|
28 |
void ShowMessageOptions(); |
|
29 |
void ShowMessageHistory(); |
|
30 |
||
31 |
/* traintoolb_gui.c */ |
|
32 |
void ShowBuildRailToolbar(int index, int button); |
|
33 |
void PlaceProc_BuyLand(uint tile); |
|
34 |
||
35 |
/* train_gui.c */ |
|
36 |
void ShowPlayerTrains(int player); |
|
37 |
void ShowTrainViewWindow(Vehicle *v); |
|
38 |
void ShowTrainDetailsWindow(Vehicle *v); |
|
39 |
void ShowOrdersWindow(Vehicle *v); |
|
40 |
||
41 |
void ShowRoadVehViewWindow(Vehicle *v); |
|
42 |
||
43 |
/* road_gui.c */ |
|
44 |
void ShowBuildRoadToolbar(); |
|
45 |
void ShowBuildRoadScenToolbar(); |
|
46 |
void ShowPlayerRoadVehicles(int player); |
|
47 |
||
48 |
/* dock_gui.c */ |
|
49 |
void ShowBuildDocksToolbar(); |
|
50 |
void ShowPlayerShips(int player); |
|
51 |
||
52 |
void ShowShipViewWindow(Vehicle *v); |
|
53 |
||
54 |
/* aircraft_gui.c */ |
|
55 |
void ShowBuildAirToolbar(); |
|
56 |
void ShowPlayerAircraft(int player); |
|
57 |
||
58 |
/* terraform_gui.c */ |
|
59 |
void PlaceProc_DemolishArea(uint tile); |
|
60 |
void PlaceProc_LowerLand(uint tile); |
|
61 |
void PlaceProc_RaiseLand(uint tile); |
|
62 |
void PlaceProc_LevelLand(uint tile); |
|
63 |
void ShowTerraformToolbar(); |
|
64 |
||
65 |
/* misc_gui.c */ |
|
66 |
void PlaceLandBlockInfo(); |
|
67 |
void ShowAboutWindow(); |
|
68 |
void ShowBuildTreesToolbar(); |
|
69 |
void ShowBuildTreesScenToolbar(); |
|
70 |
void ShowTownDirectory(); |
|
71 |
void ShowIndustryDirectory(); |
|
72 |
void ShowSubsidiesList(); |
|
73 |
void ShowPlayerStations(int player); |
|
74 |
void ShowPlayerFinances(int player); |
|
75 |
void ShowPlayerCompany(int player); |
|
76 |
||
77 |
void ShowEstimatedCostOrIncome(int32 cost, int x, int y); |
|
78 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
|
79 |
||
80 |
void DrawStationCoverageAreaText(int sx, int sy, uint mask); |
|
81 |
void CheckRedrawStationCoverage(Window *w); |
|
82 |
||
83 |
void ShowSmallMap(); |
|
152
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
116
diff
changeset
|
84 |
void ShowExtraViewPortWindow(); |
0 | 85 |
void SetVScrollCount(Window *w, int num); |
86 |
void SetHScrollCount(Window *w, int num); |
|
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
87 |
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we); |
0 | 88 |
|
89 |
void ShowCheatWindow(); |
|
90 |
void AskForNewGameToStart(); |
|
91 |
||
92 |
void DrawEditBox(Window *w, int wid); |
|
93 |
void HandleEditBox(Window *w, int wid); |
|
94 |
||
95 |
||
96 |
/* network gui */ |
|
97 |
void ShowNetworkGameWindow(); |
|
98 |
||
99 |
||
100 |
/* bridge_gui.c */ |
|
101 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
|
102 |
||
103 |
enum { |
|
104 |
ZOOM_IN = 0, |
|
105 |
ZOOM_OUT = 1, |
|
106 |
ZOOM_NONE = 2, // hack, used to update the button status |
|
107 |
}; |
|
108 |
||
152
c3964b43943e
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
darkvater
parents:
116
diff
changeset
|
109 |
bool DoZoomInOutWindow(int how, Window * w); |
0 | 110 |
void ShowBuildIndustryWindow(); |
111 |
void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
|
112 |
void ShowMusicWindow(); |
|
113 |
||
114 |
/* main_gui.c */ |
|
115 |
VARDEF byte _newspaper_flag; |
|
116 |
VARDEF byte _construct_mode; |
|
117 |
VARDEF byte _station_show_coverage; |
|
118 |
VARDEF PlaceProc *_place_proc; |
|
119 |
VARDEF bool _no_button_sound; |
|
120 |
||
121 |
#endif /* GUI_H */ |