Say I have a modded item and I want to use the m_bos icon how do i add this in the def_inv_tags.xml? It's not in there by default so the icon isn't even being used but i've tried something like <tag icon='m_bos' keyword='BOS' hidetag='true'/> and tagged the item i want in FO4Edit with [BOS] but no icon shows
I don't know why I see it just now, but the actual library reference names don't have the "m_" at the start. Maybe inutt can correct that at some point. So just using "bos" instead of "m_bos" should work.
That doesn't seem to work either. I'm a layman when it comes to this stuff so i'm not really sure what to do. Maybe it's also the use of [ ], could these need to be something else since some things are bracketed in { } or | |
Ask and ye shall receive - new version uploaded without the "m_" prefix, and also alphabetical sorting :-)
I've no idea why those tags are included in the icon names in the first place, it's just how they're named in the icon library so I assume it's just how the DEF_UI code was written. Either way you're right, in the config files it's just "bos" rather than "m_bos".
Also, I think the keyword to match is a regex, so you'd probably need to escape the [ ]s, eg; "\[BOS\]". Not tried it myself though.
So i'd have to figure out how to edit lyrConf.xml if I want it to start using a new keyword that I make up? EDIT: for some odd reason it just suddenly started working so i'm not sure what i did. Thanks for the updated PDFs either way
It shouldn't need any changes to lyrConf.xml. I've just tried adding <tag icon='bos' keyword='\[BOS\]' hidetag='true'/> to my DEF_INV_TAGS.xml and adding [BOS] to the start of an item's name, and it shows the icon correctly. lyrConf is for the submenu grouping - I've got groups set up for different armour types so all the combat/leather/metal armours are grouped when I go full-on packrat and have hundreds of them in my inventory :-)
Looks good, thanks for taking the time to do this. Only suggestion would be a 50% grey or black background as the icons are never displayed on pure white ingame.
11 comments
I've no idea why those tags are included in the icon names in the first place, it's just how they're named in the icon library so I assume it's just how the DEF_UI code was written. Either way you're right, in the config files it's just "bos" rather than "m_bos".
Also, I think the keyword to match is a regex, so you'd probably need to escape the [ ]s, eg; "\[BOS\]". Not tried it myself though.