Suggestion Open

Placeholder support

#10109 opened by Taner 7 hours ago

Tanerreported this suggestion

I've started using MythicHUD for my quest plugin's dialogue windows. Each time a dialogue window opens, it also displays the NPC's portrait. To display the correct NPC portrait, I currently have to check nearly 100 conditions in almost every case. If placeholder support could be added to texture.path, I wouldn't need to create so many conditions.

Current config:

https://mclo.gs/Ah17WtE


portraits_npc:
 conditions:
 - placeholder{ph=%typewriter_mythichud_custom_p%;v=ardin} true texture typewriter/dialogues/portraits/ardin.png
 - placeholder{ph=%typewriter_mythichud_custom_p%;v=arven} true texture typewriter/dialogues/portraits/arven.png
 - placeholder{ph=%typewriter_mythichud_custom_p%;v=boran} true texture typewriter/dialogues/portraits/boran.png
 - placeholder{ph=%typewriter_mythichud_custom_p%;v=cael} true texture typewriter/dialogues/portraits/cael.png
 .....100 more
 texture:
 path: typewriter/dialogues/portraits/empty.png



Config I would like to see supported:

portraits_npc:
texture:
path: typewriter/dialogues/portraits/%typewriter_mythichud_custom_p%.png
Sign in to join the discussion.