equal
deleted
inserted
replaced
17 #include "vehicle_func.h" |
17 #include "vehicle_func.h" |
18 #include "autoreplace_func.h" |
18 #include "autoreplace_func.h" |
19 #include "gfx_func.h" |
19 #include "gfx_func.h" |
20 #include "player_func.h" |
20 #include "player_func.h" |
21 #include "widgets/dropdown_func.h" |
21 #include "widgets/dropdown_func.h" |
|
22 #include "engine_func.h" |
22 |
23 |
23 #include "table/sprites.h" |
24 #include "table/sprites.h" |
24 #include "table/strings.h" |
25 #include "table/strings.h" |
|
26 |
|
27 struct replaceveh_d { |
|
28 byte sel_index[2]; |
|
29 EngineID sel_engine[2]; |
|
30 uint16 count[2]; |
|
31 bool wagon_btnstate; ///< true means engine is selected |
|
32 EngineList list[2]; |
|
33 bool update_left; |
|
34 bool update_right; |
|
35 bool init_lists; |
|
36 GroupID sel_group; |
|
37 }; |
|
38 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(replaceveh_d)); |
25 |
39 |
26 static RailType _railtype_selected_in_replace_gui; |
40 static RailType _railtype_selected_in_replace_gui; |
27 |
41 |
28 static bool _rebuild_left_list; |
42 static bool _rebuild_left_list; |
29 static bool _rebuild_right_list; |
43 static bool _rebuild_right_list; |