Added Scale authored by Brickgard's avatar Brickgard
...@@ -9,7 +9,7 @@ Asset layers move in the direction of their alignment, from their start position ...@@ -9,7 +9,7 @@ Asset layers move in the direction of their alignment, from their start position
### Outlined ### Outlined
This will give a shadow-backdrop outline to the asset layer. This will give a shadow-backdrop outline to the asset layer.
```yaml ```yaml
outlined: true outlined: true
``` ```
### Offset ### Offset
The core positioning of the asset layer - this moves the asset based on the origin point for the whole Asset (where it is placed in [HUD Layouts](Layouts) ). This is how to position various layers around within an asset, to make a single object ready to arrange within a HUD. The core positioning of the asset layer - this moves the asset based on the origin point for the whole Asset (where it is placed in [HUD Layouts](Layouts) ). This is how to position various layers around within an asset, to make a single object ready to arrange within a HUD.
...@@ -24,6 +24,12 @@ Some layers can be colored, such as tinting a texture or a font color. Supports ...@@ -24,6 +24,12 @@ Some layers can be colored, such as tinting a texture or a font color. Supports
color: white color: white
color: "#ffbb00" color: "#ffbb00"
``` ```
### Scale
A layer can be scaled, changing the pixel resolution of the input texture by this multiplier.\
For example, this would take a 32px square texture and display it as a 16px square texture:
```yaml
scale: 0.5
```
## Contents ## Contents
### Text Layer ### Text Layer
Text layers can be static or contain placeholders, either from the layer's listener or PlaceholderAPI. Text layers can be static or contain placeholders, either from the layer's listener or PlaceholderAPI.
...@@ -85,6 +91,7 @@ fill: ...@@ -85,6 +91,7 @@ fill:
align: right align: right
outlined: false outlined: false
color: "#f23a3a" color: "#f23a3a"
scale: 0.5
offset: offset:
x: 0 x: 0
y: 0 y: 0
... ...
......