Exemplo n.º 1
0
        private void AddTileToList(FrameAnimation tile)
        {
            ListViewItem item = new ListViewItem(new string[] { tile.InitialFrameRect.ToString(), tile.FrameCount.ToString() });
            item.Tag = tile;

            this.lstAnimatedTiles.Items.Add(item);
        }
Exemplo n.º 2
0
        public frmAnimatedTile(Map map, Image tilesheetimage, FrameAnimation animation)
        {
            InitializeComponent();

            this.Icon = Icon.FromHandle(Resources.imgFilm.GetHicon());

            this.Tile = animation;
            this.map = map;
            this.tilesheetimage = tilesheetimage;

            this.DisplayTile();
        }
Exemplo n.º 3
0
 public bool ContainsAnimation(FrameAnimation animation)
 {
     lock(this.animations)
     {
         return this.animations.ContainsValue (animation);
     }
 }
Exemplo n.º 4
0
 public void AddAnimation(string name, FrameAnimation animation)
 {
     lock(this.animations)
     {
         this.animations.Add (name, animation);
     }
 }