UnlimitedHugs / RimworldHugsLib

A lightweight shared library for Rimworld modding.
Other
244 stars 59 forks source link

Settings for non-library mods Broken in 1.5 #106

Closed Kosaro closed 2 months ago

Kosaro commented 4 months ago

In a mod that doesn't extend ModBase, these two lines of code successfully create a mod setting in 1.4 but not in 1.5.

var modSettings = HugsLibController.SettingsManager.GetModSettings("foo", "bar");
var floatSettingHandle = modSettings.GetHandle<float>("FloatSetting", "Float setting", "description");

More specifically the issue is that the button to open this mod's settings doesn't appear in rimworld's mod setting menu. The handle is succesfully created and saved values are loaded, but they can't be change since the mod setting UI can't be opened.

UnlimitedHugs commented 2 months ago

I appreciate the report. Should be resolved in 11.0.4.