Esempio n. 1
0
    /* Draw the "header" for a single animation type you can create a sequence for.
     * EXAMPLE:
     * 'Animation 1...               (button)[Add AnimObject]' */
    void DrawAnimationTitle(AnimObject.AnimationEnum animEnum)
    {
        GUILayout.BeginHorizontal();
        GUILayout.Label(animEnum.ToString() + " Animation", TitleStyle, GUILayout.Height(20f)); //show title of animation

        if (GUILayout.Button("X", GUILayout.MaxWidth(25f)))
        {
            _animController.RemoveAnimObjectHolder(animEnum);
        }
        GUILayout.FlexibleSpace(); // fill up the middle
        GUILayout.Label(". . .");
        GUILayout.FlexibleSpace();

        //TO-DO: Add in a Button for adding a new AnimObject
        if (GUILayout.Button("Add AnimObject"))
        {
            //TO-DO: Implement adding a new AnimObject
            AddNewAnimObject.ShowAddNewAnimObjectWindow(_animController, animEnum);
        }

        GUILayout.EndHorizontal();
    }
Esempio n. 2
0
 void CreateNewAddNewAnimObjectWindow(AnimObject.AnimationEnum animationType)
 {
     AddNewAnimObject.ShowAddNewAnimObjectWindow(_animController, animationType);
 }