This is a library, for all Mindustry modders, featuring a way to add custom font icons without any coding.
- Create a new file in
assets/icons, named<modid>.icons(replace<modid>with your actual id) - Write your icon data as in example config
- Install this mod and it will automatically read your file and add following icons
# Example config for this library
# You should name your file <modid>.icons, and put in assets/icons/
# Your icon texture must be in assets/sprites/ui
# The format for icon info is this:
# <type> <id> <texture> [name] [width] [height] [advance]
#type: the type of icon, either "icon" or "team-icon"
#id: the numeric id of icon, hex or decimal. "#ABCD" is the same as "43981", "auto" will chose any available index
# - But, be careful! Your id must be unique, if you use the same id as another mod or vanilla, it will override it!
#texture: the texture of the icon, you can put "@-" and it will replace it with "modid-"
#name: optional field, the name of the icon, used for reference, if not set, it will be the same as your texture
#width: multiplier for width of this icon (def: 1.0)
#height: multiplier for height of this icon (def: 1.0)
#advance: the advance of this icon (def: 0.0)
# You can also set the property of your icon configuration by putting "priority <priority>" at the top of your file (optional)
# Example code:
priority 10
icon 60113 @-laser-icon
icon 60114 subvoyage-laser-icon
icon #EAD3 @-laser-icon laser-icon
icon auto @-laser-icon
icon auto @-laser-icon 2 2 1
# For team icons, the name will be the team name
team-icon 60116 @-team-melius melius
# To use those icons, you can use \u tag in your text, and add your hex id, like this:
# somebundletext = This is a template \uEAD3 icon!
# Or, you can use [fico-] to use icon's name
# somebundletext = This is a template [fico-laser-icon] icon!