예제 #1
0
        public void SetSelectedSprite(Sprite sprite)
        {
            _SelectedSprite = SpriteList.Find(s => s.InGameID == sprite.InGameID);
            if (_SelectedSprite != null)
            {
                SelectionionRectangle = new Rectangle(SelectedSprite.X, SelectedSprite.Y, SelectedSprite.Width, SelectedSprite.Height);
            }
            else
            {
                ClearSelection();
            }

            FullSpriteRender();
            Invalidate();
        }