Open eyasu4198 opened 10 months ago
Currently color does not parse placeholders. Adding this as a possible future enhancement.
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
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.
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.