Progetto H — API Reference API & Scripting Documentation
Event Client

Canvas.Update

Called when the Canvas needs to be painted<br/><br/>You can only call <code>:Draw...()</code> methods from inside this event

Syntax

Lua
Canvas.Subscribe("Update", function(self, width, height)
    -- il tuo codice
end)

Arguments

Name Type Default Description
self Canvas
width integer
height integer