Fix settings::write_default_config & added reset all settings button (#1547)

* fix(settings): correctly write default settings
* feat(Settings): Added button to reset all settings
* fix(Settings): Use SeparatorText for subtitle
This commit is contained in:
Andreas Maerten
2023-06-27 20:24:08 +02:00
committed by GitHub
parent c3121de8e7
commit d4bcd70629
3 changed files with 17 additions and 12 deletions

View File

@ -4,7 +4,13 @@ namespace big
{
void view::settings()
{
components::sub_title("SETTINGS_MISC"_T);
ImGui::SeparatorText("SETTINGS_MISC"_T.data());
ImGui::Checkbox("SETTINGS_MISC_DEV_DLC"_T.data(), &g.settings.dev_dlc);
if (ImGui::Button("Reset Settings"))
{
g.write_default_config();
g.load();
}
}
}