feat: Added unique selection and scrolling position to each provider

This commit is contained in:
WerWolv
2022-09-18 16:22:08 +02:00
parent 59a04e6dbf
commit b2932773b9
18 changed files with 161 additions and 83 deletions

View File

@@ -283,6 +283,17 @@ namespace hex::plugin::builtin {
return result;
});
ContentRegistry::Settings::add("hex.builtin.setting.hex_editor", "hex.builtin.setting.hex_editor.sync_scrolling", 0, [](auto name, nlohmann::json &setting) {
static bool syncScrolling = static_cast<int>(setting);
if (ImGui::Checkbox(name.data(), &syncScrolling)) {
setting = static_cast<int>(syncScrolling);
return true;
}
return false;
});
/* Fonts */