Ehhthan / HappyHud-Issues

Issue tracker for the spigot plugin HappyHud.
0 stars 0 forks source link

Reversed Function Asset not working properly with 0.5 Scale #77

Closed DrakerSAN closed 1 year ago

DrakerSAN commented 1 year ago

So currently everything looks fine here,

Screenshot 2023-08-27 163652

outline-mana:
  layers:
    fill:
      texture:
        path: assets/ouroborionrpg/mana_bar.png
      scale: 0.5
      offset:
        x: 0
        y: 0
      function:
        listener: mana
        increment: 10
        orientation: horizontal
    outline:
      texture:
        path: assets/ouroborionrpg/outline_mana_bar.png
      scale: 0.5

but I want the mana bar to deplete in the other direction, so I will use the reversed function...

outline-mana:
  layers:
    fill:
      texture:
        path: assets/ouroborionrpg/mana_bar.png
      scale: 0.5
      offset:
        x: 0
        y: 0
      function:
        listener: mana
        increment: 10
        orientation: horizontal
        reversed: true
    outline:
      texture:
        path: assets/ouroborionrpg/outline_mana_bar.png
      scale: 0.5

Screenshot 2023-08-27 163736

and for some reason it goes off unto the right direction, but weird thing is if I remove the 0.5 Scale it stays at its fixed point and depletes how I want it to, only thing I can think of is the 0.5 Scale is working weirdly.

outline-mana:
  layers:
    fill:
      texture:
        path: assets/ouroborionrpg/mana_bar.png
      offset:
        x: 0
        y: 0
      function:
        listener: mana
        increment: 10
        orientation: horizontal
        reversed: true
    outline:
      texture:
        path: assets/ouroborionrpg/outline_mana_bar.png
      scale: 0.5
outline-left:
  layers:
    outline:
      texture:
        path: assets/ouroborionrpg/outline_left.png
      scale: 0.5
      offset:
        x: 0
        y: 0

Screenshot 2023-08-27 164355

Ehhthan commented 1 year ago

duplicate of #72

I will track the issue on that ticket.