mirror of
https://github.com/ppy/osu
synced 2024-12-29 10:22:43 +00:00
Add tags for current screen and ruleset
This commit is contained in:
parent
8c9edee360
commit
5ec05a8653
@ -1207,6 +1207,8 @@ namespace osu.Game
|
||||
Current = newScreen?.GetType().ReadableName(),
|
||||
Previous = current?.GetType().ReadableName(),
|
||||
};
|
||||
|
||||
scope.SetTag(@"screen", newScreen?.GetType().ReadableName() ?? @"none");
|
||||
});
|
||||
|
||||
switch (newScreen)
|
||||
|
@ -145,6 +145,7 @@ namespace osu.Game.Utils
|
||||
|
||||
scope.Contexts[@"ruleset"] = new
|
||||
{
|
||||
ruleset.ShortName,
|
||||
ruleset.Name,
|
||||
ruleset.InstantiationInfo,
|
||||
ruleset.OnlineID
|
||||
@ -155,6 +156,8 @@ namespace osu.Game.Utils
|
||||
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
|
||||
Game = game.Clock.CurrentTime,
|
||||
};
|
||||
|
||||
scope.SetTag(@"ruleset", ruleset.ShortName);
|
||||
});
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user