From 46fac1fe8bd4172d7a85c901d9baf4f43ac71372 Mon Sep 17 00:00:00 2001 From: freem Date: Mon, 1 Sep 2014 14:33:04 -0500 Subject: [PATCH] Update ScreenHowToPlay elements to use localized strings --- .../ScreenHowToPlay overlay/_howtoplay feet.lua | 2 +- .../ScreenHowToPlay overlay/_howtoplay jump.lua | 4 ++-- .../ScreenHowToPlay overlay/_howtoplay miss.lua | 4 ++-- .../ScreenHowToPlay overlay/_howtoplay tap.lua | 4 ++-- Themes/default/Languages/en.ini | 9 ++++++++- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay feet.lua b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay feet.lua index 72401b2ba2..15d333567f 100644 --- a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay feet.lua +++ b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay feet.lua @@ -1,5 +1,5 @@ return LoadFont("Common Normal") .. { - Text="Your feet will be used to play!"; + Text=ScreenString("Feet"); BeginCommand=function(self) self:AddAttribute(5, {Length= 4, Diffuse=Color.Red}) end; diff --git a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay jump.lua b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay jump.lua index 046bccb804..e533b287f8 100644 --- a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay jump.lua +++ b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay jump.lua @@ -6,12 +6,12 @@ return Def.ActorFrame { OnCommand=cmd(diffuse,color("#ffd400");shadowlength,1;zoomtowidth,192;fadeleft,0.25;faderight,0.25); }; LoadFont("Common Bold") .. { - Text="Information"; + Text=ScreenString("Information"); InitCommand=cmd(y,-26); OnCommand=cmd(skewx,-0.125;diffuse,color("#ffd400");shadowlength,2;shadowcolor,BoostColor(color("#ffd40077"),0.25)) }; LoadFont("Common Normal") .. { - Text="Step on both panels if two different\narrows appear at the same time!."; + Text=ScreenString("Jump"); InitCommand=cmd(y,18;wrapwidthpixels,480;vertspacing,-12;shadowlength,1); OnCommand=cmd(zoom,0.875); }; diff --git a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay miss.lua b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay miss.lua index b1aeb93ecf..f14b431b13 100644 --- a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay miss.lua +++ b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay miss.lua @@ -6,12 +6,12 @@ return Def.ActorFrame { OnCommand=cmd(diffuse,color("#ffd400");shadowlength,1;zoomtowidth,192;fadeleft,0.25;faderight,0.25); }; LoadFont("Common Bold") .. { - Text="Information"; + Text=ScreenString("Information"); InitCommand=cmd(y,-26); OnCommand=cmd(skewx,-0.125;diffuse,color("#ffd400");shadowlength,2;shadowcolor,BoostColor(color("#ffd40077"),0.25)) }; LoadFont("Common Normal") .. { - Text="If you misstep repeatedly, your dance\nguage will decrease until the game is\nis over!"; + Text=ScreenString("Miss"); InitCommand=cmd(y,18;wrapwidthpixels,480;vertspacing,-12;shadowlength,1); OnCommand=cmd(zoom,0.75); }; diff --git a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay tap.lua b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay tap.lua index d5f026270f..772f977bfb 100644 --- a/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay tap.lua +++ b/Themes/default/BGAnimations/ScreenHowToPlay overlay/_howtoplay tap.lua @@ -6,12 +6,12 @@ return Def.ActorFrame { OnCommand=cmd(diffuse,color("#ffd400");shadowlength,1;zoomtowidth,192;fadeleft,0.25;faderight,0.25); }; LoadFont("Common Bold") .. { - Text="Information"; + Text=ScreenString("Information"); InitCommand=cmd(y,-26); OnCommand=cmd(skewx,-0.125;diffuse,color("#ffd400");shadowlength,2;shadowcolor,BoostColor(color("#ffd40077"),0.25)) }; LoadFont("Common Normal") .. { - Text="When the arrows rise to this point,\nstep on the matching panels."; + Text=ScreenString("Tap"); InitCommand=cmd(y,18;wrapwidthpixels,480;vertspacing,-12;shadowlength,1); OnCommand=cmd(zoom,0.875); }; diff --git a/Themes/default/Languages/en.ini b/Themes/default/Languages/en.ini index 27badebb29..ed9b7f2368 100644 --- a/Themes/default/Languages/en.ini +++ b/Themes/default/Languages/en.ini @@ -1,4 +1,4 @@ -`[Screen] +[Screen] HelpText=&BACK; Exit &START; Select &SELECT; Options &MENULEFT;&MENURIGHT;&MENUUP;&MENUDOWN; Move [ScreenWithMenuElements] @@ -236,6 +236,13 @@ Play again soon!=Play again soon! [ScreenHowToPlay] How To Play StepMania=How To Play StepMania +Information=Information + +Feet=Your feet will be used to play! +Tap=When the arrows rise to this point,\nstep on the matching panels. +Jump=Step on both panels if two different\narrows appear at the same time! +Miss=If you misstep repeatedly, your dance\nguage will decrease until the game is\nis over! + [Protiming] MS=MS