Exemple #1
0
        private static void Set_StyleCanvas()
        {
            styleCanvas = new GUIStyle();

            if (SimpleGUICommon.isProSkin)
            {
                styleCanvas.normal.background = SimpleGUICommon.GetTextureFromColor("#3c3c3c");
            }
            else
            {
                styleCanvas.normal.background = SimpleGUICommon.GetTextureFromColor("#f0f0f0");
            }
        }
Exemple #2
0
        private static void Set_StyleMenu2Selected()
        {
            styleMenu2Selected = new GUIStyle();

            if (SimpleGUICommon.isProSkin)
            {
                styleMenu2Selected.normal.background = SimpleGUICommon.GetTextureFromColor("#505050");
            }
            else
            {
                styleMenu2Selected.normal.background = SimpleGUICommon.GetTextureFromColor("#ffffff");
            }
        }
Exemple #3
0
        private static void Set_StyleFoldoutTextB()
        {
            styleFoldoutTextB         = new GUIStyle(styleFoldoutText);
            styleFoldoutTextB.padding = new RectOffset(2, 2, 2, 2);

            if (SimpleGUICommon.isProSkin)
            {
                styleFoldoutTextB.active.background = SimpleGUICommon.GetTextureFromColor("#3c3c3c");
            }
            else
            {
                styleFoldoutTextB.active.background = SimpleGUICommon.GetTextureFromColor("#f0f0f0");
            }
        }
Exemple #4
0
        private static void Set_StyleMenu2()
        {
            styleMenu2 = new GUIStyle();

            if (SimpleGUICommon.isProSkin)
            {
                styleMenu2.normal.background = SimpleGUICommon.GetTextureFromColor("#505050"); //818181
            }
            else
            {
                styleMenu2.normal.background = SimpleGUICommon.GetTextureFromColor("#ffffff");
            }

            styleMenu2.padding = new RectOffset(20, 0, 20, 0);
        }
Exemple #5
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");
            }
        }
Exemple #6
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");
        }