src/aircraft_gui.cpp
branchcpp_gui
changeset 6235 5077e6ed3788
parent 6144 5a0ffbf27ced
child 6241 6a7a41b0cd32
equal deleted inserted replaced
6234:42bf2d268a86 6235:5077e6ed3788
   347 		 * Widget 11 (clone) should then be shown, since cloning is allowed only while in hangar and stopped.
   347 		 * Widget 11 (clone) should then be shown, since cloning is allowed only while in hangar and stopped.
   348 		 * This sytem allows to have two buttons, on top of each other*/
   348 		 * This sytem allows to have two buttons, on top of each other*/
   349 		if (plane_stopped != IsWindowWidgetHidden(w, 7) || plane_stopped == IsWindowWidgetHidden(w, 11)) {
   349 		if (plane_stopped != IsWindowWidgetHidden(w, 7) || plane_stopped == IsWindowWidgetHidden(w, 11)) {
   350 			SetWindowWidgetHiddenState(w,  7, plane_stopped);  // send to hangar
   350 			SetWindowWidgetHiddenState(w,  7, plane_stopped);  // send to hangar
   351 			SetWindowWidgetHiddenState(w, 11, !plane_stopped); // clone
   351 			SetWindowWidgetHiddenState(w, 11, !plane_stopped); // clone
   352 			SetWindowDirty(w);
   352 			w->SetDirty();
   353 		}
   353 		}
   354 	} break;
   354 	} break;
   355 	}
   355 	}
   356 }
   356 }
   357 
   357