Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lethalcompanymodding/runtimeicons
Generate Icons for scrap at runtime, replacing the gear icon
https://github.com/lethalcompanymodding/runtimeicons
csharp lethal-company-community lethalcompany lethalcompany-mod thunderstore
Last synced: 6 days ago
JSON representation
Generate Icons for scrap at runtime, replacing the gear icon
- Host: GitHub
- URL: https://github.com/lethalcompanymodding/runtimeicons
- Owner: LethalCompanyModding
- License: mit
- Created: 2024-09-11T22:58:02.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-04T17:33:21.000Z (about 1 month ago)
- Last Synced: 2024-12-04T18:31:37.013Z (about 1 month ago)
- Topics: csharp, lethal-company-community, lethalcompany, lethalcompany-mod, thunderstore
- Language: C#
- Homepage:
- Size: 5.58 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
RuntimeIcons
============
[![GitHub Release](https://img.shields.io/github/v/release/LethalCompanyModding/RuntimeIcons?display_name=release&logo=github&logoColor=white)](https://github.com/LethalCompanyModding/RuntimeIcons/releases/latest)
[![GitHub Pre-Release](https://img.shields.io/github/v/release/LethalCompanyModding/RuntimeIcons?include_prereleases&display_name=release&logo=github&logoColor=white&label=pre-release)](https://github.com/LethalCompanyModding/RuntimeIcons/releases)
[![Thunderstore Downloads](https://img.shields.io/thunderstore/dt/LethalCompanyModding/RuntimeIcons?style=flat&logo=thunderstore&logoColor=white&label=thunderstore)](https://thunderstore.io/c/lethal-company/p/LethalCompanyModding/RuntimeIcons/)
#### ⚠️WARNING⚠️ this mod is currently in beta, future release might heavily change configs and/or rendered images### Never lose track of your scrap again!
Runtime Icons brings a much-needed update to your hotbar! Enjoy breathtakingly-rendered scrap! With patent-pending technology your suit will scan each item you pick up and place its image on your hotbar so you know what to drop when that friendly neighborhood thumper rolls around the corner!
9/10 employees agree that with Runtime Icons, your productivity goes up up up, and you leave less blood on company scrap, which makes the Company happy!
## How it works
The first time an item that lacks an icon is spawned, it generates an icon to replace the gear icon in the HUD. These items are placed into the correct orientation (which can be overridden in the config) to properly display an image in the player's hotbar. This means any modded scrap should be compatible! Additional options are provided in the config.
**Note:** Modded scrap may not render if it has not been built correctly. Modders should refer to the [Mod Developer Information](#mod-developer-information) section.
Gameplay Images
## Config
The following options are provided:
- **Blacklist/whitelist items** - Select whether to blacklist or whitelist items, then create a list of items to use.
- **Adjust icon emptiness threshold** - Specify the amount of fully transparent pixels allowed before the icon is considered empty.
- **Dump sprites to disk** - This option can be used to collect all generated icons in the `BepInEx/cache` folder. They will be stored in both PNG and EXR, where EXR fully retains specular highlights on transparent objects.## Mod Developer Information
### My custom item is displayed at a weird angle!
You may want to adjust your resting rotation to get a better result. Items will normally be rendered from an angle similar to the perspective of a player that has dropped the item in front of them and then stood back and crouched. This angle will be adjusted somewhat based on the item's dimensions to give the image more depth.
**Note:** Only the X and Z values of the `restingRotation` vector of an item are used. To adjust the Y rotation, the `floorYOffset` should be used instead.