Skip to content
toxicity188 edited this page May 11, 2024 · 1 revision

Assets

스크린샷 2024-05-11 202014
In BetterHealthBar/layouts folder, you can find default configuration.

Configuartion

Layout can merge multiple images, texts to one.

Layout

  • image
  • text
default_layout:
  images:
    1:
      image: empty
    2:
      image: first
      listener:
        class: health_before #Listener for listener image.
    3:
      image: red
      listener:
        class: health
      conditions:
        1: #Condition
          first: health_percentage
          second: 0.33
          operation: "<"
    4:
      image: yellow
      listener:
        class: health
      conditions:
        1:
          first: health_percentage
          second: 0.33
          operation: ">="
        2:
          first: health_percentage
          second: 0.66
          operation: "<"
    5:
      image: green
      listener:
        class: health
      conditions:`
        1:
          first: health_percentage
          second: 0.66
          operation: ">="
  texts:
    1:
      text: default_text #Used font
      pattern: "[entity_name]" #Text pattern
      align: center #Align
      x: 60
      y: 20
      scale: 0.5