Depends on ScreenWithMenuElementsBlank.
This screen is reponsible for automating the process of loading the profiles in a safe manner.
Only a metric is used here to toggle a setting:
# Can be true or false.
LoadEdits=true
LoadEdits
will allow the game to load chart or song edits that originate from the user's memory card. Use that to toggle the behaviour.
By default the screen will act as a middle man to load up the contents, and takes about 0.1 seconds to finish processing all necessary information before moving on (Any extra time can be due to In/Out and/or actor animations).
The screen contains a function to Continue
, which will begin the process of loading the profiles. By using this logic, you can effectively create your ScreenProfileLoad screen and call the function on a different point in time via a command, rather than running the command as soon as the In transition is out.
SCREENMAN:GetTopScreen():Continue()
Continue
Runs the profile loading process and exits to the next screen when done.
OnCommand=function(self)
SCREENMAN:GetTopScreen():Continue()
end
HaveProfileToLoad
Returns true if there are any profiles available that need to be loaded.
OnCommand=function(self)
local haveProfiles = SCREENMAN:GetTopScreen():HaveProfileToLoad()
if haveProfiles then
SCREENMAN:GetTopScreen():Continue()
end
end