Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for adding of prefixes (or affixes) for input fields #184

Open
BiscuitCookies opened this issue Feb 12, 2024 · 0 comments
Open

Allow for adding of prefixes (or affixes) for input fields #184

BiscuitCookies opened this issue Feb 12, 2024 · 0 comments

Comments

@BiscuitCookies
Copy link
Contributor

BiscuitCookies commented Feb 12, 2024

For icons in many cases hoi4 prepends things like GFX_decision_ before an entered icon name (and doesn't it if it already has that prepended) in the case of decisions
So in maybe an option like affix[prefix,<type>] or something like that would be helpful?
So in the case of the example it would look like this.

 icon = prefix[GFX_decision_,<spriteType>]

so if in the game files it would say icon = generic_decision it would look up the GFX_decision_generic_decision instead of generic_decision

Edit: on a related thing. Icons for focus also automatically looks for the icon appended with _shine so also some way of double checking a type without an affix and with an affix

Also for ideas (national spirits, designers,etc.) by default without setting an icon will look for the ID of the idea with the GFX_idea_ prefix for an icon so a way of allowing you to check that a type is also in a different type would be helpful (with and without affixes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant