require "common.globals" require "common.class" local Page = require "api.page.page" local splash3BgColor = {255, 255, 255} local splash3Logo = gfx.CreateSkinImage("titlescreen/splash/team-exceed.png", 0) local splash3LogoWidth, splash3LogoHeight = gfx.ImageSize(splash3Logo) local function splash3(deltaTime) local splash3LogoXOffset = (Dim.design.width - splash3LogoWidth) / 2 local splash3LogoYOffset = (Dim.design.height - splash3LogoHeight) / 2 calcFade(splash3Duration) gfx.BeginPath() gfx.Rect(0, 0, Dim.design.width, Dim.design.height) gfx.FillColor(splash3BgColor[1], splash3BgColor[2], splash3BgColor[3], fadeAlpha) gfx.Fill() gfx.BeginPath() gfx.ImageRect(splash3LogoXOffset, splash3LogoYOffset, splash3LogoWidth, splash3LogoHeight, splash3Logo, fadeAlpha / 255, 0) gfx.BeginPath() gfx.LoadSkinFont("segoeui.ttf") gfx.FillColor(0, 0, 0, fadeAlpha) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_BOTTOM) gfx.FontSize(28) gfx.Text("Press START to skip...", 10, Dim.design.height - 10) if (splashTimer < 0) then splashState = "done" splashTimer = 0 return end if splashTimer == 0 then splashTimer = splash3Duration end splashTimer = splashTimer - deltaTime end ---@class TeamExceedPage : Page local TeamExceedPage = { } ---Create a new TeamExceedPage instance ---@param params? TeamExceedPage function TeamExceedPage.new(params) local self = CreateInstance(TeamExceedPage, params, Page) return self end return TeamExceedPage