Esempio n. 1
0
 public SliderAttribute(float min = 0, float max = 20, string format = "", ImGuiSliderFlags imGuiSliderFlags = ImGuiSliderFlags.None)
 {
     this.imGuiSliderFlags = imGuiSliderFlags;
     this.format           = format == "" ? "%.1f" : format;
     this.min = min;
     this.max = max;
 }
Esempio n. 2
0
 public static bool DragFloat2(string label, ref Vector2 v, float v_speed, float v_min, float v_max, string format, ImGuiSliderFlags flags)
 {
     return(ImGui.DragFloat2(label, ref v, v_speed, v_min, v_max, format, flags));
 }
Esempio n. 3
0
 public static bool DragScalarN(string label, ImGuiDataType data_type, IntPtr v, int components, float v_speed, IntPtr v_min, IntPtr v_max, string format, ImGuiSliderFlags flags)
 {
     return(ImGui.DragScalarN(label, data_type, v, components, v_speed, v_min, v_max, format, flags));
 }
Esempio n. 4
0
 public static bool DragFloatRange2(string label, ref float v_current_min, ref float v_current_max, float v_speed, float v_min, float v_max, string format, string format_max, ImGuiSliderFlags flags)
 {
     return(ImGui.DragFloatRange2(label, ref v_current_min, ref v_current_max, v_speed, v_min, v_max, format, format_max, flags));
 }