UnlimitedHugs / RimworldHugsLib

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

SettingHandle.OnValueChanged in Wiki #35

Closed Dimondheart closed 7 years ago

Dimondheart commented 7 years ago

OnValueChanged appears to be part of SettingHandle according to the wiki, but I cannot seem to find it anywhere at all in the source code. Section in wiki Is this something from a previous version, or what?

UnlimitedHugs commented 7 years ago

https://github.com/UnlimitedHugs/RimworldHugsLib/blob/master/Source/Settings/SettingHandle.cs#L89 It's a callback you can set to listen for changes to a specific handle. I can add some example code if it helps.

Dimondheart commented 7 years ago

Yah, some example code would be helpful.

Dimondheart commented 7 years ago

I must have somehow missed that when looking through the source, my bad.

UnlimitedHugs commented 7 years ago

Added the example code.