Does icon_size really have any affect?
Posted: Sun Jan 14, 2018 12:24 pm
The icon_size property was introduced not so long ago, but does it really have any effect at the moment? What happens if I enter the wrong value?
Why we haven't default value? If not specified, then 32.posila wrote:Your mod will either cause an error on startup or the icon won't be properly sized in game.
Because that's not the right size for like half of the icons? It's better to define it everywhere than to use a default that might/will change in the future.darkfrei wrote:Why we haven't default value? If not specified, then 32.
The original question (topic). Yes. It has an effect. Currently all item icons are 32, but others like Technology are 128, and categories (tabs at the top when you open the crafting menu) are 64.Zomis wrote:The icon_size property was introduced not so long ago, but does it really have any effect at the moment? What happens if I enter the wrong value?
As specified above, it used to be. I'm not entirely sure why they decided to remove the default of 32 from items, recipes and entities, or the default of 64 from categories, but... they did. Even a default of 128 for technology would have been fine instead of doing what they did in 0.12 to 0.15, the issue is that it was inconsistent, and changing the defaults around over time was causing mods that didn't change the icon size caused loading errors.darkfrei wrote:Why we haven't default value? If not specified, then 32.
That's where you have different defaults for different things, 32 for items, recipes and entities, 64 for categories, and 128 for technology. The default should be whatever is appropriate for the situation.Bilka wrote:Because that's not the right size for like half of the icons? It's better to define it everywhere than to use a default that might/will change in the future.