mirror of
https://github.com/ppy/osu
synced 2025-01-12 09:09:44 +00:00
Use a constant for lazer variables
This commit is contained in:
parent
d8f45f7299
commit
115a75e4c6
@ -120,7 +120,7 @@ namespace osu.Desktop.Overlays
|
|||||||
|
|
||||||
Activated = delegate
|
Activated = delegate
|
||||||
{
|
{
|
||||||
changelog.ShowBuild("lazer", version);
|
changelog.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, version);
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
Version = "2018.712.0",
|
Version = "2018.712.0",
|
||||||
DisplayVersion = "2018.712.0",
|
DisplayVersion = "2018.712.0",
|
||||||
UpdateStream = new APIUpdateStream { Name = "lazer" },
|
UpdateStream = new APIUpdateStream { Name = OsuGameBase.CLIENT_STREAM_NAME },
|
||||||
ChangelogEntries = new List<APIChangelogEntry>
|
ChangelogEntries = new List<APIChangelogEntry>
|
||||||
{
|
{
|
||||||
new APIChangelogEntry
|
new APIChangelogEntry
|
||||||
|
@ -45,7 +45,7 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
case "cuttingedge":
|
case "cuttingedge":
|
||||||
return new Color4(238, 170, 0, 255);
|
return new Color4(238, 170, 0, 255);
|
||||||
|
|
||||||
case "lazer":
|
case OsuGameBase.CLIENT_STREAM_NAME:
|
||||||
return new Color4(237, 18, 33, 255);
|
return new Color4(237, 18, 33, 255);
|
||||||
|
|
||||||
case "web":
|
case "web":
|
||||||
|
@ -44,6 +44,8 @@ namespace osu.Game
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class OsuGameBase : Framework.Game, ICanAcceptFiles
|
public class OsuGameBase : Framework.Game, ICanAcceptFiles
|
||||||
{
|
{
|
||||||
|
public const string CLIENT_STREAM_NAME = "lazer";
|
||||||
|
|
||||||
protected OsuConfigManager LocalConfig;
|
protected OsuConfigManager LocalConfig;
|
||||||
|
|
||||||
protected BeatmapManager BeatmapManager;
|
protected BeatmapManager BeatmapManager;
|
||||||
|
@ -80,7 +80,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
if (game.IsDeployedBuild)
|
if (game.IsDeployedBuild)
|
||||||
{
|
{
|
||||||
changelog?.ShowBuild("lazer", game.Version);
|
changelog?.ShowBuild(OsuGameBase.CLIENT_STREAM_NAME, game.Version);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user