https://github.com/sublemon-team/fonticonslib
Library for mindustry mods, adding a way to modify font to add their own custom icons. Mod team icons supported.
https://github.com/sublemon-team/fonticonslib
java mindustry-mod mindustry-mod-v7 mindustry-mods
Last synced: 5 months ago
JSON representation
Library for mindustry mods, adding a way to modify font to add their own custom icons. Mod team icons supported.
- Host: GitHub
- URL: https://github.com/sublemon-team/fonticonslib
- Owner: Sublemon-Team
- Created: 2025-03-26T11:55:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-14T10:51:45.000Z (about 1 year ago)
- Last Synced: 2025-04-14T17:49:00.647Z (about 1 year ago)
- Topics: java, mindustry-mod, mindustry-mod-v7, mindustry-mods
- Language: Java
- Homepage:
- Size: 119 KB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/VuzZis/Subvoyage)
[](https://github.com/VuzZis/Subvoyage/releases)[](https://github.com/VuzZis/Subvoyage/releases)
[](https://discord.gg/Gsbajms8CK)
# Font Icons Lib (FICO-Lib)
This is a library, for all Mindustry modders,
featuring a way to add custom font icons without any coding.
## How To Use
1. Create a new file in `assets/icons`, named `.icons` (replace `` with your actual id)
2. Write your icon data as in example config
3. Install this mod and it will automatically read your file and add following icons
## [Example](https://github.com/Sublemon-Team/FontIconsLib/tree/master/assets/icons/yourmodid.icons)
```properties
# Example config for this library
# You should name your file .icons, and put in assets/icons/
# Your icon texture must be in assets/sprites/ui
# The format for icon info is this:
# [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 " 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!
```