public virtual void Start() { KLVCore.Load(); var App = ApplicationLauncher.Instance; KLVButtonImage = GameDatabase.Instance.GetTexture("KerbalLaunchVehicles/Assets/launcherIcon", false); LauncherButton = App.AddModApplication(OnLauncherButtonPress, OnLauncherButtonPress, null, null, null, null, visibleInScenes, KLVButtonImage); GUIUtilities.Log("[MOD] KLV window start"); ActiveCombos = new HashSet <DropDown>(); MarkedCombos = new Dictionary <klvGUI.DropDown, bool>(); CreateControls(); }
private void DoLoad(GUIButton sender, object value) { KLVCore.Load(); UpdateFamilies(); comboDestination.SetItems(KLVCore.GetAllDestinationName()); }