Examples
main.lua
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
size = { 2048, 2048 }
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
propZuluTime = {
globalPropertyi("sim/cockpit2/clock_timer/zulu_time_hours"),
globalPropertyi("sim/cockpit2/clock_timer/zulu_time_minutes")
}
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
function draw()
drawAll(components)
end
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
isHelloSaid = false
function update()
if not isHelloSaid then
local timeStamp = string.format('%.2d:%.2d', get(zulu[1]), get(zulu[2]))
print("Hello, SASL! It's "..timeStamp.. " already...")
isHelloSaid = true
end
updateAll(components)
end
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------
components = {
}
----------------------------------------------------------------------------------
----------------------------------------------------------------------------------