equal
deleted
inserted
replaced
203 DrawWindowWidgets(w); |
203 DrawWindowWidgets(w); |
204 /* strings such as 'Size' and 'Coverage Area' */ |
204 /* strings such as 'Size' and 'Coverage Area' */ |
205 int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false); |
205 int text_end = DrawStationCoverageAreaText(2, 206, SCT_ALL, rad, false); |
206 text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4; |
206 text_end = DrawStationCoverageAreaText(2, text_end + 4, SCT_ALL, rad, true) + 4; |
207 if (text_end != w->widget[BAW_BOTTOMPANEL].bottom) { |
207 if (text_end != w->widget[BAW_BOTTOMPANEL].bottom) { |
208 SetWindowDirty(w); |
208 w->SetDirty(); |
209 ResizeWindowForWidget(w, BAW_BOTTOMPANEL, 0, text_end - w->widget[BAW_BOTTOMPANEL].bottom); |
209 ResizeWindowForWidget(w, BAW_BOTTOMPANEL, 0, text_end - w->widget[BAW_BOTTOMPANEL].bottom); |
210 SetWindowDirty(w); |
210 w->SetDirty(); |
211 } |
211 } |
212 break; |
212 break; |
213 } |
213 } |
214 |
214 |
215 case WE_CLICK: { |
215 case WE_CLICK: { |
219 case BAW_STR_INTERCONTINENTAL_AIRPORT: case BAW_HELISTATION: |
219 case BAW_STR_INTERCONTINENTAL_AIRPORT: case BAW_HELISTATION: |
220 w->RaiseWidget(_selected_airport_type + BAW_SMALL_AIRPORT); |
220 w->RaiseWidget(_selected_airport_type + BAW_SMALL_AIRPORT); |
221 _selected_airport_type = e->we.click.widget - BAW_SMALL_AIRPORT; |
221 _selected_airport_type = e->we.click.widget - BAW_SMALL_AIRPORT; |
222 w->LowerWidget(_selected_airport_type + BAW_SMALL_AIRPORT); |
222 w->LowerWidget(_selected_airport_type + BAW_SMALL_AIRPORT); |
223 SndPlayFx(SND_15_BEEP); |
223 SndPlayFx(SND_15_BEEP); |
224 SetWindowDirty(w); |
224 w->SetDirty(); |
225 break; |
225 break; |
226 |
226 |
227 case BAW_BTN_DONTHILIGHT: case BAW_BTN_DOHILIGHT: |
227 case BAW_BTN_DONTHILIGHT: case BAW_BTN_DOHILIGHT: |
228 _station_show_coverage = (e->we.click.widget != BAW_BTN_DONTHILIGHT); |
228 _station_show_coverage = (e->we.click.widget != BAW_BTN_DONTHILIGHT); |
229 w->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_station_show_coverage); |
229 w->SetWidgetLoweredState(BAW_BTN_DONTHILIGHT, !_station_show_coverage); |
230 w->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _station_show_coverage); |
230 w->SetWidgetLoweredState(BAW_BTN_DOHILIGHT, _station_show_coverage); |
231 SndPlayFx(SND_15_BEEP); |
231 SndPlayFx(SND_15_BEEP); |
232 SetWindowDirty(w); |
232 w->SetDirty(); |
233 break; |
233 break; |
234 } |
234 } |
235 } break; |
235 } break; |
236 |
236 |
237 case WE_MOUSELOOP: { |
237 case WE_MOUSELOOP: { |