Skip to content

Commit 93dc8bc

Browse files
committed
README.md: add permalinks for custom widgets
1 parent bc581ab commit 93dc8bc

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
@@ -775,11 +775,11 @@ While you can compose existing React components together, Dear ImGui's real powe
775775
**How custom widgets work:**
776776

777777
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()`
778+
2. **Add a case** to the switch statement in [`renderNode()`](a86e558b6ea712179d955f04a6ec17493b18953a/lib/imgui-unit/renderer.js#L785)
779779
3. **Use `_igDummy()`** to reserve layout space for your custom drawing
780780
4. **Handle mouse interaction** using `_igGetMousePos()` and `_igIsMouseClicked_Bool()`
781781

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

784784
```javascript
785785
function renderRadialMenu(node: any, vec2: c_ptr): void {

0 commit comments

Comments
 (0)