public override void OnAwake() { Log.post(this.ClassName + " OnAwake-callback: "); base.OnAwake(); PartMessageService.Register(this); }
public override void OnAwake() { base.OnAwake(); PartMessageService.Register(this); if (GameSceneFilter.AnyInitializing.IsLoaded()) { LoadTextureSets(); } InitializeTextureSet(); }
public override void OnAwake() { enabled = false; if (CompatibilityChecker.IsWin64()) { compatible = false; Events["HideUI"].active = false; Events["ShowUI"].active = false; return; } PartMessageService.Register(this); // Initialize utilization from the settings file utilization = MFSSettings.partUtilizationDefault; }
//---------------------------------------------------------------------------------------------- public override void OnAwake() { Log.post(this.ClassName + " OnAwake-callback: "); base.OnAwake(); PartMessageService.Register(this); loadLiftingGasOptions(); // check liftingGas validity. If invalid: set to default if (!liftingGasOptions.Any(a => a.displayName == liftingGas)) { Log.post("no valid lifting gas selected. Set to default", LogLevel.LOG_WARNING); if (liftingGasOptions.Count > 0) { liftingGas = liftingGasOptions.First <LiftingGas>(lgo => !lgo.deprecated).displayName; Log.post("liftinggas set to: " + liftingGas, LogLevel.LOG_INFORMATION); } else { Log.post("no valid lifting gas option found.", LogLevel.LOG_ERROR); } } }
public override void OnAwake() { base.OnAwake(); PartMessageService.Register(this); //this.RegisterOnUpdateEditor(OnUpdateEditor); }
void Awake() { PartMessageService.Register <ExShipInfo>(this); }
public override void OnAwake() { PartMessageService.Register(this); }
public NodeTransformable(Part part, AttachNode node) { this.part = part; this.node = node; PartMessageService.Register(this); }