CustomPalettes
A Tool for other mods to add Custom Robe Colors.
Screenshots 2 screenshots
About this mod Author’s original text
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
- 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 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:
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: