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);
        }
Ejemplo n.º 2
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);
        }