-
Notifications
You must be signed in to change notification settings - Fork 76
IMGUI.Net
We're using https://github.com/mellinoe/ImGui.NET which is a .net wrapper around https://github.com/ocornut/imgui for the UI stuff.
If you're new to the imediate mode gui paradigm, Casey Muratori has a talk on it here: https://www.youtube.com/watch?v=Z1qyvQsjK5Y
The readme, FAQ, and wiki at https://github.com/ocornut/imgui is also a good resource, and excepting for a few minor things the .net wrapper works in the same way.
a couple of little "gotcha's" which keep coming up: When an imgui widget would typicaly use an array as one of the inputs, it'll use ref. in this instance feed it the first item in the array and it'll figure the rest out itself. ImGui.PlotHistogram and ImGui.PlotLines are good examples of this. See DebugWindow.cs for an example of it working live.
you can use ImGui.GetCursorPos() and ImGui.SetCursorPos() to draw widgets ontop of each other (or manipulate positions).
Documentation
-
Contribution
-
Design
-
Processes
-
Datatypes
-
Guides and Resources
-
Modding & Json files