author | truelight |
Wed, 15 Dec 2004 22:06:47 +0000 | |
changeset 678 | f62cae2abc0c |
parent 649 | bc9bdefb76ec |
child 759 | a445474d7c21 |
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(); |
|
478
3a161108a15d
(svn r745) Added newgrf GUI (in options menu)\nThe interface currently only displays the installed grf sets, you can't (de)activate them through the gui yet
dominik
parents:
175
diff
changeset
|
15 |
void ShowNewgrf(); |
0 | 16 |
|
17 |
/* graph_gui.c */ |
|
18 |
void ShowOperatingProfitGraph(); |
|
19 |
void ShowIncomeGraph(); |
|
20 |
void ShowDeliveredCargoGraph(); |
|
21 |
void ShowPerformanceHistoryGraph(); |
|
22 |
void ShowCompanyValueGraph(); |
|
23 |
void ShowCargoPaymentRates(); |
|
24 |
void ShowCompanyLeagueTable(); |
|
116
ca4332a9ec1d
(svn r117) Feature: Performance details window in company league menu (TrueLight)
dominik
parents:
0
diff
changeset
|
25 |
void ShowPerformanceRatingDetail(); |
0 | 26 |
|
27 |
/* news_gui.c */ |
|
28 |
void ShowLastNewsMessage(); |
|
29 |
void ShowMessageOptions(); |
|
30 |
void ShowMessageHistory(); |
|
31 |
||
32 |
/* traintoolb_gui.c */ |
|
33 |
void ShowBuildRailToolbar(int index, int button); |
|
34 |
void PlaceProc_BuyLand(uint tile); |
|
35 |
||
36 |
/* train_gui.c */ |
|
588 | 37 |
void ShowPlayerTrains(int player, int station); |
0 | 38 |
void ShowTrainViewWindow(Vehicle *v); |
39 |
void ShowTrainDetailsWindow(Vehicle *v); |
|
40 |
void ShowOrdersWindow(Vehicle *v); |
|
41 |
||
42 |
void ShowRoadVehViewWindow(Vehicle *v); |
|
43 |
||
44 |
/* road_gui.c */ |
|
45 |
void ShowBuildRoadToolbar(); |
|
46 |
void ShowBuildRoadScenToolbar(); |
|
588 | 47 |
void ShowPlayerRoadVehicles(int player, int station); |
0 | 48 |
|
49 |
/* dock_gui.c */ |
|
50 |
void ShowBuildDocksToolbar(); |
|
588 | 51 |
void ShowPlayerShips(int player, int station); |
0 | 52 |
|
53 |
void ShowShipViewWindow(Vehicle *v); |
|
54 |
||
55 |
/* aircraft_gui.c */ |
|
56 |
void ShowBuildAirToolbar(); |
|
588 | 57 |
void ShowPlayerAircraft(int player, int station); |
0 | 58 |
|
59 |
/* terraform_gui.c */ |
|
60 |
void PlaceProc_DemolishArea(uint tile); |
|
61 |
void PlaceProc_LowerLand(uint tile); |
|
62 |
void PlaceProc_RaiseLand(uint tile); |
|
63 |
void PlaceProc_LevelLand(uint tile); |
|
64 |
void ShowTerraformToolbar(); |
|
65 |
||
66 |
/* misc_gui.c */ |
|
67 |
void PlaceLandBlockInfo(); |
|
68 |
void ShowAboutWindow(); |
|
69 |
void ShowBuildTreesToolbar(); |
|
70 |
void ShowBuildTreesScenToolbar(); |
|
71 |
void ShowTownDirectory(); |
|
72 |
void ShowIndustryDirectory(); |
|
73 |
void ShowSubsidiesList(); |
|
74 |
void ShowPlayerStations(int player); |
|
75 |
void ShowPlayerFinances(int player); |
|
76 |
void ShowPlayerCompany(int player); |
|
77 |
||
78 |
void ShowEstimatedCostOrIncome(int32 cost, int x, int y); |
|
79 |
void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); |
|
80 |
||
568
b0d0df062880
(svn r979) Allow more realistically sized catchment areas
Celestar
parents:
543
diff
changeset
|
81 |
void DrawStationCoverageAreaText(int sx, int sy, uint mask,int rad); |
0 | 82 |
void CheckRedrawStationCoverage(Window *w); |
83 |
||
84 |
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
|
85 |
void ShowExtraViewPortWindow(); |
0 | 86 |
void SetVScrollCount(Window *w, int num); |
87 |
void SetHScrollCount(Window *w, int num); |
|
175
d6cccece959a
(svn r176) -Fix: network_gui const and warnings fixes (Tron)
darkvater
parents:
164
diff
changeset
|
88 |
int HandleEditBoxKey(Window *w, int wid, WindowEvent *we); |
0 | 89 |
|
90 |
void ShowCheatWindow(); |
|
91 |
void AskForNewGameToStart(); |
|
92 |
||
93 |
void DrawEditBox(Window *w, int wid); |
|
94 |
void HandleEditBox(Window *w, int wid); |
|
95 |
||
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
96 |
void BuildFileList(); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
97 |
void SetFiosType(const byte fiostype); |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
98 |
|
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
99 |
/* FIOS_TYPE_FILE, FIOS_TYPE_OLDFILE etc. different colours */ |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
100 |
static const byte _fios_colors[] = {13, 9, 9, 6, 5, 6, 5}; |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
478
diff
changeset
|
101 |
|
0 | 102 |
|
103 |
/* network gui */ |
|
104 |
void ShowNetworkGameWindow(); |
|
649 | 105 |
void ShowChatWindow(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
0 | 106 |
|
107 |
/* bridge_gui.c */ |
|
108 |
void ShowBuildBridgeWindow(uint start, uint end, byte type); |
|
109 |
||
110 |
enum { |
|
111 |
ZOOM_IN = 0, |
|
112 |
ZOOM_OUT = 1, |
|
113 |
ZOOM_NONE = 2, // hack, used to update the button status |
|
114 |
}; |
|
115 |
||
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
|
116 |
bool DoZoomInOutWindow(int how, Window * w); |
0 | 117 |
void ShowBuildIndustryWindow(); |
118 |
void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); |
|
119 |
void ShowMusicWindow(); |
|
120 |
||
121 |
/* main_gui.c */ |
|
122 |
VARDEF byte _newspaper_flag; |
|
123 |
VARDEF byte _construct_mode; |
|
124 |
VARDEF byte _station_show_coverage; |
|
125 |
VARDEF PlaceProc *_place_proc; |
|
126 |
VARDEF bool _no_button_sound; |
|
127 |
||
128 |
#endif /* GUI_H */ |