| Name | Type | Description |
|---|---|---|
json |
Object | optional Json object describing the window skin |
Properties:
| Name | Type | Description |
|---|---|---|
pictureID |
number | The picture ID used for the window skin |
borderTopLeft |
Array.<number> | The top left border rect |
borderTopRight |
Array.<number> | The top right border rect |
borderBotLeft |
Array.<number> | The bot left border rect |
borderBotRight |
Array.<number> | The bot right border rect |
borderLeft |
Array.<number> | The left border rect |
borderRight |
Array.<number> | The right border rect |
borderTop |
Array.<number> | The top border rect |
borderBot |
Array.<number> | The bot border rect |
background |
Array.<number> | The background rect |
backgroundSelection |
Array.<number> | The background when window is selected rect |
backgroundRepeat |
boolean | If checked, the window skin background is repeated, if not, it's stretched |
arrowEndMessage |
Array.<number> | The arrow for end of messages rect |
arrowTargetSelection |
Array.<number> | The arrow for target selection rect |
arrowUpDown |
Array.<number> | The arrow for up and down rect |
textNormal |
Array.<number> | The normal text rect |
textCritical |
Array.<number> | The critical text rect |
textHeal |
Array.<number> | The heal text rect |
textMiss |
Array.<number> | The miss text rect |
Methods
-
Read the JSON associated to the window skin
Name Type Description jsonObject Json object describing the window skin -
Update the window skin picture ID
-
Draw any element of the window skin box with the cut picture
Name Type Default Description rArray.<number> The rect source xnumber The x target ynumber The y target wnumber r[2] optional The w target hnumber r[3] optional The h target zoomnumber 1.0 optional The zoom to apply of target size -
Draw the background box
Name Type Description backgroundArray.<number> The background source rect rectArray.<number> The final box rect -
Draw the box
Name Type Description rectArray.<number> The final box rect selectedboolean Indicate if the box is selected bordersVisibleboolean Indicate if the borders of the box are visible -
Draw the arrow for targets
Name Type Description framenumber The current frame to draw xnumber The x position ynumber The y position positionResizeboolean Indicate if the position picture needs to be resize (resolution) -
Draw the arrow for end of messages
Name Type Description framenumber The current frame to draw xnumber The x position ynumber The y position -
Draw a damage number
Name Type Description damagenumber The damage number to display xnumber The x position ynumber The y position rectArray.<number> The source rect zoomnumber The zoom to apply on damages -
Draw a damage number according to the kind of damages
Name Type Description damagenumber The damage number to display xnumber The x position ynumber The y position isCritboolean Indicate if the damages are a critical hit isMissboolean Indicate if the damages are a missed hit zoomnumber The zoom to apply on damages