public CutscenesWindowAppearance(Rect aStartPos, GUIContent aContent, GUIStyle aStyle,
                                         params GUILayoutOption[] aOptions)
            : base(aStartPos, aContent, aStyle, aOptions)
        {
            appearanceEditor        = ScriptableObject.CreateInstance <AppearanceEditor>();
            appearanceEditor.height = 160;

            video = new FileChooser()
            {
                Label    = TC.get("Resources.DescriptionVideoscenes"),
                FileType = FileType.CUTSCENE_VIDEO
            };

            slides = new AnimationField()
            {
                Label    = TC.get("Resources.DescriptionSlidesceneSlides"),
                FileType = FileType.CUTSCENE_SLIDES
            };

            music = new FileChooser()
            {
                Label    = TC.get("Resources.DescriptionSceneMusic"),
                FileType = FileType.CUTSCENE_MUSIC
            };
        }
        public CharactersWindowAppearance(Rect aStartPos, GUIContent aContent, GUIStyle aStyle,
                                          params GUILayoutOption[] aOptions)
            : base(aStartPos, aContent, aStyle, aOptions)
        {
            IsPlayer = false;

            PreviewTitle = "Character.Preview".Traslate();

            appearanceEditor                    = ScriptableObject.CreateInstance <ResourcesList>();
            appearanceEditor.Height             = 160;
            appearanceEditor.onResourceSelected = RefreshPathInformation;

            if (groups == null)
            {
                groups = Enum.GetValues(typeof(CharacterAnimationsGroup)).Cast <CharacterAnimationsGroup>().ToArray();
            }
            if (types == null)
            {
                types = Enum.GetValues(typeof(CharacterAnimationType)).Cast <CharacterAnimationType>().ToArray();
            }

            foreach (var animationType in types)
            {
                fields[animationType] = new AnimationField()
                {
                    Label    = TC.get(fieldNames[animationType]),
                    FileType = FileType.CHARACTER_ANIM
                };
            }
        }
Exemplo n.º 3
0
 public PlayAnimationEffectEditor()
 {
     animationField = new AnimationField
     {
         FileType = FileType.PLAY_ANIMATION_EFFECT
     };
     this.effect = new PlayAnimationEffect(slidesPath, 300, 300);
     Window      = new Rect(0, 0, 300, 0);
 }
 private void DoAnimationSelector(AnimationField field, string animationName)
 {
     EditorGUI.BeginChangeCheck();
     field.Path = workingCharacter.getAnimationPath(animationName);
     field.DoLayout();
     if (EditorGUI.EndChangeCheck())
     {
         workingCharacter.addAnimationPath(animationName, field.Path);
         RefreshPathInformation(workingCharacter);
     }
 }
        public ResourcesEditor()
        {
            resourcesList = ScriptableObject.CreateInstance <ResourcesList>();
            file          = new FileChooser()
            {
                FileType = FileType.BUTTON,
            };

            animation = new AnimationField()
            {
                FileType = FileType.CHARACTER_ANIM,
            };
        }