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();
 }
示例#2
0
        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();
        }