various theme changes
This commit is contained in:
@@ -2,18 +2,17 @@ local c;
|
|||||||
local player = Var "Player";
|
local player = Var "Player";
|
||||||
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt");
|
local ShowComboAt = THEME:GetMetric("Combo", "ShowComboAt");
|
||||||
local Pulse = THEME:GetMetric("Combo", "PulseCommand");
|
local Pulse = THEME:GetMetric("Combo", "PulseCommand");
|
||||||
|
local PulseLabel = THEME:GetMetric("Combo", "PulseLabelCommand");
|
||||||
|
|
||||||
local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom");
|
local NumberMinZoom = THEME:GetMetric("Combo", "NumberMinZoom");
|
||||||
local NumberMaxZoom = THEME:GetMetric("Combo", "NumberMaxZoom");
|
local NumberMaxZoom = THEME:GetMetric("Combo", "NumberMaxZoom");
|
||||||
local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt");
|
local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt");
|
||||||
|
|
||||||
|
local LabelMinZoom = THEME:GetMetric("Combo", "LabelMinZoom");
|
||||||
|
local LabelMaxZoom = THEME:GetMetric("Combo", "LabelMaxZoom");
|
||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
--[[ LoadActor(THEME:GetPathG("Combo","100Milestone")) .. {
|
InitCommand=cmd(vertalign,bottom);
|
||||||
Name="OneHundredMilestone";
|
|
||||||
};
|
|
||||||
LoadActor(THEME:GetPathG("Combo","1000Milestone")) .. {
|
|
||||||
Name="OneThousandMilestone";
|
|
||||||
}; --]]
|
|
||||||
LoadFont( "Combo", "numbers" ) .. {
|
LoadFont( "Combo", "numbers" ) .. {
|
||||||
Name="Number";
|
Name="Number";
|
||||||
OnCommand = THEME:GetMetric("Combo", "NumberOnCommand");
|
OnCommand = THEME:GetMetric("Combo", "NumberOnCommand");
|
||||||
@@ -28,7 +27,25 @@ local t = Def.ActorFrame {
|
|||||||
c.Number:visible(false);
|
c.Number:visible(false);
|
||||||
c.Label:visible(false);
|
c.Label:visible(false);
|
||||||
end;
|
end;
|
||||||
|
-- Milestones:
|
||||||
|
-- 25,50,100,250,600 Multiples;
|
||||||
|
--[[ if (iCombo % 100) == 0 then
|
||||||
|
c.OneHundredMilestone:playcommand("Milestone");
|
||||||
|
elseif (iCombo % 250) == 0 then
|
||||||
|
-- It should really be 1000 but thats slightly unattainable, since
|
||||||
|
-- combo doesnt save over now.
|
||||||
|
c.OneThousandMilestone:playcommand("Milestone");
|
||||||
|
else
|
||||||
|
return
|
||||||
|
end; --]]
|
||||||
|
TwentyFiveMilestoneCommand=function(self,parent)
|
||||||
|
(cmd(skewy,-0.125;decelerate,0.325;skewy,0))(self);
|
||||||
|
end;
|
||||||
|
ToastyAchievedMessageCommand=function(self,params)
|
||||||
|
if params.PlayerNumber == player then
|
||||||
|
(cmd(thump,2;effectclock,'beat'))(self);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
ComboCommand=function(self, param)
|
ComboCommand=function(self, param)
|
||||||
local iCombo = param.Misses or param.Combo;
|
local iCombo = param.Misses or param.Combo;
|
||||||
if not iCombo or iCombo < ShowComboAt then
|
if not iCombo or iCombo < ShowComboAt then
|
||||||
@@ -39,9 +56,11 @@ local t = Def.ActorFrame {
|
|||||||
|
|
||||||
local labeltext = "";
|
local labeltext = "";
|
||||||
if param.Combo then
|
if param.Combo then
|
||||||
labeltext = "Combo";
|
labeltext = "COMBO";
|
||||||
|
-- c.Number:playcommand("Reset");
|
||||||
else
|
else
|
||||||
labeltext = "Misses";
|
labeltext = "MISSES";
|
||||||
|
-- c.Number:playcommand("Miss");
|
||||||
end
|
end
|
||||||
c.Label:settext( labeltext );
|
c.Label:settext( labeltext );
|
||||||
c.Label:visible(false);
|
c.Label:visible(false);
|
||||||
@@ -49,6 +68,9 @@ local t = Def.ActorFrame {
|
|||||||
param.Zoom = scale( iCombo, 0, NumberMaxZoomAt, NumberMinZoom, NumberMaxZoom );
|
param.Zoom = scale( iCombo, 0, NumberMaxZoomAt, NumberMinZoom, NumberMaxZoom );
|
||||||
param.Zoom = clamp( param.Zoom, NumberMinZoom, NumberMaxZoom );
|
param.Zoom = clamp( param.Zoom, NumberMinZoom, NumberMaxZoom );
|
||||||
|
|
||||||
|
param.LabelZoom = scale( iCombo, 0, NumberMaxZoomAt, LabelMinZoom, LabelMaxZoom );
|
||||||
|
param.LabelZoom = clamp( param.LabelZoom, LabelMinZoom, LabelMaxZoom );
|
||||||
|
|
||||||
c.Number:visible(true);
|
c.Number:visible(true);
|
||||||
c.Label:visible(true);
|
c.Label:visible(true);
|
||||||
c.Number:settext( string.format("%i", iCombo) );
|
c.Number:settext( string.format("%i", iCombo) );
|
||||||
@@ -62,25 +84,21 @@ local t = Def.ActorFrame {
|
|||||||
elseif param.FullComboW3 then
|
elseif param.FullComboW3 then
|
||||||
c.Number:diffuse(color("#a4ff00"));
|
c.Number:diffuse(color("#a4ff00"));
|
||||||
c.Number:stopeffect();
|
c.Number:stopeffect();
|
||||||
else
|
elseif param.Combo then
|
||||||
c.Number:diffuse(color("#ffffff"));
|
c.Number:diffuse(PlayerColor(player));
|
||||||
c.Number:stopeffect();
|
c.Number:stopeffect();
|
||||||
|
(cmd(diffuse,Color("White");diffusebottomedge,color("0.5,0.5,0.5,1")))(c.Label);
|
||||||
|
else
|
||||||
|
c.Number:diffuse(color("#ff0000"));
|
||||||
|
c.Number:stopeffect();
|
||||||
|
(cmd(diffuse,Color("Red");diffusebottomedge,color("0.5,0,0,1")))(c.Label);
|
||||||
end
|
end
|
||||||
-- Pulse
|
-- Pulse
|
||||||
Pulse( c.Number, param );
|
Pulse( c.Number, param );
|
||||||
-- Pulse( c.Label, param );
|
PulseLabel( c.Label, param );
|
||||||
--[[ -- Milestone Logic
|
-- Milestone Logic
|
||||||
if (iCombo % 100) == 0 then
|
|
||||||
c.OneHundredMilestone:playcommand("Milestone");
|
|
||||||
elseif (iCombo % 250) == 0 then
|
|
||||||
-- It should really be 1000 but thats slightly unattainable, since
|
|
||||||
-- combo doesnt save over now.
|
|
||||||
c.OneThousandMilestone:playcommand("Milestone");
|
|
||||||
else
|
|
||||||
return
|
|
||||||
end; --]]
|
|
||||||
end;
|
end;
|
||||||
ScoreChangedMessageCommand=function(self,param)
|
--[[ ScoreChangedMessageCommand=function(self,param)
|
||||||
local iToastyCombo = param.ToastyCombo;
|
local iToastyCombo = param.ToastyCombo;
|
||||||
if iToastyCombo and (iToastyCombo > 0) then
|
if iToastyCombo and (iToastyCombo > 0) then
|
||||||
-- (cmd(thump;effectmagnitude,1,1.2,1;effectclock,'beat'))(c.Number)
|
-- (cmd(thump;effectmagnitude,1,1.2,1;effectclock,'beat'))(c.Number)
|
||||||
@@ -88,7 +106,7 @@ local t = Def.ActorFrame {
|
|||||||
else
|
else
|
||||||
-- c.Number:stopeffect();
|
-- c.Number:stopeffect();
|
||||||
end;
|
end;
|
||||||
end;
|
end; --]]
|
||||||
};
|
};
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|||||||
@@ -231,10 +231,14 @@ ShowMissesAt=MissCombo()
|
|||||||
NumberMinZoom=0.8
|
NumberMinZoom=0.8
|
||||||
NumberMaxZoom=1
|
NumberMaxZoom=1
|
||||||
NumberMaxZoomAt=100
|
NumberMaxZoomAt=100
|
||||||
|
#
|
||||||
|
LabelMinZoom=0.75*0.75
|
||||||
|
LabelMaxZoom=0.75*1
|
||||||
# Things the combo does when you bang on it, and what the text does
|
# Things the combo does when you bang on it, and what the text does
|
||||||
PulseCommand=%function(self,param) self:stoptweening(); self:zoom(1.4*param.Zoom); self:linear(0.05); self:zoom(param.Zoom); end
|
PulseCommand=%function(self,param) self:stoptweening(); self:zoom(1.125*param.Zoom); self:linear(0.05); self:zoom(param.Zoom); end
|
||||||
NumberOnCommand=y,240-216-2;shadowlength,1;horizalign,right;vertalign,bottom;
|
PulseLabelCommand=%function(self,param) self:stoptweening(); self:zoom(1.075*param.LabelZoom); self:linear(0.05); self:zoom(param.LabelZoom); end
|
||||||
LabelOnCommand=x,6;y,22;shadowlength,1;horizalign,left;vertalign,bottom
|
NumberOnCommand=y,240-216-1.5;shadowlength,1;horizalign,right;vertalign,bottom;skewx,-0.125;
|
||||||
|
LabelOnCommand=x,6;y,22.5;shadowlength,1;zoom,0.75;diffusebottomedge,color("0.75,0.75,0.75,1");horizalign,left;vertalign,bottom
|
||||||
|
|
||||||
[HoldJudgment]
|
[HoldJudgment]
|
||||||
# System Direction
|
# System Direction
|
||||||
@@ -1550,7 +1554,7 @@ ShowScroller=true
|
|||||||
WrapScroller=true
|
WrapScroller=true
|
||||||
ShowIcon=false
|
ShowIcon=false
|
||||||
#
|
#
|
||||||
ChoiceNormal="applydefaultoptions;name,Normal;playmode,regular;screen,ScreenGameInformation"
|
ChoiceNormal="applydefaultoptions;name,Normal;playmode,regular;screen,ScreenSelectMusic"
|
||||||
ChoiceExtended="applydefaultoptions;name,Extended;playmode,nonstop;screen,ScreenSelectCourse"
|
ChoiceExtended="applydefaultoptions;name,Extended;playmode,nonstop;screen,ScreenSelectCourse"
|
||||||
|
|
||||||
[ScreenSelectCharacter]
|
[ScreenSelectCharacter]
|
||||||
@@ -1698,7 +1702,7 @@ NumTicks=10
|
|||||||
MaxTicks=14
|
MaxTicks=14
|
||||||
TicksX=0
|
TicksX=0
|
||||||
TicksY=0
|
TicksY=0
|
||||||
TicksOnCommand=shadowlength,0;stroke
|
TicksOnCommand=shadowlength,0;
|
||||||
TicksSetCommand=%function(self,param) self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end
|
TicksSetCommand=%function(self,param) self:diffuse(CustomDifficultyToColor(param.CustomDifficulty)) if param.Meter > 9 then self:glowshift() else self:stopeffect() end end
|
||||||
ShowTicks=false
|
ShowTicks=false
|
||||||
ShowMeter=true
|
ShowMeter=true
|
||||||
@@ -2140,7 +2144,7 @@ Class="ScreenOptionsMaster"
|
|||||||
Fallback="ScreenOptionsSimpleService"
|
Fallback="ScreenOptionsSimpleService"
|
||||||
NextScreen="ScreenTitleMenu"
|
NextScreen="ScreenTitleMenu"
|
||||||
PrevScreen="ScreenTitleMenu"
|
PrevScreen="ScreenTitleMenu"
|
||||||
LineNames="1,2,13,3,10,11,4,12,6,5,Theme,8,9"
|
LineNames="SD,1,2,13,3,10,11,4,12,6,5,Theme,8,9"
|
||||||
Line1="gamecommand;screen,ScreenMapControllers;name,Key Joy Mappings"
|
Line1="gamecommand;screen,ScreenMapControllers;name,Key Joy Mappings"
|
||||||
Line2="gamecommand;screen,ScreenTestInput;name,Test Input"
|
Line2="gamecommand;screen,ScreenTestInput;name,Test Input"
|
||||||
Line13="gamecommand;screen,ScreenSelectGame;name,Select Game"
|
Line13="gamecommand;screen,ScreenSelectGame;name,Select Game"
|
||||||
@@ -2152,9 +2156,11 @@ Line11="gamecommand;screen,ScreenOptionsInput;name,Input Options"
|
|||||||
Line12="gamecommand;screen,ScreenOptionsArcade;name,Arcade Options"
|
Line12="gamecommand;screen,ScreenOptionsArcade;name,Arcade Options"
|
||||||
Line6="gamecommand;screen,ScreenNetworkOptions;name,Network Options"
|
Line6="gamecommand;screen,ScreenNetworkOptions;name,Network Options"
|
||||||
Line8="gamecommand;screen,ScreenOptionsManageProfiles;name,Profiles"
|
Line8="gamecommand;screen,ScreenOptionsManageProfiles;name,Profiles"
|
||||||
LineTheme="gamecommand;screen,ScreenOptionsTheme;name,Theme Options"
|
|
||||||
Line9="gamecommand;screen,ScreenReloadSongs;name,Reload Songs"
|
Line9="gamecommand;screen,ScreenReloadSongs;name,Reload Songs"
|
||||||
|
|
||||||
|
LineTheme="gamecommand;screen,ScreenOptionsTheme;name,Theme Options"
|
||||||
|
LineSD="gamecommand;screen,ScreenOptionsSystemDirection;name,System Direction"
|
||||||
|
|
||||||
[ScreenOptionsServiceChild]
|
[ScreenOptionsServiceChild]
|
||||||
Fallback="ScreenOptionsMaster"
|
Fallback="ScreenOptionsMaster"
|
||||||
LightsMode="LightsMode_MenuStartAndDirections"
|
LightsMode="LightsMode_MenuStartAndDirections"
|
||||||
|
|||||||
Reference in New Issue
Block a user