You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -775,11 +775,11 @@ While you can compose existing React components together, Dear ImGui's real powe
775
775
**How custom widgets work:**
776
776
777
777
1.**Add a render function** in [`lib/imgui-unit/renderer.js`](lib/imgui-unit/renderer.js) that uses ImGui's draw list API
778
-
2.**Add a case** to the switch statement in [`renderNode()`](a86e558b6ea712179d955f04a6ec17493b18953a/lib/imgui-unit/renderer.js#L785)
778
+
2.**Add a case** to the switch statement in [`renderNode()`](https://github.com/tmikov/imgui-react-runtime/blob/93dc8bc8218bacdffa35b59ac2ca6b103a7892ed/lib/imgui-unit/renderer.js#L785)
779
779
3.**Use `_igDummy()`** to reserve layout space for your custom drawing
780
780
4.**Handle mouse interaction** using `_igGetMousePos()` and `_igIsMouseClicked_Bool()`
0 commit comments