void AddBuildConfigurationTab(string itemName) { var button = new IMGUIHyperLabel(new GUIContent(itemName), EditorStyles.boldLabel); button.SetMouseOverColor(SettingsWindowStyles.SelectedElementColor); m_MenuToolbar.AddButtons(button); }
protected override void OnAwake() { titleContent = new GUIContent("Cross-Platform build configuration"); SetPackageName(SceneManagementPackage.PackageName); SetDocumentationUrl("https://github.com/StansAssets/com.stansassets.scene-management"); if (BuildConfigurationSettings.Instance.BuildConfigurations.Count == 0) { var conf = new BuildConfiguration { Name = "Default" }; BuildConfigurationSettings.Instance.BuildConfigurations.Add(conf); } m_MenuToolbar = new IMGUIHyperToolbar(); foreach (var conf in BuildConfigurationSettings.Instance.BuildConfigurations) { AddBuildConfigurationTab(conf.Name); } UpdateActiveConfUI(); m_AddButton = new IMGUIHyperLabel(new GUIContent("+"), EditorStyles.miniLabel); m_AddButton.SetMouseOverColor(SettingsWindowStyles.SelectedElementColor); }
public CapabilityLayout(string name, string image, GetCapability getCapability, Action onGUI) : base(new GUIContent(name, EditorAssetDatabase.GetTextureAtPath(XCodeWindowSkin.CapabilityIconsPath + image)), onGUI) { m_GETCapability = getCapability; m_ON = new GUIContent("ON"); m_Off = new GUIContent("OFF"); m_NormalColor = EditorStyles.boldLabel.normal.textColor; m_StateLabel = new IMGUIHyperLabel(m_ON, EditorStyles.boldLabel); m_StateLabel.SetMouseOverColor(SettingsWindowStyles.SelectedElementColor); }