Exemple #1
0
 public ItemImage(int itemPosition, int widthSize, int heightSize)
 {
     itemOwner           = EItemOwner.player;
     this.myItemPosition = itemPosition;
     image = new Image()
     {
         Width  = widthSize,
         Height = heightSize
     };
     Children.Add(image);
     SetEvents();
 }
Exemple #2
0
 public ItemImage(int itemPosition, int widthSize, int heightSize, Bag bag, EItemOwner own)
 {
     itemOwner           = own;
     myBagRef            = bag;
     this.myItemPosition = itemPosition;
     image = new Image()
     {
         Width  = widthSize,
         Height = heightSize
     };
     Children.Add(image);
     SetEvents();
 }