Class: DollSlot

DollSlot()

Encapsulates a single image slot for use in a Doll

Constructor

new DollSlot()

Source:

Members

height :int

The height of the slot in a paper Doll
Type:
  • int
Source:

icon :Object

The filename or object to be used by this slot in a paper Doll
Type:
  • Object
Source:

image :Image

The image to be used by this slot in a paper Doll
Type:
  • Image
Source:

width :int

The width of the slot in a paper Doll
Type:
  • int
Source:

x :int

The x coordinate within the overall Doll for this DollSlot
Type:
  • int
Source:

y :int

The y coordinate within the overall Doll for this DollSlot
Type:
  • int
Source:

Methods

init()

Initializes this DollSlot within its parent Doll, parent_doll. This involves loading any Image associated with this DollSlot or discarding any image, if the DollSlot is going to be presented as a solid color.
Source: