In dance mode, ScreenSelectProfile doesn't work; fix that. I assume this will have to happen a few more times with other gametypes.

This commit is contained in:
AJ Kelly
2010-05-02 10:29:34 -05:00
parent bff6eb0469
commit 027880c5d1
3 changed files with 7 additions and 5 deletions
@@ -207,7 +207,7 @@ local t = Def.ActorFrame {
SCREENMAN:GetTopScreen():Finish(); SCREENMAN:GetTopScreen():Finish();
end; end;
end; end;
if params.Name == 'Up' then if params.Name == 'Up' or params.Name == 'Up2' then
if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then
local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber); local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber);
if ind > 1 then if ind > 1 then
@@ -218,7 +218,7 @@ local t = Def.ActorFrame {
end; end;
end; end;
end; end;
if params.Name == 'Down' then if params.Name == 'Down' or params.Name == 'Down2' then
if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then
local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber); local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber);
if ind > 0 then if ind > 0 then
+3 -1
View File
@@ -1511,9 +1511,11 @@ StartScreen=Branch.AfterSelectProfile()
# #
TimerSeconds=40 TimerSeconds=40
# #
CodeNames="Up,Down,Start,Back" CodeNames=SelectProfileKeys()
CodeUp="+MenuUp" CodeUp="+MenuUp"
CodeUp2="+Up"
CodeDown="+MenuDown" CodeDown="+MenuDown"
CodeDown2="+Down"
CodeStart="Start" CodeStart="Start"
CodeBack="Back" CodeBack="Back"
@@ -202,7 +202,7 @@ local t = Def.ActorFrame {
SCREENMAN:GetTopScreen():Finish(); SCREENMAN:GetTopScreen():Finish();
end; end;
end; end;
if params.Name == 'Up' then if params.Name == 'Up' or params.Name == 'Up2' then
if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then
local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber); local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber);
if ind > 1 then if ind > 1 then
@@ -213,7 +213,7 @@ local t = Def.ActorFrame {
end; end;
end; end;
end; end;
if params.Name == 'Down' then if params.Name == 'Down' or params.Name == 'Down2' then
if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then if GAMESTATE:IsHumanPlayer(params.PlayerNumber) then
local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber); local ind = SCREENMAN:GetTopScreen():GetProfileIndex(params.PlayerNumber);
if ind > 0 then if ind > 0 then