Don't allow Options on ExtraStage (might be fun later)
This commit is contained in:
@@ -26,6 +26,19 @@ function GetExtraColorThreshold()
|
|||||||
return Modes[CurGameName()]
|
return Modes[CurGameName()]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- AllowOptionsMenu()
|
||||||
|
-- [en] returns if you are able to select options
|
||||||
|
-- on ScreenSelectMusic.
|
||||||
|
function AllowOptionsMenu()
|
||||||
|
if GAMESTATE:IsAnExtraStage() then
|
||||||
|
return false
|
||||||
|
elseif GAMESTATE:GetPlayMode() == "PlayMode_Oni" then
|
||||||
|
return false
|
||||||
|
else
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- GameCompatibleModes:
|
-- GameCompatibleModes:
|
||||||
-- [en] returns possible modes for ScreenSelectPlayMode
|
-- [en] returns possible modes for ScreenSelectPlayMode
|
||||||
function GameCompatibleModes()
|
function GameCompatibleModes()
|
||||||
|
|||||||
@@ -2009,7 +2009,7 @@ OptionsListTimeout=0.25
|
|||||||
#
|
#
|
||||||
UsePlayerSelectMenu=false
|
UsePlayerSelectMenu=false
|
||||||
SelectMenuScreenName="ScreenPlayerOptions"
|
SelectMenuScreenName="ScreenPlayerOptions"
|
||||||
OptionsMenuAvailable=GAMESTATE:GetPlayMode() ~= "PlayMode_Oni"
|
OptionsMenuAvailable=AllowOptionsMenu()
|
||||||
SelectMenuAvailable=false
|
SelectMenuAvailable=false
|
||||||
ModeMenuAvailable=true
|
ModeMenuAvailable=true
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
local curScreen = Var "LoadingScreen";
|
local curScreen = Var "LoadingScreen";
|
||||||
local curStage = GAMESTATE:GetCurrentStage();
|
local curStage = GAMESTATE:GetCurrentStage();
|
||||||
local curStageIndex = GAMESTATE:GetCurrentStageIndex();
|
local curStageIndex = GAMESTATE:GetCurrentStageIndex();
|
||||||
|
|
||||||
local t = Def.ActorFrame {};
|
local t = Def.ActorFrame {};
|
||||||
|
|
||||||
t[#t+1] = Def.ActorFrame {
|
t[#t+1] = Def.ActorFrame {
|
||||||
@@ -22,7 +21,7 @@ t[#t+1] = Def.ActorFrame {
|
|||||||
self:zoom(1);
|
self:zoom(1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
--
|
-- StepMania is being stupid so we have to do this here;
|
||||||
self:diffuse(StageToColor(curStage));
|
self:diffuse(StageToColor(curStage));
|
||||||
self:diffusetopedge(ColorLightTone(StageToColor(curStage)));
|
self:diffusetopedge(ColorLightTone(StageToColor(curStage)));
|
||||||
end;
|
end;
|
||||||
|
|||||||
Reference in New Issue
Block a user