Files
impostor/inc/window/window.splash.lua
Zsolt Tasnadi 777c27aa54
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
section and within annotations for ldoc
2026-02-25 23:24:53 +01:00

19 lines
520 B
Lua

--- @section SplashWindow
--- Draws the splash window.
--- @within SplashWindow
function SplashWindow.draw()
local txt = "Definitely not an Impostor"
local y = (Config.screen.height - 6) / 2
Print.text_center(txt, Config.screen.width / 2, y, Config.colors.white)
end
--- Updates the splash window logic.
--- @within SplashWindow
function SplashWindow.update()
Context.splash_timer = Context.splash_timer - 1
if Context.splash_timer <= 0 or Input.menu_confirm() then
Window.set_current("intro")
end
end