17 lines
345 B
Lua
17 lines
345 B
Lua
LuaTest = {}
|
|
|
|
local counter = 0
|
|
|
|
function LuaTest.Test(event)
|
|
counter = counter + 1
|
|
|
|
local document = event.current_element.owner_document
|
|
|
|
local target = document:GetElementById("lua-counter")
|
|
if target then
|
|
target.inner_rml = "Lua Counter: " .. counter
|
|
end
|
|
|
|
print("Lua counter incremented to: " .. counter)
|
|
|
|
end |