コード例 #1
0
        public UM_AdvertisementPlatfromUI(string name, string image, SA_iAPIResolver resolver, Action onGUI) : base(new GUIContent(name, UM_Skin.GetPlatformIcon(image)), onGUI)
        {
            m_on         = new GUIContent("ON");
            m_off        = new GUIContent("OFF");
            m_stateLabel = new SA_HyperLabel(m_on, EditorStyles.boldLabel);
            m_stateLabel.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);

            m_resolver = resolver;
        }
コード例 #2
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);
        }
コード例 #3
0
 public UM_PlatfromStateLayout(GUIContent content)
 {
     m_header = new SA_HyperLabel(content, UM_Skin.PlatformBlockHeader);
     m_header.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
     m_on         = new GUIContent("ON");
     m_off        = new GUIContent("OFF");
     m_stateLabel = new SA_HyperLabel(m_on, UM_Skin.PlatformBlockHeader);
     m_stateLabel.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
 }
コード例 #4
0
        public ISD_CapabilityLayout(string name, string image, GetCapability getCapability, Action onGUI) : base(new GUIContent(name, SA_EditorAssets.GetTextureAtPath(ISD_Skin.CAPABILITY_ICONS_PATH + image)), onGUI)
        {
            //m_capability = capability;

            m_getCapability = getCapability;

            m_on          = new GUIContent("ON");
            m_off         = new GUIContent("OFF");
            m_normalColor = EditorStyles.boldLabel.normal.textColor;
            m_stateLabel  = new SA_HyperLabel(m_on, EditorStyles.boldLabel);
            m_stateLabel.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
        }
コード例 #5
0
        //--------------------------------------
        // Initialization
        //--------------------------------------

        protected override void OnAwake()
        {
            SetHeaderTitle(UM_Settings.PLUGIN_NAME);
            SetHeaderVersion(UM_Settings.FormattedVersion);

            SetHeaderDescription(DESCRIPTION);
            SetDocumentationUrl(UM_Settings.DOCUMENTATION_URL);


            var backIcon = SA_Skin.GetGenericIcon("back.png");

            m_backLink = new SA_HyperLabel(new GUIContent("Back", backIcon), EditorStyles.miniLabel);
            m_backLink.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);



            UpdateToolBarByPluginIndex();
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        protected override void OnAwake()
        {
            SetHeaderTitle(ISN_Settings.PLUGIN_NAME);
            SetHeaderDescription(DESCRIPTION);
            SetHeaderVersion(ISN_Settings.FormattedVersion);
            SetDocumentationUrl(ISN_Settings.DOCUMENTATION_URL);

            m_servicesTab = CreateInstance <ISN_ServicesTab>();

            AddMenuItem("SERVICES", m_servicesTab);
            AddMenuItem("XCODE", CreateInstance <ISN_XCodeTab>());
            AddMenuItem("SETTINGS", CreateInstance <ISN_SettingsTab>());
            AddMenuItem("ABOUT", CreateInstance <SA_PluginAboutLayout>());


            var backIcon = SA_Skin.GetGenericIcon("back.png");

            m_backLink = new SA_HyperLabel(new GUIContent("Back To Services", backIcon), EditorStyles.miniLabel);
            m_backLink.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
        }