Skip to content

Commit

Permalink
misc: 还是将结算屏幕算作游玩状态吧
Browse files Browse the repository at this point in the history
misc: 一些调整
  • Loading branch information
MATRIX-feather committed Feb 25, 2024
1 parent b4db5e0 commit 3db7673
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ private void updateFileSupporters(BeatmapSetInfo setInfo, WorkingBeatmap beatmap

dataRoot.MenuValues.GosuBeatmapInfo.Path.BackgroundPath = defaultVal;
dataRoot.MenuValues.GosuBeatmapInfo.Path.BgPath = defaultVal;
updateStatics();
return;
}

Expand All @@ -175,18 +176,22 @@ private void updateFileSupporters(BeatmapSetInfo setInfo, WorkingBeatmap beatmap
//Logger.Log("~~~BOARDCAST IS " + boardcast);
dataRoot.MenuValues.GosuBeatmapInfo.Path.BackgroundPath = boardcast;
dataRoot.MenuValues.GosuBeatmapInfo.Path.BgPath = boardcast;

try
{
var server = Hub.GetWsLoader()?.Server;
server?.RemoveStaticContent(staticRoot());
server?.AddStaticContent(staticRoot(), "/Songs");
}
catch (Exception e)
{
Logging.LogError(e, "Unable to add cache");
}
updateStatics();
});
});
}

private void updateStatics()
{
try
{
var server = Hub.GetWsLoader()?.Server;
server?.RemoveStaticContent(staticRoot());
server?.AddStaticContent(staticRoot(), "/Songs");
}
catch (Exception e)
{
Logging.LogError(e, "Unable to add cache");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ private void onResultsScreen(ResultsScreen results)

dataRoot.MenuValues.OsuState = OsuStates.IDLE;
this.resultsScreen = results;
Hub.GetDataRoot().MenuValues.OsuState = OsuStates.PLAYING;

if (score == null) return;

Expand Down

0 comments on commit 3db7673

Please sign in to comment.