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

Last edited by Brickgard Nov 16, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Assets

Assets are a collection of Asset Layers, to be positioned in HUD 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 that affect their visibility within a HUD Layout, color, and appearance.

Example:


The default-layout's vanilla-air Asset:

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
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