private void SetLocalVariables() { windowSettings = mbARP.windowSettings; settings = KSPAlternateResourcePanel.settings; lstResources = mbARP.lstResourcesVessel; lstResourcesLastStage = mbARP.lstResourcesLastStage; SelectedResources = mbARP.SelectedResources; }
private void InitSettingsWindow() { // windowMain = gameObject.AddComponent<ARPWindow>(); windowSettings = AddComponent<ARPWindowSettings>(); windowSettings.mbARP = this; windowSettings.Visible = false; windowSettings.DragEnabled = true; windowSettings.ClampToScreenOffset = new RectOffset(-1, -1, -1, -1); windowSettings.TooltipsEnabled = true; }