Skip to content

Commit

Permalink
improve multi branching for til death
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 29, 2018
1 parent 5ba071e commit e97af08
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Themes/Til Death/Scripts/02 Branches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function SMOnlineScreen()
return "ScreenSMOnlineLogin"
end
end
if not IsSMOnlineLoggedIn(pn) then
return "ScreenSMOnlineLogin"
end
return "ScreenNetRoom"
end

Expand Down Expand Up @@ -133,8 +136,8 @@ Branch = {
if not IsSMOnlineLoggedIn(PLAYER_1) then
return "ScreenNetSelectProfile"
else
return "ScreenNetRoom"
end
return "ScreenNetRoom" -- cant do this, we need to select a local profile even
end -- if logged into smo -mina
else
return "ScreenNetworkOptions"
end
Expand Down Expand Up @@ -291,6 +294,9 @@ Branch = {
if PROFILEMAN:GetProfile(1):GetDisplayName() == "" then -- this is suuuuper hacky and will mess with people using "" as display names, but they're idiots anyway -mina
return "ScreenTitleMenu"
end
if IsSMOnlineLoggedIn(PLAYER_1) then
return "ScreenNetSelectMusic"
end
return "ScreenSelectMusic"
end
}
3 changes: 3 additions & 0 deletions Themes/Til Death/metrics.ini
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,9 @@ LineHelpMenu="lua,HelpMenu()"
LineNPSWindow="lua,NPSWindow()"
LineMeasureLines="lua,MeasureLines()"

[ScreenNetworkOptions]
NextScreen=Branch.MultiScreen()

[ScreenThemeColorChange]
Fallback="ScreenTextEntry"

Expand Down
2 changes: 1 addition & 1 deletion src/ScreenNetworkOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ ScreenNetworkOptions::ExportOptions(int /* iRow */,
void
ScreenNetworkOptions::UpdateConnectStatus()
{
SCREENMAN->SetNewScreen(m_sName);
SCREENMAN->SetNewScreen(THEME->GetMetric(m_sName, "NextScreen"));
}
#endif

Expand Down

0 comments on commit e97af08

Please sign in to comment.