Add ImGui.Progressbar

internals
zingballyhoo 7 years ago
parent b40f1e1827
commit 2a0c495fa2
No known key found for this signature in database
GPG Key ID: 2C6EEDDA56BFC688
  1. 3
      .gitignore
  2. 3
      src/ImGui.NET.SampleProgram/SampleWindow.cs
  3. 4
      src/ImGui.NET/ImGui.cs

3
.gitignore vendored

@ -254,3 +254,6 @@ Session.vim
# MSVC Stuff # MSVC Stuff
*.VC.db *.VC.db
# Rider/Jetbrains IDEs
.idea

@ -300,6 +300,9 @@ namespace ImGuiNET
ImGui.EndPopup(); ImGui.EndPopup();
} }
ImGui.Text("ProgressBar:");
ImGui.ProgressBar(0.5f, new System.Numerics.Vector2(300, 20), "50%");
ImGui.EndWindow(); ImGui.EndWindow();
_memoryEditor.Draw("Memory editor", _memoryEditorData, _memoryEditorData.Length); _memoryEditor.Draw("Memory editor", _memoryEditorData, _memoryEditorData.Length);

@ -441,6 +441,10 @@ namespace ImGuiNET
return ImGuiNative.igButton(message, size); return ImGuiNative.igButton(message, size);
} }
public static unsafe void ProgressBar(float fraction, Vector2 size, string overlayText) {
ImGuiNative.igProgressBar(fraction, &size, overlayText);
}
public static void SetNextWindowSize(Vector2 size, Condition condition) public static void SetNextWindowSize(Vector2 size, Condition condition)
{ {
ImGuiNative.igSetNextWindowSize(size, condition); ImGuiNative.igSetNextWindowSize(size, condition);

Loading…
Cancel
Save