Changes
Page history
Added yaml formatting to code blocks
authored
Oct 07, 2024
by
Brickgard
Hide whitespace changes
Inline
Side-by-side
Components/Asset-Layers.md
View page @
5f405a4a
...
@@ -55,30 +55,30 @@ This is a layer for a segmented texture to be linked to one of the configured [L
...
@@ -55,30 +55,30 @@ This is a layer for a segmented texture to be linked to one of the configured [L
Uses other layer configurations, and has a
`function`
section to configure how the bar represents the
`listener`
:
Uses other layer configurations, and has a
`function`
section to configure how the bar represents the
`listener`
:
#### Listener
#### Listener
Listeners determine the percentage fill a bar texture renders.
Listeners determine the percentage fill a bar texture renders.
```
```
yaml
function
:
function
:
listener
:
health
listener
:
health
```
```
#### Increment
#### Increment
The increment is the amount of sections your layer should split into.
The increment is the amount of sections your layer should split into.
```
```
yaml
function
:
function
:
increment
:
13
increment
:
13
```
```
##### Orientation
##### Orientation
The way the layer should deplete from. Can either be Horizontal or Vertical.
The way the layer should deplete from. Can either be Horizontal or Vertical.
```
```
yaml
function
:
function
:
orientation
:
horizontal
orientation
:
horizontal
```
```
##### Reversed
##### Reversed
Whether or not the layer should deplete the other way. This option defaults to false.
Whether or not the layer should deplete the other way. This option defaults to false.
```
```
yaml
function
:
function
:
reversed
:
true
reversed
:
true
```
```
#### Example
#### Example
```
```
yaml
fill
:
fill
:
texture
:
# looking within the `/MythicHUD/textures/` folder
texture
:
# looking within the `/MythicHUD/textures/` folder
path
:
assets/vanilla/exp_bar_short_fill.png
path
:
assets/vanilla/exp_bar_short_fill.png
...
...
...
...