Esempio n. 1
0
        public void DrawLevelEditorConfiguration()
        {
            GUIContent content = new GUIContent(LevelEditorConstants.EditorConfigurationLable);
            Vector2    size    = skin.GetStyle(LevelEditorConstants.Label).CalcSize(content);

            EditorUIUtility.DrawLabel(LevelEditorConstants.EditorConfigurationLable, GUILayout.Width(size.x));
            GUILayout.Space(LevelEditorConstants.i10);
            configuration = (LevelEditorConfiguration)EditorUIUtility.DrawObjectField(configuration, typeof(LevelEditorConfiguration));
        }
Esempio n. 2
0
        public void DrawLevelName()
        {
            if (configuration)
            {
                EditorGUILayout.BeginHorizontal();
                GUIStyle lableStyle = new GUIStyle();
                lableStyle.normal.textColor = Color.green;
                lableStyle.fontSize         = LevelEditorConstants.i18;
                Vector2 size = skin.GetStyle(LevelEditorConstants.Label).CalcSize(new GUIContent(LevelEditorConstants.LevelName));

                EditorUIUtility.DrawLabel(LevelEditorConstants.LevelName, lableStyle, GUILayout.Width(size.x));
                GUILayout.Space(LevelEditorConstants.i35);
                EditorUIUtility.DrawLabel(configuration.levelData.currentLevel.name, lableStyle);
                EditorGUILayout.EndHorizontal();
            }
        }