-- PyTaikoGreen's coin overlay (free play / credits), hidden on the result screen: taikonantoka -- shows no credit line there. Scripts/result/result_player.lua stamps NK_RESULT_DRAW_MS every -- frame it draws; the engine draws this overlay after the players in the same frame. CoinOverlay = {} CoinOverlay.__index = CoinOverlay function CoinOverlay.new() local self = setmetatable({}, CoinOverlay) self.text = text.create_text("free_play", { 255, 255, 255, 255 }, { 0, 0, 0, 255 }, false, 4, 5) self.config = tex.get_skin_config("free_play") return self end function CoinOverlay:update(current_ms) end function CoinOverlay:draw(x, y) if NK_RESULT_DRAW_MS and tex.get_current_ms() - NK_RESULT_DRAW_MS < 200 then return end local text_x = tex.get_screen_width() / 2 - self.text.width / 2 - self.config.x self.text:draw({ x = text_x }) end