Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ww9

#1
Help / [ANSWERED] How do I code per-world mod settings?
February 14, 2019, 01:04:57 PM
I've successfully coded settings for my mod with the following structure:

public class Settings : ModSettings
{
public override void ExposeData() {}
public void DoSettingsWindowContents(Rect settingRect) {}
public string SettingsCategory() {}
}


The settings are saved to a file in .../Ludeon Studios/RimWorld by Ludeon Studios/Config/MyMod.xml and is used for all worlds, old and new.

Now I'd like to also offer per-save settings. I remember seeing a mod that offered both per-save and global settings but I can't recall which mod was it.

Does anyone know a mod that has both per-world and global settings? Or knows how to implement per-save mod settings?

Thanks!