thanks for reply, I followed your instructions but still does not work
I think my inexperience with stepmania made something does not work haha I did this:
in BGAnimations/ScreenTitleJoin overlay/Default.lua :
local t = Def.ActorFrame{
LoadActor("press_start")..{
InitCommand=cmd(CenterX;y,SCREEN_CENTER_Y+172);
BeginCommand=cmd(playcommand,"Set");
SetCommand=function(self)
-- check for free play, event mode
local coinMode = GAMESTATE:GetCoinMode()
if coinMode == 'CoinMode_Free' then
self:visible(true)
else
self:visible(GAMESTATE:EnoughCreditsToJoin())
end
end;
OnCommand=cmd(diffuseblink);
CoinInsertedMessageCommand=cmd(playcommand,"Set");
};
};
Def.Actor{
CodeMessageCommand= function(self, param)
Trace("Code entered by " .. param.PlayerNumber .. " is: " .. param.Name)
if param.Name == "Options" then
local top_screen= SCREENMAN:GetTopScreen()
top_screen:SetNextScreenName("ScreenOptionsHome")
top_screen:StartTransitioningScreen("SM_GoToNextScreen")
end
end
}
return t;
I just made a change in ScreenOptions2 as it was initially for go to ScreenOptionsHome.
And metrics theme:
[ScreenTitleJoin]
CodeNames="Options"
CodeOptions="Left,Down,Right,Up"
just that.
but did not work, then I made 2 lua in ScreenTitleJoin overlay with codes separately:
ScreenTitleJoin overlay/Default.lua :
local t = Def.ActorFrame{
LoadActor("press_start")..{
InitCommand=cmd(CenterX;y,SCREEN_CENTER_Y+172);
BeginCommand=cmd(playcommand,"Set");
SetCommand=function(self)
-- check for free play, event mode
local coinMode = GAMESTATE:GetCoinMode()
if coinMode == 'CoinMode_Free' then
self:visible(true)
else
self:visible(GAMESTATE:EnoughCreditsToJoin())
end
end;
OnCommand=cmd(diffuseblink);
CoinInsertedMessageCommand=cmd(playcommand,"Set");
};
};
return t;
ScreenTitleJoin overlay/Options.lua :
local t = Def.Actor{
CodeMessageCommand= function(self, param)
Trace("Code entered by " .. param.PlayerNumber .. " is: " .. param.Name)
if param.Name == "Options" then
local top_screen= SCREENMAN:GetTopScreen()
top_screen:SetNextScreenName("ScreenOptionsHome")
top_screen:StartTransitioningScreen("SM_GoToNextScreen")
end
end
}
return t;
But not work :/
I probably did something wrong, but i don't know what can be u_u