コード例 #1
0
        private void OnGUI()
        {
            minSize  = maxSize = new Vector2(400, 90);
            position = new Rect(new Vector2((float)Screen.currentResolution.width / 2 - minSize.x / 2,
                                            (float)Screen.currentResolution.height / 2 - minSize.y / 2), minSize);

            GUI.color = MightyColorUtilities.Brighter;

            GUILayout.BeginVertical(MightyStyles.White);
            GUILayout.BeginVertical(MightyStyles.SimpleDarkBox);
            GUILayout.FlexibleSpace();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Box(MightyGUIUtilities.DrawIcon(IconName.Loading(m_iconIndex)));
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.Space(10);

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();

            GUI.color = MightyColorUtilities.Yellow;
            GUILayout.Label(APPLYING_VALUES, MightyStyles.BigBoldLabelStyle);
            GUI.color = Color.white;
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Label(m_infoLabel, MightyStyles.InfoLabelStyle);
            GUILayout.Label(m_indexLabel, MightyStyles.InfoLabelStyle);
            if (m_displayProgression)
            {
                GUILayout.Label(SLASH, MightyStyles.InfoLabelStyle);
                GUILayout.Label(m_countLabel, MightyStyles.InfoLabelStyle);
            }

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
            GUILayout.EndVertical();
        }
コード例 #2
0
        private void OnGUI()
        {
            minSize  = new Vector2(400, 90);
            position = new Rect(new Vector2((float)Screen.currentResolution.width / 2 - minSize.x / 2,
                                            (float)Screen.currentResolution.height / 2 - minSize.y / 2), minSize);

            GUI.color = new Color(0.66f, 0.66f, 0.66f);

            GUILayout.BeginVertical(GUIStyleUtility.White);
            GUILayout.BeginVertical(GUIStyleUtility.SimpleDarkBox);
            GUILayout.FlexibleSpace();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Box(EditorDrawUtility.DrawIcon(IconName.Loading(m_iconIndex)));
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.Space(10);

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = new Color32(255, 190, 37, 255);
            GUILayout.Label(APPLYING_VALUES, GUIStyleUtility.BigBoldLabelStyle);
            GUI.color = Color.white;
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Label(m_infoLabel, GUIStyleUtility.InfoLabelStyle);
            GUILayout.Label(m_indexLabel, GUIStyleUtility.InfoLabelStyle);
            if (m_displayProgression)
            {
                GUILayout.Label(SLASH, GUIStyleUtility.InfoLabelStyle);
                GUILayout.Label(m_countLabel, GUIStyleUtility.InfoLabelStyle);
            }

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
            GUILayout.EndVertical();
        }