Warning
You are currently on the rewrite branch. This version of Pawn Editor is not stable and intended to be used in a playthrough. For the current stable version available on Steam, check out the main branch.
A rewrite of Pawn Editor. The original code was difficult too maintain and suffered from some core issues.
This repository uses an different structure compared to other mods:
├───data/
│ └───PawnEditor/ # XML files and other static data
│ │ LoadFolders.xml
│ ├───About
│ ├───Data
│ ├───Languages
│ └───Textures
└───src
├───PawnEditor # Source code for the mod
├───Taffy
└───Void
Defs are stored under /Data (same as the game itself uses). It uses nested naming for loadfolders to keep the LoadFolder.xml itself readable.
SectionDefsand theirSectionWorkerare small pieces of code that define a group of items that can be modified through the editor. For exampleSectionWorker_Backstoryonly contains code about how to change the pawns backstory.TabDefcontainsSectionDefsand how they are laid out. As this is done through XML, other mods can easily patch in more sections.mayRequireis also supported.- UI and component library. Wrap RimWorld widgets with some QoL improvements (number inputs with increment buttons and scroll incrementing, text inputs only setting on blur). It also contains RimWorld bindings for
Taffy, including Flexbox and CSS Grid. - Taffy C# port. Taffy is a UI layout library that uses the HTML/ CSS vocabulary.
Check out CONTRIBUTING.md
