Files
2026-06-10 16:12:51 +02:00

36 lines
809 B
Plaintext

<template name="luawindow" content="content">
<head>
<link type="text/template" href="../../assets/window.rml" />
<script>
Window = Window or {} --namespace
function Window.OnWindowLoad(document)
document:GetElementById('title').inner_rml = document.title
end
function Window.LoadMenu(name,document)
local doc = document.context:LoadDocument('lua_invaders/data/' .. name .. '.rml')
if doc then
doc:Show()
document:Close()
end
return doc
end
function Window.OpenDocument(name,document)
local doc = document.context:LoadDocument('lua_invaders/data/' .. name .. '.rml')
if doc then
doc:Show()
end
return doc
end
function Window.EscapePressed(event)
return event.parameters['key_identifier'] == rmlui.key_identifier.ESCAPE
end
</script>
</head>
<body template="window">
</body>
</template>