equal
deleted
inserted
replaced
104 } |
104 } |
105 } |
105 } |
106 |
106 |
107 |
107 |
108 /* Dialogue for adding NewGRF files to the selection */ |
108 /* Dialogue for adding NewGRF files to the selection */ |
109 typedef struct newgrf_add_d { |
109 struct newgrf_add_d { |
110 GRFConfig **list; |
110 GRFConfig **list; |
111 const GRFConfig *sel; |
111 const GRFConfig *sel; |
112 } newgrf_add_d; |
112 }; |
113 |
113 |
114 |
114 |
115 static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) |
115 static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) |
116 { |
116 { |
117 switch (e->event) { |
117 switch (e->event) { |
234 NewGRFAddDlgWndProc, |
234 NewGRFAddDlgWndProc, |
235 }; |
235 }; |
236 |
236 |
237 |
237 |
238 /* 'NewGRF Settings' dialogue */ |
238 /* 'NewGRF Settings' dialogue */ |
239 typedef struct newgrf_d { |
239 struct newgrf_d { |
240 GRFConfig **orig_list; ///< grf list the window is shown with |
240 GRFConfig **orig_list; ///< grf list the window is shown with |
241 GRFConfig **list; ///< temporary grf list to which changes are made |
241 GRFConfig **list; ///< temporary grf list to which changes are made |
242 GRFConfig *sel; ///< selected grf item |
242 GRFConfig *sel; ///< selected grf item |
243 bool editable; ///< is the window editable |
243 bool editable; ///< is the window editable |
244 bool show_params; ///< are the grf-parameters shown in the info-panel |
244 bool show_params; ///< are the grf-parameters shown in the info-panel |
245 bool execute; ///< on pressing 'apply changes' are grf changes applied immediately, or only list is updated |
245 bool execute; ///< on pressing 'apply changes' are grf changes applied immediately, or only list is updated |
246 } newgrf_d; |
246 }; |
247 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_d)); |
247 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(newgrf_d)); |
248 |
248 |
249 |
249 |
250 enum ShowNewGRFStateWidgets { |
250 enum ShowNewGRFStateWidgets { |
251 SNGRFS_ADD = 3, |
251 SNGRFS_ADD = 3, |