Beispiel #1
0
        private static void Set_HeroTitle()
        {
            styleHeroTitle           = new GUIStyle(EditorStyles.label);
            styleHeroTitle.alignment = TextAnchor.MiddleLeft;
            styleHeroTitle.font      = (Font)Resources.Load("JosefinSans-Bold-30");

            // custom fonts are not showing up on OSX. for now, just show default font
            if (Application.platform == RuntimePlatform.OSXEditor)
            {
                styleHeroTitle.font      = EditorStyles.label.font;
                styleHeroTitle.fontSize  = 25;
                styleHeroTitle.fontStyle = FontStyle.Bold;
            }

            styleHeroTitle.normal.textColor = SimpleGUICommon.GetColor("#FFFFFF");
        }
Beispiel #2
0
        private static void Set_StyleFoldoutText()
        {
            styleFoldoutText         = new GUIStyle();
            StyleFoldoutText.padding = new RectOffset(2, 20, 2, 2);

            if (SimpleGUICommon.isProSkin)
            {
                styleFoldoutText.normal.textColor  = SimpleGUICommon.GetColor("#ffffff");
                styleFoldoutText.active.textColor  = SimpleGUICommon.GetColor("#f4bc02");
                styleFoldoutText.active.background = SimpleGUICommon.GetTextureFromColor("#505050");
            }
            else
            {
                styleFoldoutText.normal.textColor  = SimpleGUICommon.GetColor("#000000");
                styleFoldoutText.active.textColor  = SimpleGUICommon.GetColor("#8f0000");
                styleFoldoutText.active.background = SimpleGUICommon.GetTextureFromColor("#ffffff");
            }
        }
Beispiel #3
0
        private static void Set_StyleAddMenuItem()
        {
            styleAddMenuItem           = new GUIStyle();
            styleAddMenuItem.alignment = TextAnchor.MiddleLeft;
            styleAddMenuItem.border    = new RectOffset(1, 1, 1, 1);
            styleAddMenuItem.padding   = new RectOffset(4, 6, 2, 2);
            styleAddMenuItem.clipping  = TextClipping.Overflow;

            if (SimpleGUICommon.isProSkin)
            {
                styleAddMenuItem.normal.textColor = SimpleGUICommon.GetColor("#c4c4c4");
            }
            else
            {
                styleAddMenuItem.normal.textColor = SimpleGUICommon.GetColor("#595959");
            }

            styleAddMenuItem.active.textColor = SimpleGUICommon.GetColor("#595959");
        }
Beispiel #4
0
        private static void Set_StyleTitle()
        {
            styleTitleWindow           = new GUIStyle();
            styleTitleWindow.alignment = TextAnchor.MiddleLeft;

            if (SimpleGUICommon.isProSkin)
            {
                styleTitleWindow.normal.background = SimpleGUICommon.GetTextureFromColor("#000000");// SimpleGUICommon.StringToTexture(normal);
            }
            else
            {
                styleTitleWindow.normal.background = SimpleGUICommon.GetTextureFromColor("#222c37");// SimpleGUICommon.StringToTexture(normal);
            }
            styleTitleWindow.border           = new RectOffset(1, 1, 1, 2);
            styleTitleWindow.padding          = new RectOffset(12, 12, 9, 0);
            styleTitleWindow.clipping         = TextClipping.Overflow;
            styleTitleWindow.normal.textColor = SimpleGUICommon.GetColor("#FFFFFF");
            styleTitleWindow.active.textColor = SimpleGUICommon.GetColor("#FFFFFF");
        }
Beispiel #5
0
        private static void Set_StyleFoldoutHeading()
        {
            styleFoldoutHeading      = new GUIStyle(styleFoldoutText);
            styleFoldoutHeading.font = (Font)Resources.Load("JosefinSans-Bold-12");

            // custom fonts are not showing up on OSX. for now, just show default font
            if (Application.platform == RuntimePlatform.OSXEditor)
            {
                styleFoldoutHeading.font     = EditorStyles.label.font;
                styleFoldoutHeading.fontSize = 15;
            }

            // text color should reflect editor we are in
            if (SimpleGUICommon.isProSkin)
            {
                styleFoldoutHeading.normal.textColor = SimpleGUICommon.GetColor("#ffffff");
            }
            else
            {
                styleFoldoutHeading.normal.textColor = SimpleGUICommon.GetColor("#000000");
            }
        }
Beispiel #6
0
 private static void Set_StyleFoldoutDisabledText()
 {
     styleFoldoutDisabledText                  = new GUIStyle();
     styleFoldoutDisabledText.padding          = new RectOffset(2, 2, 2, 2);
     styleFoldoutDisabledText.normal.textColor = SimpleGUICommon.GetColor("#A7A7A7");
 }