About

A simple frame that can contains an object, sprite, or another frame.

TODO

Attributes

NameTypeDescription
xRealThe x origin, left side.
yRealThe y origin, upper side.
wRealThe width of the frame
hRealThe height of the frame
p1Point2DPoint2D of (x, y)
p2Point2DPoint2D of (x + w, y + h)

Methods

NameParamReturnsDescription
get_heightRealGet the height of the frame
get_widthRealGet the width of the frame
get_anchor_xRealGet the x of p1
get_anchor_yRealGet the y of p1
get_center_horizontalRealGet the center of x axis
get_center_verticalRealGet the center of y axis

Events Summary

Draw

Draw outline dari frame (x, y) (x + w, y + h)

Inherit di awal atau di akhir untuk melihat frame

Draw GUI

Menambah informasi debug saat di hover

Inherit secara kondisional jika option debug diset True dan menambahkan informasi untuk dilog dengan ds_list_add(messages, "log here");

Step

Update posisi frame jika didrag atau diresize

Inherit di awal jika frame dapat digeser atau diresize.