🔌 Usage
🖥️Elements
All of em, explained
Elements Table
| Element | Type | Description | Usage |
|---|---|---|---|
| Position | Vec2i | The position of the element on the page or in a layout | ![]() |
| Size | Vec2i | The size of the element on the page or in a layout | ![]() |
| Margin | Vec2i | The margin of the element; margins inset the content inside of the element itself, keeping the hitbox the size of the element while making the content smaller | ![]() |
| Padding | Vec2i | The padding of the element; paddings add empty space outside of the content of the element itself, making the hitbox the size of the element + padding, while keeping the content the same size | ![]() |
| Decorator | Canvas or NineSlice | The look of the element; can either be a bare Canvas type (gets stretched) or a tiled NineSlice | ![]() |
| Rotation | Vec3d | The rotation of an item/entity element; really only works on those yeah and does what you expect it to, in degrees | ![]() |
| Scale | Float | The scale of an element; due to a scuffed implementation works flipped, larger scales make it smaller | ![]() |
| Visibility | Float | The visiblity of an element; shows or hides the element | ![]() |
| Screen Alignment (HUDs only) | One of nine below | The anchor point of an element; can be topleft, topcenter, topright, left, center, right, bottomleft, bottomcenter, bottomright, not really a property but still counts | ![]() |
| Viewport Fit | CENTER, SCALE or FILL | The fit of a page in the viewport; center centers it around the players screensize, scale scales/stretches it and fill tries to make it fit as good as possible | ![]() |
