From 2e009a4072079f359f7f37541a6c015c1366b299 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 24 Mar 2008 12:02:22 +0000 Subject: [PATCH] data-driven pump-style coloring/naming (merge disparate difficulty string/color systems and simplify Lua) --- .../ScreenGameplay overlay/default.lua | 60 ---------- .../ScreenSelectMusic overlay/default.lua | 4 +- ...ficultyDisplay StepsType dance-double.png} | Bin 3631 -> 3000 bytes ...ficultyDisplay StepsType dance-single.png} | Bin 4046 -> 2959 bytes .../DifficultyDisplayListRow Autogen.png | Bin 0 -> 978 bytes .../DifficultyDisplayListRow difficulty.lua | 10 -- .../DifficultyDisplayListRow frame.lua | 33 +----- stepmania/Themes/default/Languages/en.ini | 26 ++--- stepmania/Themes/default/Scripts/Colors.lua | 84 ++++---------- stepmania/Themes/default/metrics.ini | 105 ++++++------------ 10 files changed, 77 insertions(+), 245 deletions(-) rename stepmania/Themes/default/Graphics/{_StepsType icon single.png => DifficultyDisplay StepsType dance-double.png} (73%) mode change 100755 => 100644 rename stepmania/Themes/default/Graphics/{_StepsType icon double.png => DifficultyDisplay StepsType dance-single.png} (66%) mode change 100755 => 100644 create mode 100644 stepmania/Themes/default/Graphics/DifficultyDisplayListRow Autogen.png delete mode 100644 stepmania/Themes/default/Graphics/DifficultyDisplayListRow difficulty.lua diff --git a/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua b/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua index a123c1c4b0..f1eab9d090 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua +++ b/stepmania/Themes/default/BGAnimations/ScreenGameplay overlay/default.lua @@ -1,62 +1,2 @@ -local font = LoadFont( "common normal" ); -local frame = LoadActor( "_score frame" ); ---local text = GAMESTATE:GetPlayMode() == 'PlayMode_Oni' and "time" or "score"; - -local function DifficultyLabelText(pn) - local yNormal = SCREEN_CENTER_Y+175; - local yReverse = SCREEN_CENTER_Y-189; - local xNormal = 286; - local xReverse = 310; - - local diffText = font .. { - InitCommand=function(self) - -- check to see if player is using reverse and set position accordingly. - if GAMESTATE:PlayerIsUsingModifier(pn,"reverse") then - if pn == PLAYER_1 then - -- player 1 reverse position - self:x(SCREEN_CENTER_X-xReverse); - self:y(yReverse); - else - -- player 2 reverse position - self:x(SCREEN_CENTER_X+xReverse); - self:y(yReverse); - end; - else - if pn == PLAYER_1 then - -- player 1 normal position - self:x(SCREEN_CENTER_X-xNormal); - self:y(yNormal); - else - -- player 2 normal position - self:x(SCREEN_CENTER_X+xNormal); - self:y(yNormal); - end; - end; - - -- set align based on player - if pn == PLAYER_1 then self:horizalign('HorizAlign_Left'); - else self:horizalign('HorizAlign_Right'); - end; - - -- other commands - self:zoom(0.75); - self:shadowlength(0); - end; - OnCommand=cmd(playcommand,'Update'); - CurrentStepsP1ChangedMessageCommand=cmd(playcommand,'Update'); - CurrentStepsP2ChangedMessageCommand=cmd(playcommand,'Update'); - UpdateCommand=function(self) - self:settext(DifficultyToLocalizedString(GAMESTATE:GetCurrentSteps(pn):GetDifficulty())); - end; - Condition=GAMESTATE:IsSideJoined(pn) == true or GAMESTATE:GetPlayMode() == 'PlayMode_Rave'; - }; - - return diffText; -end; - return Def.ActorFrame { - - -- text on difficulty labels - DifficultyLabelText(PLAYER_1); - DifficultyLabelText(PLAYER_2); }; diff --git a/stepmania/Themes/default/BGAnimations/ScreenSelectMusic overlay/default.lua b/stepmania/Themes/default/BGAnimations/ScreenSelectMusic overlay/default.lua index 8d5e1234a0..f189191acc 100644 --- a/stepmania/Themes/default/BGAnimations/ScreenSelectMusic overlay/default.lua +++ b/stepmania/Themes/default/BGAnimations/ScreenSelectMusic overlay/default.lua @@ -375,7 +375,7 @@ local t = Def.ActorFrame { DifficultyChangedCommand=function(self, params) if params.PlayerNumber ~= GAMESTATE:GetMasterPlayerNumber() then return end self:settext( params.Meter ); - self:diffuse( DifficultyToColor(params.Difficulty) ); + self:diffuse( CourseDifficutlyToColor(params.Difficulty) ); end; }; @@ -388,7 +388,7 @@ local t = Def.ActorFrame { OnCommand=cmd(x,SCREEN_CENTER_X-222;y,-8;shadowlength,0;settext,"1"); DifficultyChangedCommand=function(self, params) if params.PlayerNumber ~= GAMESTATE:GetMasterPlayerNumber() then return end - self:diffuse( DifficultyToColor(params.Difficulty) ); + self:diffuse( CourseDifficutlyToColor(params.Difficulty) ); end; }; }; diff --git a/stepmania/Themes/default/Graphics/_StepsType icon single.png b/stepmania/Themes/default/Graphics/DifficultyDisplay StepsType dance-double.png old mode 100755 new mode 100644 similarity index 73% rename from stepmania/Themes/default/Graphics/_StepsType icon single.png rename to stepmania/Themes/default/Graphics/DifficultyDisplay StepsType dance-double.png index 54c9d3b40ce82b26fb8e8f9ab0666e7acf21166a..fd72790d7629b3978d2cb542d096891e0a723ab4 GIT binary patch delta 277 zcmV+w0qXv*9Jm)DiBL{Q4GJ0x0000DNk~Le0000c0000K2nGNE0O5~M2(clq3V#68 zNkl{*8a!bD~)k4Dq%!on9h zrBFd)Tw&#_O#u2(36dl>VFiVpr)p>gRvp53V#Di zNklY}T7{`B(z45!_b!?}x6FXI#HcpEOLLw1JAaQItSE@LW55Nh+0p-8} zl_NJKZb-n1Pf&>q5an22(ugz_O+ymfY!V!dy|d%BcZY-R#oNGz(*I>NGyj);=9$?5 ze2&&y`T5JA0GNhBt6Bvh zRVoq7W_^ZsyG`TaLjWR~4C%Q!0E7_hz(ded%{%M0+{ZXGBO=4V_=5&N(SC0@vpp=^4*?ADG zR2G~kE6{a4tqCDmxqX}Z@_(`?cC{|c*WM!Zyz8xfWqwHh=9k_)TPz}k0MJ^k)-14p z?ue4fRM0fdzMxd{#Ej_8lG28-8T^{oxH&1Q3cG++#f6$*vCs+#k_*TVn}Nab?5jDKmG^m>XrA8Ty? z^15esfSyPsVnPV^e{F&~@tG;7Ic%VZ zUaxhIcUV26ay3l1+kd@yu7Xr56}2pjYW)nxHn1#zlbv4c9M3qGSeAw3IEB%G zD4@sV@o_07nY4ozyocS@JmKQy1EjpD!{IvtytLV~wfE!t)q04)?Gmz|~4v3&v8D_IH`Ok}6qzh>uQjf|f4c#h*<0`7+Z z7iev4d{={j##15^i5wM+g^gG&ZUO{=00E`34!5H`-0=j?+ nNTrk;P$NIAXMr)EG5#6=qegKvK&*#u00000NkvXXu0mjfrn9^r diff --git a/stepmania/Themes/default/Graphics/_StepsType icon double.png b/stepmania/Themes/default/Graphics/DifficultyDisplay StepsType dance-single.png old mode 100755 new mode 100644 similarity index 66% rename from stepmania/Themes/default/Graphics/_StepsType icon double.png rename to stepmania/Themes/default/Graphics/DifficultyDisplay StepsType dance-single.png index f43a9c1ae27e482950afb52ff9b141fd2ebf15a9..095aefca1844b821c3c15c920e09448fa98c3eae GIT binary patch delta 236 zcmVC-BHn(LV zqYJPBJ`;<;4D0|?2#260FD)7Ad{bh$!ljSu0QYsJP)zNxTf-B&3V@R2&4LKbQwY25 zOs0ZzUjR6$2I@2@W^_V1_1i?iH$ehGnQ?3y^!Q_A&xL_YTjSc{nQ7TJ|24~+C%y)t mrNa`a7l5p>A~N*Jj{yJ?kT8MV`2P$50000ap&TySSe?EBS%714Q{71v<_3DvGL=!?RB$J5>fDpoP&U6w;MIw>Y zV`GPIo5KA3JbI&n%kL*XK5ko7QxrBA7p?ig@#8%&&OUl%-N(nraryl=zPY%FrYJ}r z56PoPt>@Kh^<7}BFg28n7(yeY)O*Xk|dFLyT#J%1Ak$%a=9XY zzIxT-TaqO1OitSPoyp06jY29j3TU#Tzf4{Y}+WI=VuASDOKE>3U^KLHZayGuTwuahjS@ZnNH0qf%05lr) z7k5U|bkqk#lF6iBQ4|1_bbp%FE<;f)l58`8il*6ksntU1;-yy0#w(g;WZ`x*5rMfU-vQus`l!YC@TAQFG^Z0&3y^m@ zDRgmfJkG-W_q19@RGp!H%)4ATnoR(jD=U`1(P#|qbkxzlP5>WHO@B>Y7#-d31Sn*) zREkAo7r`Jd*O#1_cx(ypPG7?3c%@TJqoa8H`Z^J+R>@~F)?5`2cbV`$nn zlxh`#P&7(xV8F~v-QjTfPnHAQB3NowZuch(IWWHx#lKF0Ylzb>2(4xW&F> zBb|r}f!5X3{Hr$9HY|dbLbA6(bOfb@INWmnxOYVPLNN(@Q{KDwRsMS{kyf z89B7wM3SIC>^72rUB}<-yr^1fBFo0YE2|0vdwsZEj*jD+Ae&R!H{`eM*Ooi_txX+Q z#L$<@O>`Zi5qBpL<aQhD#4bJjews!%8eESswA9NUe=-rh+{M?9!!(pq3 z<~IS6wJlOtWxCoRnpW$v$>z5iQ@mvJ+dWLvYPLRFSAXRmoBSr0jizY_b~@?@qJcob zW1bwTWST#obt)$rE8_J=Z70j{kd8}wNK-Qk!0l?%A8MkiD*d5m4;voRZF;Y_MI!PW z`9josmP$TDRS%jiYVhXGn;xKH_R(X&$Coc(c|RNuOV($|mucxn;>V%^d|r3Y4?=NU zMo}Ba&woOnhyHMLhnGw~2 z%FN948aUkSg5mS|R)&UBGoetZ+I=#mfRn&zyQl7kkpmtAX(5F5={-QGeRb>-N1H$m qP=zoWuS0bGIPB&j@jn@V4*(j@l<#a4xw8NO00{s|MNUMnLSTY2yo}%g diff --git a/stepmania/Themes/default/Graphics/DifficultyDisplayListRow Autogen.png b/stepmania/Themes/default/Graphics/DifficultyDisplayListRow Autogen.png new file mode 100644 index 0000000000000000000000000000000000000000..f0101e1d2ccf86b2a565e83d5fd41d57fa81b187 GIT binary patch literal 978 zcmV;@11aw-?{Icd(J%{@7}g3Kb<68Aat7N zbwbXJ`^+48dBf`!ywikKfX=d+-zJUB5V?7j!-{ijGR|Mi*Wi3;j8-p=@=p(6O4O2=)ZnVb#}Dt@$B4!Dpx9c zoJuCu$nc=buNDYvdwJf|P3Y1*%%@Uq{yZ;lsoD8ADv^kj-VXgf^B1#ORjuy0@3KBg zyq+!31RFuHjn}emV|z{d=cN25r$q6~C&&5yOJn@On42o3Nb}N@Ph1|x%*(GVyK)lX zlhGc%jOz9ehc?W&t^}_aHV?blHh}d>+eEsjk?Jwg(9U9jUF~Q;=ZV1d>zTT8s94(2 zzlcgaenOQtHYu7_%?FS5E@j{AEP8luYOXA+p6)LFEK34}&FH^z)0KhqlHhdjr7J$& zVe(AU@!_FCm42Q%nB%CEk)d1KdDJ^c^KS_m5HyyA^`>9F^whBIGuT+qrihK&+4-rn z2vKL5AZj(gJ+|X^18XKF5(%9#4B0T@l$--RjgA5a=Mi;mQdGnP>-%Hw!-4AjFbFmK zY$~JIwH-qVa@P*asKuqMb{vRu+?VFqF>W4M*pB$#bH;6CjgX8&kSwB&6h)1uCza1} z-MnhlFXp414s{$m%8iOXH#)sgcU+S&hCUO49lcg{{mU8Vy}j?d`3hjaz>%07*qoM6N<$f?)F8 AMgRZ+ literal 0 HcmV?d00001 diff --git a/stepmania/Themes/default/Graphics/DifficultyDisplayListRow difficulty.lua b/stepmania/Themes/default/Graphics/DifficultyDisplayListRow difficulty.lua deleted file mode 100644 index c03c610ad5..0000000000 --- a/stepmania/Themes/default/Graphics/DifficultyDisplayListRow difficulty.lua +++ /dev/null @@ -1,10 +0,0 @@ -return LoadFont( "common normal" ) .. { - Text="XXXX"; - SetCommand=function(self,param) - local s = DifficultyAndStepsTypeToLocalizedString( param.Difficulty, param.StepsType ); - s = string.upper(s); -- TODO: string.upper doesn't work correctly for French - self:settext( s ); - local c = DifficultyAndStepsTypeToColor( param.Difficulty, param.StepsType ); - self:diffuse( c ); - end; -} diff --git a/stepmania/Themes/default/Graphics/DifficultyDisplayListRow frame.lua b/stepmania/Themes/default/Graphics/DifficultyDisplayListRow frame.lua index 030dfd6adf..3335d17146 100644 --- a/stepmania/Themes/default/Graphics/DifficultyDisplayListRow frame.lua +++ b/stepmania/Themes/default/Graphics/DifficultyDisplayListRow frame.lua @@ -1,34 +1,3 @@ return Def.ActorFrame { - SetCommand=function(self,param) - local Steps = param.Steps; - local StepsType; - if Steps then - StepsType = Steps:GetStepsType(); - end - --Trace( StepsType ); - self:GetChild("IconSingle"):visible( StepsType == "StepsType_Pump_Single" ); - self:GetChild("IconDouble"):visible( StepsType == "StepsType_Pump_Double" ); - end; - LoadFont( "_venacti bold 26" ) .. { - Text="XXXX"; - InitCommand=cmd(x,-110;y,-1;zoom,.5;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#00000077");); - SetCommand=function(self,param) - local s = DifficultyAndStepsTypeToLocalizedString( param.Difficulty, param.StepsType ); - if param.Difficulty == "Difficulty_Edit" then - s = param.EditDescription; - end - s = string.upper(s); -- TODO: string.upper doesn't work correctly for French - self:settext( s ); - local c = DifficultyAndStepsTypeToColor( param.Difficulty, param.StepsType ); - self:diffuse( c ); - end; - }; - LoadActor( THEME:GetPathG("","_StepsType icon single") ) .. { - Name="IconSingle"; - InitCommand=cmd(x,100;y,2;;visible,false); - }; - LoadActor( THEME:GetPathG("","_StepsType icon double") ) .. { - Name="IconDouble"; - InitCommand=cmd(x,100;y,2;visible,false); - }; + }; diff --git a/stepmania/Themes/default/Languages/en.ini b/stepmania/Themes/default/Languages/en.ini index 5c50129658..7778748e82 100644 --- a/stepmania/Themes/default/Languages/en.ini +++ b/stepmania/Themes/default/Languages/en.ini @@ -35,13 +35,20 @@ The following packages were exported to your Desktop:=The following packages wer [CatalogXml] Saving %s ...=Saving %s ... -[Difficulty] -Beginner=Beginner -Challenge=Expert -Easy=Easy +[DifficultyDisplayType] +Single_Beginner=Beginner +Single_Easy=Easy +Single_Medium=Medium +Single_Hard=Hard +Single_Challenge=Expert +Double_Beginner=Beginner +Double_Easy=Easy +Double_Medium=Medium +Double_Hard=Hard +Double_Challenge=Expert Edit=Edit -Hard=Hard -Medium=Medium +Couple=Couple +Routine=Routine [CourseDifficulty] Beginner=BEGINNER @@ -1844,10 +1851,3 @@ Off=Off DoubleFor1Credit=Double For 1 Credit 2PlayersFor1Credit=2 Players For 1 Credit -[DifficultyAndStepsType] -Difficulty_Beginner-StepsType_Dance_Single=Novice -Difficulty_Easy-StepsType_Dance_Single=Easy -Difficulty_Medium-StepsType_Dance_Single=Medium -Difficulty_Hard-StepsType_Dance_Single=Hard -Difficulty_Challenge-StepsType_Dance_Single=Expert -Difficulty_Edit-StepsType_Dance_Single=Edit diff --git a/stepmania/Themes/default/Scripts/Colors.lua b/stepmania/Themes/default/Scripts/Colors.lua index 6b813d8867..3c14b23387 100644 --- a/stepmania/Themes/default/Scripts/Colors.lua +++ b/stepmania/Themes/default/Scripts/Colors.lua @@ -4,78 +4,42 @@ function PlayerColor( pn ) return color("1,1,1,1") end -local DifficultyColors = { +local DifficultyDisplayTypeColors = { + DifficultyDisplayType_Single_Beginner = color("0.0,0.9,1.0,1"), -- light blue + DifficultyDisplayType_Single_Easy = color("0.9,0.9,0.0,1"), -- yellow + DifficultyDisplayType_Single_Medium = color("1.0,0.1,0.1,1"), -- light red + DifficultyDisplayType_Single_Hard = color("0.2,1.0,0.2,1"), -- light green + DifficultyDisplayType_Single_Challenge = color("0.2,0.6,1.0,1"), -- blue + DifficultyDisplayType_Double_Beginner = color("0.0,0.9,1.0,1"), -- light blue + DifficultyDisplayType_Double_Easy = color("0.9,0.9,0.0,1"), -- yellow + DifficultyDisplayType_Double_Medium = color("1.0,0.1,0.1,1"), -- light red + DifficultyDisplayType_Double_Hard = color("0.2,1.0,0.2,1"), -- light green + DifficultyDisplayType_Double_Challenge = color("0.2,0.6,1.0,1"), -- blue + Difficulty_Edit = color("0.8,0.8,0.8,1"), -- gray + Difficulty_Couple = color("#ff9a00"), -- orange + Difficulty_Routine = color("#ff9a00"), -- orange +}; + +local CourseDifficultyColors = { Difficulty_Beginner = color("0.0,0.9,1.0,1"), -- light blue Difficulty_Easy = color("0.9,0.9,0.0,1"), -- yellow Difficulty_Medium = color("1.0,0.1,0.1,1"), -- light red Difficulty_Hard = color("0.2,1.0,0.2,1"), -- light green Difficulty_Challenge = color("0.2,0.6,1.0,1"), -- blue - Difficulty_Edit = color("0.8,0.8,0.8,1"), -- gray -} +}; -function DifficultyToColor( dc ) - local c = DifficultyColors[dc] +function DifficultyDisplayTypeToColor( ddt ) + local c = DifficultyDisplayTypeColors[ddt] if c then return c end return color("#000000"); end - - -function StepsOrTrailToLocalizedString(StepsOrTrail) - if not StepsOrTrail then - return ""; - end - if lua.CheckType("Trail", StepsOrTrail) then - local s = THEME:GetString("DifficultyAndStepsType", "Course"); - return s; - end - - local dc = StepsOrTrail:GetDifficulty(); - local st = StepsOrTrail.GetStepsType and StepsOrTrail:GetStepsType(); - return DifficultyAndStepsTypeToLocalizedString( dc, st ); +function CourseDifficutlyToColor( cd ) + local c = CourseDifficultyColors[cd] + if c then return c end + return color("#000000"); end -function StepsOrTrailToIndex(StepsOrTrail) - if not StepsOrTrail then return 1; end - if lua.CheckType("Trail", StepsOrTrail) then - return 8 - end - local dc = StepsOrTrail:GetDifficulty(); - local st = StepsOrTrail.GetStepsType and StepsOrTrail:GetStepsType(); - return DifficultyAndStepsTypeToIndex( dc, st ); -end; -function TrailColor() - return color("#30f0c8"); -end; - -function StepsOrTrailToColor(StepsOrTrail) - if not StepsOrTrail then return color("#000000"); end - if lua.CheckType("Trail", StepsOrTrail) then return TrailColor() end - - local dc = StepsOrTrail:GetDifficulty(); - local st = StepsOrTrail.GetStepsType and StepsOrTrail:GetStepsType(); - return DifficultyAndStepsTypeToColor( dc, st ); -end - -function DifficultyAndStepsTypeToLocalizedString( difficulty, stepsType ) - if( not difficulty or not stepsType ) then - return ""; - end - return THEME:GetString( "DifficultyAndStepsType", difficulty .. "-" .. stepsType ); -end - -function DifficultyAndStepsTypeToIndex( difficulty, stepsType ) - for idx, entry in ipairs(DifficultyAndStepsTypeInfo) do - if entry.difficulty == difficulty and entry.stepsType == stepsType then - return idx; - end - end - - if difficulty == "Difficulty_Edit" then - return 7 - end; - return nil; -end function DifficultyAndStepsTypeToColor( difficulty, stepsType ) return DifficultyToColor( difficulty ); diff --git a/stepmania/Themes/default/metrics.ini b/stepmania/Themes/default/metrics.ini index efac2b00a4..6d0066d5dd 100644 --- a/stepmania/Themes/default/metrics.ini +++ b/stepmania/Themes/default/metrics.ini @@ -1969,7 +1969,7 @@ MaxTicks=14 TicksX=0 TicksY=0 TicksOnCommand=shadowlength,0;stoke -TicksSetCommand=%function(self,param) self:diffuse(DifficultyToColor(param.Difficulty)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end +TicksSetCommand=%function(self,param) self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end ShowTicks=false ShowMeter=true ShowDescription=false @@ -1977,7 +1977,15 @@ ZeroMeterString="?" MeterX=10 MeterY=0 MeterOnCommand=shadowlength,0 -MeterSetCommand=%function(self,param) if param.Difficulty then self:diffuse(DifficultyToColor(param.Difficulty)) end end +MeterSetCommand=%function(self,param) if param.Difficulty then self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)) end end +ShowAutogen=true +AutogenX=0 +AutogenY=0 +AutogenOnCommand= +ShowStepsType=false +StepsTypeX=0 +StepsTypeY=0 +StepsTypeOnCommand= [DifficultyDisplayEdit] Fallback="DifficultyDisplay" @@ -1988,11 +1996,37 @@ MeterOnCommand=shadowlength,2;zoom,0.7 MeterOffCommand= ZeroMeterString= +[DifficultyDisplayListRow] +Fallback="DifficultyDisplay" +FrameX=0 +FrameY=0 +FrameOnCommand= +ShowTicks=true +NumTicks=13 +MaxTicks=13 +TicksSetCommand=%function(self,param) self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)); end +TicksX=0 +TicksY=0 +TicksOnCommand=shadowlength,0;shadowcolor,color("#FFFFFF");zoom,0.5; +ShowMeter=1 +MeterX=92 +MeterY=-1 +MeterOnCommand=zoom,0.5;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#00000077"); +ShowDescription=true +DescriptionX=-110 +DescriptionY=-1 +DescriptionOnCommand=zoom,0.5;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#00000077");maxwidth,150 +DescriptionSetCommand=%function(self,param) self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)); end +ZeroMeterString="?" +MeterSetCommand=%function(self,param) self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)); end + [DifficultyDisplayGameplay] Fallback="DifficultyDisplay" MeterOnCommand=shadowlength,0;zoom,0.5 FrameOnCommand= -MeterSetCommand=%function(self,param) if param.Difficulty then self:diffuse(DifficultyToColor(param.Difficulty)) end end +MeterSetCommand=%function(self,param) if param.Difficulty then self:diffuse(DifficultyDisplayTypeToColor(param.DifficultyDisplayType)) end end +ShowAutogen=false +ShowStepsType=false [ScreenWithMenuElements] Fallback="Screen" @@ -3750,42 +3784,6 @@ PrevScreen="ScreenOptionsService" ScrollRandom=false ScrollRoulette=false -[ScreenGameplay DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenGameplay DifficultyDisplayP2] -Fallback="DifficultyDisplay" - -[ScreenGameplayExtra DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenGameplayExtra DifficultyDisplayP2] -Fallback="DifficultyDisplay" - -[ScreenDemonstration DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenDemonstration DifficultyDisplayP2] -Fallback="DifficultyDisplay" - -[ScreenEvaluation DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenEvaluation DifficultyDisplayP2] -Fallback="DifficultyDisplay" - -[ScreenGameplayMultiplayer DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenGameplaySyncMachine DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenGameplayShared DifficultyDisplayP1] -Fallback="DifficultyDisplay" - -[ScreenGameplayShared DifficultyDisplayP2] -Fallback="DifficultyDisplay" - [ScreenEdit] PrepareScreens=GetEditModeSubScreens() GroupedScreens=GetEditModeSubScreens() @@ -4056,12 +4054,6 @@ LineHighlightX=0 ColorSelected=color("1,1,1,1") ColorNotSelected=color("0.7,0.7,0.7,1") -[ScreenJukebox DifficultyDisplayP1] -Fallback="ScreenGameplay DifficultyDisplayP1" - -[ScreenJukebox DifficultyDisplayP2] -Fallback="ScreenGameplay DifficultyDisplayP2" - [ScreenOptionsManage] Fallback="ScreenOptionsSimple" TimerSeconds=-1 @@ -4396,29 +4388,6 @@ CursorP2ShowCommand=sleep,.3;linear,.3;diffusealpha,1 CursorP1HideCommand=linear,.3;diffusealpha,0 CursorP2HideCommand=linear,.3;diffusealpha,0 -[DifficultyListRow] -Fallback="DifficultyDisplay" -FrameX=0 -FrameY=0 -FrameOnCommand= -ShowTicks=true -NumTicks=13 -MaxTicks=13 -TicksSetCommand=%function(self,param) self:diffuse(DifficultyAndStepsTypeToColor(param.Difficulty,param.StepsType)); end -TicksX=0 -TicksY=0 -TicksOnCommand=shadowlength,0;shadowcolor,color("#FFFFFF");zoom,0.5; -ShowMeter=1 -MeterX=92 -MeterY=-1 -MeterOnCommand=zoom,0.5;shadowlengthx,0;shadowlengthy,2;shadowcolor,color("#00000077"); -ShowDescription=false -DescriptionX=-70 -DescriptionY=0 -DescriptionOnCommand=horizalign,right;zoom,.5;shadowlength,2;maxwidth,150 -ZeroMeterString="?" -MeterSetCommand=%function(self,param) self:diffuse(DifficultyAndStepsTypeToColor(param.Difficulty,param.StepsType)); end - [StreamDisplay] ; a simple bar life meter: ; PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) local native_width=32; local zoomed_width=12; self:zoomx(zoomed_width/native_width); self:x((itemIndex-(numItems/2))*zoomed_width); end