|
|
@@ -727,12 +727,12 @@ static void ShowDemoWindowWidgets()
|
|
|
"Hold SHIFT/ALT for faster/slower edit.\n"
|
|
|
"Double-click or CTRL+click to input value.");
|
|
|
ImGui::DragInt("drag int 0..100", &i2, 1, 0, 100, "%d%%", ImGuiSliderFlags_AlwaysClamp);
|
|
|
- ImGui::DragInt("drag int wrap 100..200", &i3, 1, 100, 200, "%d", ImGuisliderFlags_WrapAround);
|
|
|
+ ImGui::DragInt("drag int wrap 100..200", &i3, 1, 100, 200, "%d", ImGuiSliderFlags_WrapAround);
|
|
|
|
|
|
static float f1 = 1.00f, f2 = 0.0067f;
|
|
|
ImGui::DragFloat("drag float", &f1, 0.005f);
|
|
|
ImGui::DragFloat("drag small float", &f2, 0.0001f, 0.0f, 0.0f, "%.06f ns");
|
|
|
- //ImGui::DragFloat("drag wrap -1..1", &f3, 0.005f, -1.0f, 1.0f, NULL, ImGuisliderFlags_WrapAround);
|
|
|
+ //ImGui::DragFloat("drag wrap -1..1", &f3, 0.005f, -1.0f, 1.0f, NULL, ImGuiSliderFlags_WrapAround);
|
|
|
}
|
|
|
|
|
|
ImGui::SeparatorText("Sliders");
|
|
|
@@ -2146,7 +2146,7 @@ static void ShowDemoWindowWidgets()
|
|
|
ImGui::SameLine(); HelpMarker("Disable rounding underlying value to match precision of the format string (e.g. %.3f values are rounded to those 3 digits).");
|
|
|
ImGui::CheckboxFlags("ImGuiSliderFlags_NoInput", &flags, ImGuiSliderFlags_NoInput);
|
|
|
ImGui::SameLine(); HelpMarker("Disable CTRL+Click or Enter key allowing to input text directly into the widget.");
|
|
|
- ImGui::CheckboxFlags("ImGuiSliderFlags_WrapAround", &flags, ImGuisliderFlags_WrapAround);
|
|
|
+ ImGui::CheckboxFlags("ImGuiSliderFlags_WrapAround", &flags, ImGuiSliderFlags_WrapAround);
|
|
|
ImGui::SameLine(); HelpMarker("Enable wrapping around from max to min and from min to max (only supported by DragXXX() functions)");
|
|
|
|
|
|
// Drags
|
|
|
@@ -2162,7 +2162,7 @@ static void ShowDemoWindowWidgets()
|
|
|
// Sliders
|
|
|
static float slider_f = 0.5f;
|
|
|
static int slider_i = 50;
|
|
|
- const ImGuiSliderFlags flags_for_sliders = flags & ~ImGuisliderFlags_WrapAround;
|
|
|
+ const ImGuiSliderFlags flags_for_sliders = flags & ~ImGuiSliderFlags_WrapAround;
|
|
|
ImGui::Text("Underlying float value: %f", slider_f);
|
|
|
ImGui::SliderFloat("SliderFloat (0 -> 1)", &slider_f, 0.0f, 1.0f, "%.3f", flags_for_sliders);
|
|
|
ImGui::SliderInt("SliderInt (0 -> 100)", &slider_i, 0, 100, "%d", flags_for_sliders);
|