CustomPalettes
A Tool for other mods to add Custom Robe Colors.
| Last updated | 2 years ago |
| Total downloads | 6426 |
| 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
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
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


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:
- Visit http://tailoroflegend.epizy.com/
- Follow instructions to create a custom .robe file
- Download and install Tournament Edition
- 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:
- Tournament Edition by Team_Mythic
- Clothes by TheTimesweeper
Credits
only_going_up_fr0m_here- original palette code and image loading codetheholygrind- modified player sprite sheetthetimesweeper- migrating and improving palette codekvadratisk- help improving palette code
Installation (manual):
- Make sure all dependencies are installed
- Download and extract the .zip
- in your
BepInEx/pluginsfolder create a new folder calledTheTimesweeper-CustomPalettes - drag the contents of this mod's
pluginsfolder into this new folder.
Changelog:
0.1.0
- c: