5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "heightmap.h" |
7 #include "heightmap.h" |
8 #include "currency.h" |
8 #include "currency.h" |
9 #include "spritecache.h" |
9 #include "spritecache.h" |
10 #include "table/sprites.h" |
|
11 #include "table/strings.h" |
|
12 #include "gui.h" |
10 #include "gui.h" |
13 #include "window_gui.h" |
11 #include "window_gui.h" |
14 #include "window_func.h" |
12 #include "window_func.h" |
15 #include "textbuf_gui.h" |
13 #include "textbuf_gui.h" |
16 #include "viewport_func.h" |
14 #include "viewport_func.h" |
17 #include "player.h" |
|
18 #include "command_func.h" |
15 #include "command_func.h" |
19 #include "news.h" |
16 #include "news.h" |
20 #include "town.h" |
17 #include "town.h" |
21 #include "console.h" |
18 #include "console.h" |
22 #include "network/network.h" |
|
23 #include "signs.h" |
19 #include "signs.h" |
24 #include "waypoint.h" |
20 #include "waypoint.h" |
25 #include "variables.h" |
21 #include "variables.h" |
26 #include "train.h" |
22 #include "train.h" |
27 #include "roadveh.h" |
23 #include "roadveh.h" |
37 #include "functions.h" |
33 #include "functions.h" |
38 #include "vehicle_func.h" |
34 #include "vehicle_func.h" |
39 #include "sound_func.h" |
35 #include "sound_func.h" |
40 #include "fios.h" |
36 #include "fios.h" |
41 #include "terraform_gui.h" |
37 #include "terraform_gui.h" |
42 |
|
43 #include "network/network_data.h" |
|
44 #include "network/network_client.h" |
|
45 #include "network/network_server.h" |
|
46 #include "network/network_gui.h" |
|
47 #include "industry.h" |
38 #include "industry.h" |
48 #include "transparency.h" |
39 #include "transparency.h" |
49 #include "strings_func.h" |
40 #include "strings_func.h" |
50 #include "zoom_func.h" |
41 #include "zoom_func.h" |
51 #include "string_func.h" |
42 #include "string_func.h" |
|
43 #include "player_base.h" |
|
44 #include "player_func.h" |
|
45 #include "player_gui.h" |
|
46 #include "settings_type.h" |
|
47 |
|
48 #include "network/network.h" |
|
49 #include "network/network_data.h" |
|
50 #include "network/network_client.h" |
|
51 #include "network/network_server.h" |
|
52 #include "network/network_gui.h" |
|
53 |
|
54 #include "table/sprites.h" |
|
55 #include "table/strings.h" |
52 |
56 |
53 static int _rename_id = 1; |
57 static int _rename_id = 1; |
54 static int _rename_what = -1; |
58 static int _rename_what = -1; |
55 |
59 |
56 RailType _last_built_railtype; |
60 RailType _last_built_railtype; |
170 case 7: ToggleBit(_display_opt, DO_SHOW_STATION_NAMES); break; |
174 case 7: ToggleBit(_display_opt, DO_SHOW_STATION_NAMES); break; |
171 case 8: ToggleBit(_display_opt, DO_SHOW_SIGNS); break; |
175 case 8: ToggleBit(_display_opt, DO_SHOW_SIGNS); break; |
172 case 9: ToggleBit(_display_opt, DO_WAYPOINTS); break; |
176 case 9: ToggleBit(_display_opt, DO_WAYPOINTS); break; |
173 case 10: ToggleBit(_display_opt, DO_FULL_ANIMATION); break; |
177 case 10: ToggleBit(_display_opt, DO_FULL_ANIMATION); break; |
174 case 11: ToggleBit(_display_opt, DO_FULL_DETAIL); break; |
178 case 11: ToggleBit(_display_opt, DO_FULL_DETAIL); break; |
175 case 12: |
179 case 12: ToggleTransparency(TO_HOUSES); break; |
176 ToggleTransparency(TO_TREES); |
|
177 ToggleTransparency(TO_HOUSES); |
|
178 break; |
|
179 case 13: ToggleTransparency(TO_SIGNS); break; |
180 case 13: ToggleTransparency(TO_SIGNS); break; |
180 } |
181 } |
181 MarkWholeScreenDirty(); |
182 MarkWholeScreenDirty(); |
182 } |
183 } |
183 |
184 |
966 |
967 |
967 static void ToolbarOptionsClick(Window *w) |
968 static void ToolbarOptionsClick(Window *w) |
968 { |
969 { |
969 uint16 x = 0; |
970 uint16 x = 0; |
970 |
971 |
971 w = PopupMainToolbMenu(w, 2, STR_02C3_GAME_OPTIONS, 14, 0); |
972 w = PopupMainToolbMenu(w, 2, STR_02C4_GAME_OPTIONS, 14, 0); |
972 |
973 |
973 if (HasBit(_display_opt, DO_SHOW_TOWN_NAMES)) SetBit(x, 6); |
974 if (HasBit(_display_opt, DO_SHOW_TOWN_NAMES)) SetBit(x, 6); |
974 if (HasBit(_display_opt, DO_SHOW_STATION_NAMES)) SetBit(x, 7); |
975 if (HasBit(_display_opt, DO_SHOW_STATION_NAMES)) SetBit(x, 7); |
975 if (HasBit(_display_opt, DO_SHOW_SIGNS)) SetBit(x, 8); |
976 if (HasBit(_display_opt, DO_SHOW_SIGNS)) SetBit(x, 8); |
976 if (HasBit(_display_opt, DO_WAYPOINTS)) SetBit(x, 9); |
977 if (HasBit(_display_opt, DO_WAYPOINTS)) SetBit(x, 9); |