mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-05-14 12:46:42 +00:00
34 lines
761 B
Plaintext
34 lines
761 B
Plaintext
function init(self)
|
|
|
|
end
|
|
|
|
function final(self)
|
|
-- Add finalization code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function update(self, dt)
|
|
-- Add update code here
|
|
-- Remove this function if not needed
|
|
end
|
|
|
|
function on_message(self, message_id, message, sender)
|
|
if message_id == hash("hello_gui") then
|
|
gui.set_text(gui.get_node("status"), "Running pods: " .. message.pod_running)
|
|
elseif message_id == hash("howto") then
|
|
gui.set_text(gui.get_node("howto"), message.howto_message)
|
|
elseif message_id == hash("info") then
|
|
gui.set_text(gui.get_node("info"), message.infomessage)
|
|
end
|
|
end
|
|
|
|
|
|
function on_input(self, action_id, action)
|
|
|
|
end
|
|
|
|
function on_reload(self)
|
|
-- Add input-handling code here
|
|
-- Remove this function if not needed
|
|
end
|