Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Evento 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

Non ancora tradotto

Sintassi

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

Argomenti

Nome Tipo Predefinito Descrizione
self Canvas
width integer
height integer