/// <summary> /// Constructor for AppLauncherToolBar. You need to construct one of these for your Mod Menu/GUI environment. /// </summary> /// <param name="toolBarName">A string passed into ToolBar indicating the Name of the Mod</param> /// <param name="toolBarToolTip">A string passed into ToolBar to use for the Icon ToolTip</param> /// <param name="toolBarTexturePath">A string in ToolBar expected format of the TexturePath for the ToolBarIcon</param> /// <param name="VisibleinScenes">ApplicationLauncher.AppScenes list - logically OR'd</param> /// <param name="appbtnTexON">Texture reference for the AppLauncher ON Icon</param> /// <param name="appbtnTexOFF">Texture reference for the AppLauncher OFF Icon</param> /// <param name="gameScenes">A list of GameScenes use for ToolBar icon visiblity</param> public AppLauncherToolBar(string toolBarName, string toolBarToolTip, string toolBarTexturePath, ApplicationLauncher.AppScenes VisibleinScenes, UnityEngine.Texture appbtnTexON, UnityEngine.Texture appbtnTexOFF, params GameScenes[] gameScenes) { Instance = this; if (ToolbarManager.ToolbarAvailable) { this.toolBarName = toolBarName; this.toolBarToolTip = toolBarToolTip; this.toolBarTexturePath = toolBarTexturePath; this.toolBarGameScenes = new GameScenesVisibility(gameScenes); } this.VisibleinScenes = VisibleinScenes; this.appbtnTexON = appbtnTexON; this.appbtnTexOFF = appbtnTexOFF; }