flashy combo userpref (default = off)
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
|
local ShowFlashyCombo = GetUserPrefB("UserPrefFlashyCombo")
|
||||||
return Def.ActorFrame {
|
return Def.ActorFrame {
|
||||||
LoadActor("explosion") .. {
|
LoadActor("explosion") .. {
|
||||||
InitCommand=cmd(diffusealpha,0;blend,'BlendMode_Add');
|
InitCommand=cmd(diffusealpha,0;blend,'BlendMode_Add';hide_if,not ShowFlashyCombo);
|
||||||
MilestoneCommand=cmd(rotationz,0;zoom,2;diffusealpha,0.5;linear,0.5;rotationz,90;zoom,1.75;diffusealpha,0);
|
MilestoneCommand=cmd(rotationz,0;zoom,2;diffusealpha,0.5;linear,0.5;rotationz,90;zoom,1.75;diffusealpha,0);
|
||||||
};
|
};
|
||||||
LoadActor("explosion") .. {
|
LoadActor("explosion") .. {
|
||||||
InitCommand=cmd(diffusealpha,0;blend,'BlendMode_Add');
|
InitCommand=cmd(diffusealpha,0;blend,'BlendMode_Add';hide_if,not ShowFlashyCombo);
|
||||||
MilestoneCommand=cmd(rotationz,0;zoom,2;diffusealpha,0.5;linear,0.5;rotationz,-90;zoom,2.5;diffusealpha,0);
|
MilestoneCommand=cmd(rotationz,0;zoom,2;diffusealpha,0.5;linear,0.5;rotationz,-90;zoom,2.5;diffusealpha,0);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -12,16 +12,22 @@ local NumberMaxZoomAt = THEME:GetMetric("Combo", "NumberMaxZoomAt");
|
|||||||
local LabelMinZoom = THEME:GetMetric("Combo", "LabelMinZoom");
|
local LabelMinZoom = THEME:GetMetric("Combo", "LabelMinZoom");
|
||||||
local LabelMaxZoom = THEME:GetMetric("Combo", "LabelMaxZoom");
|
local LabelMaxZoom = THEME:GetMetric("Combo", "LabelMaxZoom");
|
||||||
|
|
||||||
|
local ShowFlashyCombo = GetUserPrefB("UserPrefFlashyCombo")
|
||||||
|
|
||||||
local t = Def.ActorFrame {
|
local t = Def.ActorFrame {
|
||||||
InitCommand=cmd(vertalign,bottom);
|
InitCommand=cmd(vertalign,bottom);
|
||||||
--[[ LoadActor(THEME:GetPathG("Combo","100Milestone")) .. {
|
-- flashy combo elements:
|
||||||
|
LoadActor(THEME:GetPathG("Combo","100Milestone")) .. {
|
||||||
Name="OneHundredMilestone";
|
Name="OneHundredMilestone";
|
||||||
|
InitCommand=cmd(visible,ShowFlashyCombo);
|
||||||
FiftyMilestoneCommand=cmd(playcommand,"Milestone");
|
FiftyMilestoneCommand=cmd(playcommand,"Milestone");
|
||||||
};
|
};
|
||||||
LoadActor(THEME:GetPathG("Combo","1000Milestone")) .. {
|
LoadActor(THEME:GetPathG("Combo","1000Milestone")) .. {
|
||||||
Name="OneThousandMilestone";
|
Name="OneThousandMilestone";
|
||||||
|
InitCommand=cmd(visible,ShowFlashyCombo);
|
||||||
ToastyAchievedMessageCommand=cmd(playcommand,"Milestone");
|
ToastyAchievedMessageCommand=cmd(playcommand,"Milestone");
|
||||||
}; --]]
|
};
|
||||||
|
-- normal combo elements:
|
||||||
Def.ActorFrame {
|
Def.ActorFrame {
|
||||||
Name="ComboFrame";
|
Name="ComboFrame";
|
||||||
LoadFont( "Combo", "numbers" ) .. {
|
LoadFont( "Combo", "numbers" ) .. {
|
||||||
@@ -50,9 +56,13 @@ local t = Def.ActorFrame {
|
|||||||
else
|
else
|
||||||
return
|
return
|
||||||
end; --]]
|
end; --]]
|
||||||
--[[ TwentyFiveMilestoneCommand=function(self,parent)
|
TwentyFiveMilestoneCommand=function(self,parent)
|
||||||
(cmd(skewy,-0.125;decelerate,0.325;skewy,0))(self);
|
if ShowFlashyCombo then
|
||||||
|
(cmd(skewy,-0.125;decelerate,0.325;skewy,0))(self);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
--]]
|
||||||
|
--[[
|
||||||
ToastyAchievedMessageCommand=function(self,params)
|
ToastyAchievedMessageCommand=function(self,params)
|
||||||
if params.PlayerNumber == player then
|
if params.PlayerNumber == player then
|
||||||
(cmd(thump,2;effectclock,'beat'))(c.ComboFrame);
|
(cmd(thump,2;effectclock,'beat'))(c.ComboFrame);
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ UserPrefShowLotsaOptions=Options Density
|
|||||||
UserPrefAutoSetStyle=Auto Set Style
|
UserPrefAutoSetStyle=Auto Set Style
|
||||||
UserPrefLongFail=Fail Length
|
UserPrefLongFail=Fail Length
|
||||||
UserPrefComboOnRolls=Rolls Increment Combo
|
UserPrefComboOnRolls=Rolls Increment Combo
|
||||||
|
UserPrefFlashyCombo=Flashy Combo
|
||||||
[OptionExplanations]
|
[OptionExplanations]
|
||||||
UserPrefNotePosition=Determines where the arrow receptors are placed in gameplay.
|
UserPrefNotePosition=Determines where the arrow receptors are placed in gameplay.
|
||||||
UserPrefGameplayShowScore=Show or Hide the score display in gameplay.
|
UserPrefGameplayShowScore=Show or Hide the score display in gameplay.
|
||||||
@@ -71,6 +72,7 @@ UserPrefShowLotsaOptions=Choose how many lines/rows of options to choose from. &
|
|||||||
UserPrefAutoSetStyle=Allow the game to list all one player and two player modes at once instead of one style only. This might require a restart of StepMania\n( or alternatively hit F2! )
|
UserPrefAutoSetStyle=Allow the game to list all one player and two player modes at once instead of one style only. This might require a restart of StepMania\n( or alternatively hit F2! )
|
||||||
UserPrefLongFail=Choose between the original sm-ssc fail (Long) or the new sm-ssc fail (Short).
|
UserPrefLongFail=Choose between the original sm-ssc fail (Long) or the new sm-ssc fail (Short).
|
||||||
UserPrefComboOnRolls=Choose if rolls should increment the combo or not.
|
UserPrefComboOnRolls=Choose if rolls should increment the combo or not.
|
||||||
|
UserPrefFlashyCombo=Determine if combo flashes should be shown or not.
|
||||||
[StepsListDisplayRow StepsType]
|
[StepsListDisplayRow StepsType]
|
||||||
Dance_Single=4
|
Dance_Single=4
|
||||||
Dance_Double=8
|
Dance_Double=8
|
||||||
|
|||||||
@@ -22,6 +22,9 @@ function InitUserPrefs()
|
|||||||
if GetUserPrefB("UserPrefComboOnRolls") == nil then
|
if GetUserPrefB("UserPrefComboOnRolls") == nil then
|
||||||
SetUserPref("UserPrefComboOnRolls", false);
|
SetUserPref("UserPrefComboOnRolls", false);
|
||||||
end;
|
end;
|
||||||
|
if GetUserPrefB("FlashyCombos") == nil then
|
||||||
|
SetUserPref("FlashyCombos", false);
|
||||||
|
end;
|
||||||
--[[ if GetUserPref("ProTimingP1") == nil then
|
--[[ if GetUserPref("ProTimingP1") == nil then
|
||||||
SetUserPref("ProTimingP1", false);
|
SetUserPref("ProTimingP1", false);
|
||||||
end;
|
end;
|
||||||
@@ -350,4 +353,40 @@ function UserPrefComboOnRolls()
|
|||||||
setmetatable( t, t );
|
setmetatable( t, t );
|
||||||
return t;
|
return t;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function UserPrefFlashyCombo()
|
||||||
|
local t = {
|
||||||
|
Name = "UserPrefFlashyCombo";
|
||||||
|
LayoutType = "ShowAllInRow";
|
||||||
|
SelectType = "SelectOne";
|
||||||
|
OneChoiceForAllPlayers = true;
|
||||||
|
ExportOnChange = false;
|
||||||
|
Choices = { 'Off','On' };
|
||||||
|
LoadSelections = function(self, list, pn)
|
||||||
|
if ReadPrefFromFile("UserPrefFlashyCombo") ~= nil then
|
||||||
|
if GetUserPrefB("UserPrefFlashyCombo") then
|
||||||
|
list[2] = true;
|
||||||
|
else
|
||||||
|
list[1] = true;
|
||||||
|
end;
|
||||||
|
else
|
||||||
|
WritePrefToFile("UserPrefFlashyCombo",false);
|
||||||
|
list[1] = true;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
SaveSelections = function(self, list, pn)
|
||||||
|
local val;
|
||||||
|
if list[2] then
|
||||||
|
val = true;
|
||||||
|
else
|
||||||
|
val = false;
|
||||||
|
end;
|
||||||
|
WritePrefToFile("UserPrefFlashyCombo",val);
|
||||||
|
MESSAGEMAN:Broadcast("PreferenceSet", { Message == "Set Preference" } );
|
||||||
|
THEME:ReloadMetrics();
|
||||||
|
end;
|
||||||
|
};
|
||||||
|
setmetatable( t, t );
|
||||||
|
return t;
|
||||||
|
end
|
||||||
--[[ end option rows ]]
|
--[[ end option rows ]]
|
||||||
@@ -773,9 +773,10 @@ LinegAuto="lua,UserPrefAutoSetStyle()"
|
|||||||
LinegLongFail="lua,UserPrefLongFail()"
|
LinegLongFail="lua,UserPrefLongFail()"
|
||||||
|
|
||||||
[ScreenOptionsSystemDirection]
|
[ScreenOptionsSystemDirection]
|
||||||
LineNames="1,2,3,4,5,6,7,8,9,RollCombo,10,11,12,13,14,15,16,LF,17,18,19,20,21,22"
|
LineNames="1,2,3,4,5,6,7,8,9,FlashyCombo,RollCombo,10,11,12,13,14,15,16,LF,17,18,19,20,21,22"
|
||||||
LineLF="lua,UserPrefLongFail()"
|
LineLF="lua,UserPrefLongFail()"
|
||||||
LineRollCombo="lua,UserPrefComboOnRolls()"
|
LineRollCombo="lua,UserPrefComboOnRolls()"
|
||||||
|
LineFlashyCombo="lua,UserPrefFlashyCombo()"
|
||||||
|
|
||||||
[ScreenOptionsService]
|
[ScreenOptionsService]
|
||||||
ShowHeader=false
|
ShowHeader=false
|
||||||
|
|||||||
Reference in New Issue
Block a user