Exemplo n.º 1
0
 private Rectangle MakeSlotBounds(ClickableTextureComponent slot)
 {
     return(Utils.MakeRect(
                (slot.bounds.X - offset.x) * zoom,
                (slot.bounds.Y - offset.y) * zoom,
                (slot.bounds.Width - Game1.tileSize) * zoom,
                slotHeight * zoom));
 }
Exemplo n.º 2
0
 private Rectangle MakeSlotBounds(ClickableTextureComponent slot)
 {
     return(Utils.MakeRect(
                (slot.bounds.X - this.Offset.X) * this.Zoom,
                (slot.bounds.Y - this.Offset.Y) * this.Zoom,
                (slot.bounds.Width - Game1.tileSize) * this.Zoom,
                this.SlotHeight * this.Zoom
                ));
 }