sonic-radiance/sonic-radiance.love/scenes/overworld/gui/hudelements/time.lua

12 lines
309 B
Lua
Raw Normal View History

local TextElement = require "birb.modules.gui.elements.text"
local TimeElement = TextElement:extend()
function TimeElement:new(fontName, x, y, align)
TimeElement.super.new(self, "time", fontName, "", x, y, align)
end
function TimeElement:getText()
return game:getTimeString()
end
return TimeElement