#include #include #include #include namespace displaymenu { bool showWaterfall; void init() { showWaterfall = core::configManager.conf["showWaterfall"]; showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall(); } void draw(void* ctx) { if (ImGui::Checkbox("Show Waterfall", &showWaterfall)) { showWaterfall ? gui::waterfall.showWaterfall() : gui::waterfall.hideWaterfall(); core::configManager.aquire(); core::configManager.conf["showWaterfall"] = showWaterfall; core::configManager.release(true); } } }