Katniss218 / HumanSpaceProgram

A WIP open-source realistic rocketry game
GNU Affero General Public License v3.0
12 stars 1 forks source link

Settings Menu #27

Open Katniss218 opened 2 months ago

Katniss218 commented 2 months ago

I want the settings to be stored as strongly typed properties on classes.

Mods can add their own classes to be saved.

Those classes are automatically shown in the settings menu ui.

When user changes something, that change is performed in the settings class. When the user clicks apply, an apply method on the modified classes is called.

Add an event on settings load and on save. This would be used to serialize these classes.