public void Awake() { if (ToolbarManager.Instance == null) { return; } ExBuildWindowButton = ToolbarManager.Instance.add("ExtraplanetaryLaunchpads", "ExBuildWindowButton"); ExBuildWindowButton.TexturePath = "ExtraplanetaryLaunchpads/Textures/icon_button"; ExBuildWindowButton.ToolTip = "EL Build Window"; ExBuildWindowButton.OnClick += (e) => ExBuildWindow.ToggleGUI(); }
public void Awake() { ExAppButton.Toggle += ExBuildWindow.ToggleGUI; if (ToolbarManager.Instance == null) { return; } ExBuildWindowButton = ToolbarManager.Instance.add("ExtraplanetaryLaunchpads", "ExBuildWindowButton"); ExBuildWindowButton.Visible = ExSettings.PreferBlizzy; ExBuildWindowButton.TexturePath = "ExtraplanetaryLaunchpads/Textures/icon_button"; ExBuildWindowButton.ToolTip = "EL Build Window"; ExBuildWindowButton.OnClick += (e) => ExBuildWindow.ToggleGUI(); }