Small docs fix

This commit is contained in:
Robert Jelic
2025-02-25 08:48:44 +01:00
parent eecb6e9dc1
commit c901983a0e
4 changed files with 129 additions and 9 deletions

View File

@@ -23,9 +23,9 @@ container:logContainerBenchmarks(methodName) -- Show results
-- Common methods to benchmark:
- "render" -- Track render performance
- "mouseClick" -- Track click handling
- "mouseUp" -- Track release handling
- "mouseDrag" -- Track drag performance
- "mouse_click" -- Track click handling
- "mouse_up" -- Track release handling
- "mouse_drag" -- Track drag performance
```
## Practical Example
@@ -38,7 +38,7 @@ local main = basalt.getMainFrame()
main:addButton()
:setText("Show Benchmarks")
:setPosition(2, 2)
:onMouseClick(function()
:onClick(function()
main:logContainerBenchmarks("render")
end)