Esempio n. 1
0
            void addItem_Click(object sender, System.EventArgs e)
            {
                EventTrackBar trackBar = (EventTrackBar)Owner;
                EventInfo     info     = (EventInfo)((Skill.Editor.UI.MenuItem)sender).UserData;

                EventKey newKey = ScriptableObject.CreateInstance(info.Type) as EventKey;

                trackBar.AddKeyAt(Position.x, newKey);
            }
Esempio n. 2
0
            //private EventKey _EventKey;

            public EventKeyView(EventTrackBar trackBar, EventKey key)
                : base(trackBar, key)
            {
                //_EventKey = 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);
            }