Esempio n. 1
0
        private void AddMenuItem(string itemName, SA_GUILayoutElement layout)
        {
            var button = new SA_HyperLabel(new GUIContent(itemName), EditorStyles.boldLabel);

            button.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
            m_menuToolbar.AddButtons(button);

            m_tabsLayout.Add(layout);
        }
        private void AddPlatform(string platformName, Texture icon)
        {
            var style = new GUIStyle(EditorStyles.miniLabel);

            if (!EditorGUIUtility.isProSkin)
            {
                style.normal.textColor = SA_PluginSettingsWindowStyles.GerySilverColor;
            }
            var button = new SA_HyperLabel(new GUIContent(platformName, icon), style);

            button.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);

            if (!EditorGUIUtility.isProSkin)
            {
                button.GuiColorOverride(true);
            }
            m_pluginsToolbar.AddButtons(button);
        }