You are viewing a potentially older version of this package. View all versions.
RiskofThunder-R2API_Colors-1.0.0 icon

R2API Colors

API for registering Colors to the game

Date uploaded 2 years ago
Version 1.0.0
Download link RiskofThunder-R2API_Colors-1.0.0.zip
Downloads 259587
Dependency string RiskofThunder-R2API_Colors-1.0.0

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.3 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.3
bbepis-BepInExPack-5.4.2109 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2109
RiskofThunder-R2API_Core-5.1.2 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.1.2

README

R2API.Colors - Easy Addition of Colors and Damage Colors

About

R2API.Colors is a submodule for R2API that adds a single unified method for adding both Colors and Damage Colors to the game.

These new colors can be used on Attacks for adding unique coloration to the damage numbers, and add unique colors to ItemTiers, and more miscellaneous color usages.

Use Cases / Features

R2API.Colors can be used for mods to add their own ColorIndex and DamageColorIndex to the game, which then can be used in a plethora of scenarios.

This is done via code by methods that return the ColorCatalog.ColorIndex or DamageColorIndex that will represent said color.

Alongsided this, R2API.Colors also adds two new Scriptable Objects, which can be used to pre-serialize Color Indices.

These are the SerializableColorCatalogEntry and the SerializableDamageColor.

These scriptable objects can later be used for example, in EntityStateConfigurations for serializing the DamageColorIndex of a certain attack in an entity state.

Related Pages

Changelog

'1.0.0'

  • Split from the main R2API.dll into its own submodule.