[API] Update imnodes with minimap support (#87)
* Attempt to get imnodes minimap working * Working minimap * Bottom right minimap in demo * Restoring bin/libimgui-java.so * Fix style issue + typo * Restoring node editor * Fix example indents Co-authored-by: SpaiR <klimbetoo@gmail.com>
This commit is contained in:
1 parent
0d70edc26e
commit
a78f0b9e71
8 files changed
+172
-119
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import imgui.extension.imnodes.ImNodes;
|
||||
import imgui.extension.imnodes.ImNodesContext;
|
||||
import imgui.extension.imnodes.flag.ImNodesPinShape;
|
||||
import imgui.extension.imnodes.flag.ImNodesMiniMapLocation;
|
||||
import imgui.flag.ImGuiCond;
|
||||
import imgui.flag.ImGuiMouseButton;
|
||||
import imgui.internal.ImGui;
|
||||
@@ -70,6 +71,7 @@ public class ExampleImNodes {
|
||||
|
||||
final boolean isEditorHovered = ImNodes.isEditorHovered();
|
||||
|
||||
ImNodes.miniMap(0.2f, ImNodesMiniMapLocation.BottomRight);
|
||||
ImNodes.endNodeEditor();
|
||||
|
||||
if (ImNodes.isLinkCreated(LINK_A, LINK_B)) {
|
||||
|
||||
Reference in new issue
Block a user