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
*.VC.db
# Rider/Jetbrains IDEs
.idea

@ -299,6 +299,9 @@ namespace ImGuiNET
ImGui.Selectable("Just click somewhere to get rid of me.");
ImGui.EndPopup();
}
ImGui.Text("ProgressBar:");
ImGui.ProgressBar(0.5f, new System.Numerics.Vector2(300, 20), "50%");
ImGui.EndWindow();

@ -441,6 +441,10 @@ namespace ImGuiNET
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)
{
ImGuiNative.igSetNextWindowSize(size, condition);

Loading…
Cancel
Save