mirror of
https://github.com/ppy/osu
synced 2025-01-01 11:52:20 +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(),
|
Current = newScreen?.GetType().ReadableName(),
|
||||||
Previous = current?.GetType().ReadableName(),
|
Previous = current?.GetType().ReadableName(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scope.SetTag(@"screen", newScreen?.GetType().ReadableName() ?? @"none");
|
||||||
});
|
});
|
||||||
|
|
||||||
switch (newScreen)
|
switch (newScreen)
|
||||||
|
@ -145,6 +145,7 @@ namespace osu.Game.Utils
|
|||||||
|
|
||||||
scope.Contexts[@"ruleset"] = new
|
scope.Contexts[@"ruleset"] = new
|
||||||
{
|
{
|
||||||
|
ruleset.ShortName,
|
||||||
ruleset.Name,
|
ruleset.Name,
|
||||||
ruleset.InstantiationInfo,
|
ruleset.InstantiationInfo,
|
||||||
ruleset.OnlineID
|
ruleset.OnlineID
|
||||||
@ -155,6 +156,8 @@ namespace osu.Game.Utils
|
|||||||
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
|
Audio = game.Dependencies.Get<MusicController>().CurrentTrack.CurrentTime,
|
||||||
Game = game.Clock.CurrentTime,
|
Game = game.Clock.CurrentTime,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scope.SetTag(@"ruleset", ruleset.ShortName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user