From 06dd40428593926ca0f41c007928a9943bf300d6 Mon Sep 17 00:00:00 2001 From: FajsiEx Date: Tue, 21 Dec 2021 19:49:11 +0100 Subject: [PATCH] + versionnumber to title screen --- scripts/titlescreen/title.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/titlescreen/title.lua b/scripts/titlescreen/title.lua index e002118..4be7adf 100644 --- a/scripts/titlescreen/title.lua +++ b/scripts/titlescreen/title.lua @@ -1,4 +1,6 @@ +local version = require('common.version'); + local splash1Image = gfx.CreateSkinImage('titlescreen/title/background.png', 0); local triggerModeSelect = false; @@ -10,6 +12,13 @@ local render = function (deltaTime) gfx.BeginPath(); gfx.ImageRect(0, 0, 1080, 1920, splash1Image, 1, 0); + gfx.LoadSkinFont("segoeui.ttf") + gfx.FillColor(255, 255, 255, 255); + gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_TOP) + gfx.FontSize(28); + + gfx.Text("USC:E:G:S:" .. version.MAJOR .. '.' .. version.MINOR .. '.' .. version.PATCH, 10, 10); + -- if (not splash1SfxPlayed) then -- splash1SfxPlayed = true; -- game.PlaySample('titlescreen/splash/splash1.wav');