Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicHUD MythicHUD
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicHUDMythicHUD
  • Wiki
    • Components
  • Assets

Assets · Changes

Page history
Components/Assets created authored Oct 03, 2024 by Brickgard's avatar Brickgard
Show whitespace changes
Inline Side-by-side
Showing with 36 additions and 0 deletions
+36 -0
  • Components/Assets.md Components/Assets.md +36 -0
  • No files found.
Components/Assets.md 0 → 100644
View page @ f4d938c8
Assets are a collection of [Asset Layers](Components/Layers), to be positioned in [HUD Layouts](Layouts) for display.
The example `default-layout`'s assets are hosted in `/MythicHUD/assets/hud/vanilla.yml`, providing assets such as `vanilla-health` and `vanilla-hunger`.
### Conditions
Layers may have [Conditions](Conditions) that affect their visibility within a HUD Layout, color, and appearance.
#### Example:
---
The `default-layout`'s `vanilla-air` Asset:
```yaml
vanilla-air:
conditions: # Only visible when below 100% oxygen
- progress{l=fill;o=<;v=100%} true hide
layers:
icon:
texture:
path: assets/vanilla/air.png
offset:
x: -5
y: 2
fill:
texture:
path: assets/vanilla/exp_bar_short_fill.png
color: "#525aff"
offset:
x: 0
y: 0
function:
listener: air
increment: 13
orientation: horizontal
outline:
texture:
path: assets/vanilla/exp_bar_short_outline.png
```
\ No newline at end of file
Clone repository
  • Advanced Version Support
  • Changelog
  • Commands
  • Compatibility
  • Components
    • Asset Layers
    • Assets
  • Conditions
  • Conditions
    • Effect
    • Gamemode
    • Logical Operator
    • Placeholder
    • Progress
  • Fonts
  • Getting Started
  • HUD Components
View All Pages