Example #1
0
            void menuItem_Click(object sender, System.EventArgs e)
            {
                AnimatorTrackBar trackBar = (AnimatorTrackBar)Owner;

                System.Type type = (System.Type)((Skill.Editor.UI.MenuItem)sender).UserData;

                AnimatorKey newKey = ScriptableObject.CreateInstance(type) as AnimatorKey;

                trackBar.AddKeyAt(Position.x, newKey);
            }
Example #2
0
            //private AnimatorKey _AnimatorKey;

            public AnimatorKeyView(AnimatorTrackBar trackBar, AnimatorKey key)
                : base(trackBar, key)
            {
                //_AnimatorKey = key;

                this.ColumnDefinitions.Add(10, Framework.UI.GridUnitType.Pixel);
                this.ColumnDefinitions.Add(1, Framework.UI.GridUnitType.Star);


                _Bg       = new Framework.UI.Box();
                _ImgState = new Skill.Framework.UI.Image()
                {
                    Row = 0, Column = 0
                };

                Controls.Add(_Bg);
                Controls.Add(_ImgState);
            }