Merge pull request #46 from ZingBallyhoo/progressBar

Add ImGui.Progressbar
internals
Eric Mellino 6 years ago committed by GitHub
commit 23b6b4c9e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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