| Name | Type | Default | Description |
|---|---|---|---|
path |
string | "" | optional The path to the ressource |
x |
number | 0 | optional Coords of the bitma |
y |
number | 0 | optional Coords of the bitmap |
w |
number | 0 | optional Coords of the bitmap |
h |
number | 0 | optional Coords of the bitmap |
Properties:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
zoom |
number |
<optional> |
1.0 | The zoom value of the picture |
opacity |
number |
<optional> |
1.0 | The opacity value of the picture |
angle |
number |
<optional> |
0.0 | The angle value of the picture |
cover |
boolean |
<optional> |
false | Indicate if the picture cover the entire canvas |
stretch |
boolean |
<optional> |
false | Indicate if the picture is stretched if necessary |
path |
string | The path to the ressource | ||
loaded |
boolean | Indicate if the file is loaded | ||
empty |
boolean | Indicate if the file is empty |
Extends
Methods
-
Create a picture and then load it
Name Type Default Description pictureSystemPicture The picture to load xnumber 0 The x position ynumber 0 The y position wnumber 0 The w size hnumber 0 The h size -
Create a picture from kind and id and then load it
Name Type Default Description idnumber The picture id to load kindPictureKind The picture kind to load xnumber 0 The x position ynumber 0 The y position wnumber 0 The w size hnumber 0 The h size -
Load the image
Name Type Description pathstring The image path -
Load the picture and then check
-
Create a copy of a picture2D
-
Draw the picture on HUD
Name Type Default Description xnumber The x position ynumber The y position wnumber The w position hnumber The h position sxnumber 0 optional The source x position synumber 0 optional The source x position swnumber this.oW optional The source width size shnumber this.oH optional The source height size positionResizeboolean true optional Indicate if the position resize (screen resolution) -
Set the x value
Name Type Default Description xnumber The x value minboolean false optional If checked, transform screen value with min x y -
Set the y value
Name Type Default Description ynumber The y value minboolean false optional If checked, transform screen value with min x y -
Set the w value
Name Type Default Description wnumber The w value minboolean false optional If checked, transform screen value with min x y -
Set the h value
Name Type Default Description hnumber The h value minboolean false optional If checked, transform screen value with min x y -
Set the position to the left
-
Set the position to the top
-
Set the position to the right
-
Set the position to the bot
-
Set all the coords values
Name Type Description xnumber The x value ynumber The y value wnumber The w value hnumber The h value