Ejemplo n.º 1
0
        static void ShowWindow()
        {
            SetupGuideWindow tempWindow = (SetupGuideWindow)GetWindow(typeof(SetupGuideWindow), true, WINDOW_TITLE);

            tempWindow.minSize = WINDOW_SIZE;
            tempWindow.maxSize = WINDOW_SIZE;

            window = tempWindow;

            EditorStylesExtended.InitializeStyles();
        }
Ejemplo n.º 2
0
        private void InitStyles()
        {
            if (stylesInited)
            {
                return;
            }

            backgroundStyle = EditorStylesExtended.GetBoxWithColor(EditorGUIUtility.isProSkin ? new Color(0.11f, 0.11f, 0.11f, 1.0f) : new Color(0.6f, 0.6f, 0.6f, 1.0f));
            logoContent     = new GUIContent(EditorGUIUtility.isProSkin ? logoWhite : logoBlack, SITE_URL);

            boldTextTitleStyle                  = EditorStylesExtended.GetAligmentStyle(EditorStylesExtended.label_medium_bold, TextAnchor.MiddleCenter);
            boldTextTitleStyle.alignment        = TextAnchor.MiddleCenter;
            boldTextTitleStyle.normal.textColor = EditorGUIUtility.isProSkin ? Color.white : Color.black;

            gameButtonStyle = EditorStylesExtended.GetPaddingStyle(EditorStylesExtended.button_05, new RectOffset(2, 2, 2, 2));

            helpBoxWithIconContent = new GUIContent(PROJECT_DESCRIPTION, EditorStylesExtended.GetTexture("icon_info"));

            stylesInited = true;
        }