Class: Bitmap

Bitmap

A bitmap is something that can be drawn on the HUD. It can be a window, a text, an image...

new Bitmap (x, y, w, h)

Name Type Default Description
x number 0 optional x coord of the bitmap
y number 0 optional y coord of the bitmap
w number 0 optional w coord of the bitmap
h number 0 optional h coord of the bitmap
Properties:
Name Type Description
x number x coord of the bitmap
y number y coord of the bitmap
w number w coord of the bitmap
h number h coord of the bitmap

Methods

setX (x, min)

Set the x value
Name Type Default Description
x number The x value
min boolean false optional If checked, transform screen value with min x y

setY (y, min)

Set the y value
Name Type Default Description
y number The y value
min boolean false optional If checked, transform screen value with min x y

setW (w, min)

Set the w value
Name Type Default Description
w number The w value
min boolean false optional If checked, transform screen value with min x y

setH (h, min)

Set the h value
Name Type Default Description
h number The h value
min boolean false optional If checked, transform screen value with min x y

setLeft ()

Set the position to the left

setTop ()

Set the position to the top

setRight ()

Set the position to the right

setBot ()

Set the position to the bot

setCoords (x, y, w, h)

Set all the coords values
Name Type Description
x number The x value
y number The y value
w number The w value
h number The h value