TheTimesweeper-CustomPalettes icon

CustomPalettes

A Tool for other mods to add Custom Robe Colors.

Last updated 10 months ago
Total downloads 2994
Total rating 0 
Categories
Dependency string TheTimesweeper-CustomPalettes-1.0.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

Modding_Council-BepInExPack_of_Legend-5.4.2100 icon
Modding_Council-BepInExPack_of_Legend

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Modding_Council-HookGenPatcher-1.2.1 icon
Modding_Council-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.1

README

CustomPalettes

An API for adding custom palettes for custom robes (or other unique robe effects (like neve's)).

How to use:

Visit this page for a tutorial and examples on how to do use this with your custom robes.
(as well as how to make a custom robe mod)

You'll want to pass in a 2x56 texture that looks something like this
palette strip
palette strip

By using CustomPalettes.Palettes.AddPalette and its overloads:

CustomPalettes.Palettes.AddPalette(string fullPath)
CustomPalettes.Palettes.AddPalette(params string[] pathDirectories)
CustomPalettes.Palettes.AddPalette(Texture2D palleteTexture)

Examples:

string fullPathToSpriteFile;
int myPalette = CustomPalettes.Palettes.AddPalette(fullPathToSpriteFile)
//use myPalette in custom robe
string assemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location;
int myPalette = CustomPalettes.Palettes.AddPalette(assemblyLocation, "Assets", "MySprite.png")
//use myPalette in custom robe
Texture2D textureLoadedFromAssetBundleOrSomething;
int myPalette = CustomPalettes.Palettes.AddPalette(textureLoadedFromAssetBundleOrSomething)
//use myPalette in custom robe

To make a custom robe palette yourself without code:

  1. Visit http://tailoroflegend.epizy.com/
  2. Follow instructions to create a custom .robe file
  3. Download and install Tournament Edition
  4. Add your .robe file to the Custom Robes folder

Any questions or feedback or mind exploding issues, ping/message thetimesweeper on Discord

This mod does not add anything by itself. It is a tool for other mods to use.

Some mods that use custom palettes:


Credits

  • only_going_up_fr0m_here - original palette code and image loading code
  • theholygrind - modified player sprite sheet
  • thetimesweeper - migrating and improving palette code
  • kvadratisk - help improving palette code

Installation (manual):

  • Make sure all dependencies are installed
  • Download and extract the .zip
  • in your BepInEx/plugins folder create a new folder called TheTimesweeper-CustomPalettes
  • drag the contents of this mod's plugins folder into this new folder.

Changelog:

0.1.0

  • c: