Talk:Lua API:Elements

From The Powder Toy
Revision as of 15:26, 4 May 2015 by ChargedCreeper (talk | contribs) (Enter a short summary [alt-b])
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You do not have to use the legacy API for an update function. Same for the graphics function.

local function funcUpdate(i,x,y,s,nt)

end

local function funcGraphics()

end elements.property(ELEM, "Update", funcUpdate) elements.property(ELEM, "Graphics", funcGraphics)

--ChargedCreeper 16:26, 4 May 2015 (BST)