mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 06:47:22 +08:00
Fixed combo example not saving the example configuration when changed.
This commit is contained in:
parent
59aa1c6de2
commit
6880dfcbee
@ -27,7 +27,8 @@ namespace big
|
|||||||
g_settings.save();
|
g_settings.save();
|
||||||
if (ImGui::SliderScalar("Double", ImGuiDataType_Double, g_settings.options["demo double"].get<double*>(), &min, &max)) //JSON does not describe rational numbers as integer/float/double/etc types, it is just "number". See: https://nlohmann.github.io/json/
|
if (ImGui::SliderScalar("Double", ImGuiDataType_Double, g_settings.options["demo double"].get<double*>(), &min, &max)) //JSON does not describe rational numbers as integer/float/double/etc types, it is just "number". See: https://nlohmann.github.io/json/
|
||||||
g_settings.save();
|
g_settings.save();
|
||||||
ImGui::Combo("Combo", (PINT)g_settings.options["demo combo"].get<int64_t*>(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo));
|
if (ImGui::Combo("Combo", (PINT)g_settings.options["demo combo"].get<int64_t*>(), demo_combo, sizeof(demo_combo) / sizeof(*demo_combo)))
|
||||||
|
g_settings.save();
|
||||||
|
|
||||||
if (ImGui::Button("Spawn an Adder"))
|
if (ImGui::Button("Spawn an Adder"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user