예제 #1
0
파일: TileView.cs 프로젝트: broem/ClassicUO
        protected override void MousePick(MouseOverList list, SpriteVertex[] vertex)
        {
            int x = list.MousePosition.X - (int)vertex[0].Position.X;
            int y = list.MousePosition.Y - (int)vertex[0].Position.Y;

            if (Art.Contains(GameObject.Graphic, x, y))
            {
                list.Add(GameObject, vertex[0].Position);
            }
        }
예제 #2
0
        protected override bool Contains(int x, int y)
        {
            if (Art.Contains(Item.DisplayedGraphic, x, y))
            {
                return(true);
            }

            if (Item.Amount > 1 && TileData.IsStackable((long)Item.ItemData.Flags))
            {
                if (Art.Contains(Item.DisplayedGraphic, x - 5, y - 5))
                {
                    return(true);
                }
            }

            return(false);
        }