equal
deleted
inserted
replaced
294 if (train_stopped != IsWindowWidgetHidden(w, 7) || train_stopped == IsWindowWidgetHidden(w, 13)) { |
294 if (train_stopped != IsWindowWidgetHidden(w, 7) || train_stopped == IsWindowWidgetHidden(w, 13)) { |
295 SetWindowWidgetHiddenState(w, 7, train_stopped); // send to depot |
295 SetWindowWidgetHiddenState(w, 7, train_stopped); // send to depot |
296 SetWindowWidgetHiddenState(w, 9, train_stopped); // reverse direction |
296 SetWindowWidgetHiddenState(w, 9, train_stopped); // reverse direction |
297 SetWindowWidgetHiddenState(w, 12, !train_stopped); // refit |
297 SetWindowWidgetHiddenState(w, 12, !train_stopped); // refit |
298 SetWindowWidgetHiddenState(w, 13, !train_stopped); // clone |
298 SetWindowWidgetHiddenState(w, 13, !train_stopped); // clone |
299 SetWindowDirty(w); |
299 w->SetDirty(); |
300 } |
300 } |
301 break; |
301 break; |
302 } |
302 } |
303 |
303 |
304 } |
304 } |
544 EnableWindowWidget(w, 10); |
544 EnableWindowWidget(w, 10); |
545 EnableWindowWidget(w, 11); |
545 EnableWindowWidget(w, 11); |
546 EnableWindowWidget(w, 12); |
546 EnableWindowWidget(w, 12); |
547 EnableWindowWidget(w, e->we.click.widget); |
547 EnableWindowWidget(w, e->we.click.widget); |
548 WP(w,traindetails_d).tab = e->we.click.widget - 9; |
548 WP(w,traindetails_d).tab = e->we.click.widget - 9; |
549 SetWindowDirty(w); |
549 w->SetDirty(); |
550 break; |
550 break; |
551 } |
551 } |
552 } break; |
552 } break; |
553 |
553 |
554 case WE_ON_EDIT_TEXT: |
554 case WE_ON_EDIT_TEXT: |