ResetFrame
Clear all queued and displayed draw commands for the current Lua coroutine. Empties both build and render buffers and cancels any pending swap.
Syntax
Susano.ResetFrame() -> void
Parameters
None
Return(s)
None
Behavior
Removes this coroutine’s current build buffer and the last submitted render buffer.
Cancels any pending SubmitFrame() for this coroutine.
Effect is immediate on next Overlay rendering (nothing from this coroutine will render).
Other coroutines’ drawings are unaffected.
Example(s)
-- emergency wipe of your overlay
Susano.ResetFrame()
-- rebuild a fresh frame after clearing
Susano.BeginFrame()
Susano.DrawText(40, 40, "reloaded", 18, 1,1,1,1)
Susano.SubmitFrame()