Added yaml formatting to code blocks authored by Brickgard's avatar Brickgard
...@@ -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
... ...
......