Skip to content

Commit 212d31e

Browse files
committed
README.md: add permalinks for custom widgets
1 parent a86e558 commit 212d31e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,11 +773,11 @@ While you can compose existing React components together, Dear ImGui's real powe
773773
**How custom widgets work:**
774774

775775
1. **Add a render function** in [`lib/imgui-unit/renderer.js`](lib/imgui-unit/renderer.js) that uses ImGui's draw list API
776-
2. **Add a case** to the switch statement in `renderNode()`
776+
2. **Add a case** to the switch statement in [`renderNode()`](a86e558b6ea712179d955f04a6ec17493b18953a/lib/imgui-unit/renderer.js#L785)
777777
3. **Use `_igDummy()`** to reserve layout space for your custom drawing
778778
4. **Handle mouse interaction** using `_igGetMousePos()` and `_igIsMouseClicked_Bool()`
779779

780-
**Example: RadialMenu** ([`lib/imgui-unit/renderer.js:607-752`](lib/imgui-unit/renderer.js#L607-L752))
780+
**Example: RadialMenu** ([`lib/imgui-unit/renderer.js:607-752`](a86e558b6ea712179d955f04a6ec17493b18953a/lib/imgui-unit/renderer.js#L607-L752)
781781

782782
```javascript
783783
function renderRadialMenu(node: any, vec2: c_ptr): void {

0 commit comments

Comments
 (0)