Ejemplo n.º 1
0
 public IMGUISampleSceneUrl(string title, string scenePath)
     : base(new GUIContent(
                $" {title}",
                PluginsEditorSkin.GetGenericIcon((EditorGUIUtility.isProSkin)? "sample_dark.png" : "sample_light.png")
                ),
            SettingsWindowStyles.DescriptionLabelStyle)
 {
     m_ScenePath = scenePath;
     SetMouseOverColor(SettingsWindowStyles.SelectedElementColor);
 }
Ejemplo n.º 2
0
 public IMGUISampleSceneUrl(string title, string scenePath)
     : base(new GUIContent(
                title,
                PluginsEditorSkin.GetGenericIcon("list_arrow_white.png") //TODO unity scene Icon
                ),
            SettingsWindowStyles.DescriptionLabelStyle)
 {
     m_ScenePath = scenePath;
     SetMouseOverColor(SettingsWindowStyles.SelectedElementColor);
 }
 public IMGUIDocumentationUrl(string title, string url)
     : base(new GUIContent(
                title,
                PluginsEditorSkin.GetGenericIcon("list_arrow_white.png")
                ),
            SettingsWindowStyles.DescriptionLabelStyle)
 {
     m_URL = url;
     SetMouseOverColor(SettingsWindowStyles.SelectedElementColor);
 }
        public IMGUICollapsableWindowBlockLayout(GUIContent content, Action onGUI)
        {
            if (content.image != null)
            {
                content.text = " " + content.text;
            }

            m_OnGUI  = onGUI;
            m_Header = new IMGUIHyperLabel(content, SettingsWindowStyles.ServiceBlockHeader);
            m_Header.SetMouseOverColor(SettingsWindowStyles.SelectedElementColor);

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

            m_CollapsedContent = new GUIContent(rightArrow);
            m_ExpandedContent  = new GUIContent(arrowDown);

            m_Arrow = new IMGUIHyperLabel(m_CollapsedContent, SettingsWindowStyles.ServiceBlockHeader);
        }