diff --git a/hvcc/generators/c2dpf/templates/HeavyDPF_UI.cpp b/hvcc/generators/c2dpf/templates/HeavyDPF_UI.cpp index 01bb782f..20f53805 100644 --- a/hvcc/generators/c2dpf/templates/HeavyDPF_UI.cpp +++ b/hvcc/generators/c2dpf/templates/HeavyDPF_UI.cpp @@ -116,6 +116,8 @@ class ImGuiPluginUI : public UI {%- else %} {%- if v.attributes.type == 'bool': %} if (ImGui::Toggle("{{v.display.replace('_', ' ')}}", &f{{v_display}})) + {%- elif v.attributes.type == 'int' %} + if (ImGui::SliderInt("{{v.display.replace('_', ' ')}}", &f{{v_display}}, {{v.attributes.min}}f, {{v.attributes.max}}f)) {%- else %} if (ImGui::SliderFloat("{{v.display.replace('_', ' ')}}", &f{{v_display}}, {{v.attributes.min}}f, {{v.attributes.max}}f)) {%- endif %}