Exemple #1
0
        /// <summary>
        ///     Draws a int32 slider.
        /// </summary>
        public static void SliderInt(string label, ref int i, int min, int max)
        {
            float f = i;

            ImGuiInternal.InternalSlider(GetControlId(nameof(SliderInt)), label, ref f, min, max, true, ControlWidth);
            i = (int)f;
        }
Exemple #2
0
 /// <summary>
 ///     Draws a float slider.
 /// </summary>
 public static void SliderFloat(string label, ref float f, float min, float max) => ImGuiInternal.InternalSlider(GetControlId(nameof(SliderFloat)), label, ref f, min, max, false, ControlWidth);