Ehhthan / HappyHud-Issues

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

Allow papi placeholders to be used for an asset's color #82

Open eyasu4198 opened 10 months ago

eyasu4198 commented 10 months ago

Essentially, I want to be able to use placeholders for an asset's color so that I can let the players choose what color they want their ui to show up as.

At the moment, attempting to do so returns a "Color does not exist" error upon reload.

Ehhthan commented 10 months ago

Currently color does not parse placeholders. Adding this as a possible future enhancement.

YKDZ commented 10 months ago

I think my suggestion is very similar, anyway: I'd like to make the texture path support placeholders as well.

It may be something like this:

skill-casting-bar:
  layers:
    skill:
      conditions:
        - placeholder{ph=%wizardry_ifInSkillCasting%;v=true} true hide
        #- placeholder{ph=%wizardry_wandBoundCurrnet%;v=FIREBALL} false texture assets/skill-casting-bar/mage/icon_fireball
      texture:
        path: assets/skill-icon/icon_%wizardry_wandBoundCurrentLower%.png
      offset:
        x: 2
        y: -2
Ehhthan commented 10 months ago

I think my suggestion is very similar, anyway: I'd like to make the texture path support placeholders as well.

It may be something like this:

skill-casting-bar:
  layers:
    skill:
      conditions:
        - placeholder{ph=%wizardry_ifInSkillCasting%;v=true} true hide
        #- placeholder{ph=%wizardry_wandBoundCurrnet%;v=FIREBALL} false texture assets/skill-casting-bar/mage/icon_fireball
      texture:
        path: assets/skill-icon/icon_%wizardry_wandBoundCurrentLower%.png
      offset:
        x: 2
        y: -2

Cannot have dynamic texture paths as all possible textures need to be known at pack build time. I have a solution in the works for something similar though.