CustomPalettes

版本 v1.0.0·更新於 2023-07-31

A Tool for other mods to add Custom Robe Colors.

截圖 共 2 張

模組介紹 作者原文

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:

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

Modding_Council-BepInExPack_of_LegendModding_Council-HookGenPatcher

檔案與校驗

檔案名稱
CustomPalettes-1.0.0.zip
檔案大小
77.7 KiB