//--------------------------------------
        // SA_GUILayoutElement implementation
        //--------------------------------------

        public override void OnAwake()
        {
            m_blockTitleLabel = new SA_HyperLabel(new GUIContent(Title), SA_PluginSettingsWindowStyles.LabelServiceBlockStyle);
            m_blockTitleLabel.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);

            m_blockAPIStateLabel = new SA_HyperLabel(new GUIContent("OFF"), OffStyle);
            m_blockAPIStateLabel.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);


            m_expandOpenIcon   = SA_Skin.GetGenericIcon("expand.png");
            m_expandClosedIcon = SA_Skin.GetGenericIcon("expand_close.png");
            m_showMoreButton   = new SA_HyperLabel(new GUIContent(m_expandOpenIcon));
            m_showMoreButton.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);



            m_onToggle        = SA_Skin.GetGenericIcon("on_toggle.png");
            m_offToggle       = SA_Skin.GetGenericIcon("off_toggle.png");
            m_apiEnableButton = new SA_HyperLabel(new GUIContent(m_onToggle));
            m_apiEnableButton.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
            m_apiEnableButton.GuiColorOverride(true);

            m_ShowExtraFields = new AnimBool(false);

            m_features = new List <SA_FeatureUrl>();
        }
Exemplo n.º 2
0
 public SA_FeatureUrl(string title, string url)
     : base(new GUIContent(
                title,
                SA_Skin.GetGenericIcon("list_arrow_white.png")
                ),
            SA_PluginSettingsWindowStyles.DescribtionLabelStyle)
 {
     m_url = url;
     SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
 }
Exemplo n.º 3
0
        public SA_CollapsableWindowBlockLayout(GUIContent content, Action onGUI)
        {
            if (content.image != null)
            {
                content.text = " " + content.text;
            }

            m_onGUI  = onGUI;
            m_header = new SA_HyperLabel(content, SA_PluginSettingsWindowStyles.ServiceBlockHeader);
            m_header.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);

            var rightArrow = SA_Skin.GetGenericIcon("arrow_right.png");
            var arrow_down = SA_Skin.GetGenericIcon("arrow_down.png");

            m_collapsedContent = new GUIContent(rightArrow);
            m_expandedContent  = new GUIContent(arrow_down);


            m_arrrow = new SA_HyperLabel(m_collapsedContent, SA_PluginSettingsWindowStyles.ServiceBlockHeader);
        }