Details

Last Updated
2 years ago
First Uploaded
2 years ago
Downloads
5.6K
Likes
0
Size
80KB
Dependency string
TheTimesweeper-CustomPalettes-1.0.0
Dependants

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:
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.