mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Get the game running, though not perfectly
This commit is contained in:
@ -26,12 +26,6 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
protected override IFrameBasedClock Clock => localClock;
|
protected override IFrameBasedClock Clock => localClock;
|
||||||
|
|
||||||
[Initializer]
|
|
||||||
private void Load()
|
|
||||||
{
|
|
||||||
// TODO: Do we even need this here?
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Reset()
|
public override void Reset()
|
||||||
{
|
{
|
||||||
base.Reset();
|
base.Reset();
|
||||||
|
@ -52,7 +52,7 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
foreach (HitObject h in b.HitObjects)
|
foreach (HitObject h in b.HitObjects)
|
||||||
{
|
{
|
||||||
if (h.NewCombo) i = (i + 1) % colours.Count;
|
if (h.NewCombo || i == -1) i = (i + 1) % colours.Count;
|
||||||
h.Colour = colours[i];
|
h.Colour = colours[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,4 +45,4 @@ namespace osu.Game.Graphics.Containers
|
|||||||
content.Scale = new Vector2(1 + ParallaxAmount);
|
content.Scale = new Vector2(1 + ParallaxAmount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,18 +37,6 @@ namespace osu.Game
|
|||||||
|
|
||||||
public readonly Bindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
|
public readonly Bindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
|
||||||
|
|
||||||
public OsuGameBase()
|
|
||||||
{
|
|
||||||
AddInternal(ratioContainer = new RatioAdjust());
|
|
||||||
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
Cursor = new OsuCursorContainer { Depth = float.MaxValue }
|
|
||||||
};
|
|
||||||
|
|
||||||
Beatmap.ValueChanged += Beatmap_ValueChanged;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Beatmap_ValueChanged(object sender, EventArgs e)
|
private void Beatmap_ValueChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -57,8 +45,20 @@ namespace osu.Game
|
|||||||
private void Load()
|
private void Load()
|
||||||
{
|
{
|
||||||
Dependencies.Cache(this);
|
Dependencies.Cache(this);
|
||||||
Dependencies.Cache<OsuConfigManager>();
|
Dependencies.Cache<OsuConfigManager>(new OsuConfigManager(Host.Storage));
|
||||||
Dependencies.Cache(new BeatmapDatabase(Host.Storage, Host));
|
Dependencies.Cache(new BeatmapDatabase(Host.Storage, Host));
|
||||||
|
|
||||||
|
AddInternal(ratioContainer = new RatioAdjust());
|
||||||
|
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
Options = new OptionsOverlay(),
|
||||||
|
Cursor = new OsuCursorContainer { Depth = float.MaxValue }
|
||||||
|
};
|
||||||
|
|
||||||
|
Dependencies.Cache(Options);
|
||||||
|
|
||||||
|
Beatmap.ValueChanged += Beatmap_ValueChanged;
|
||||||
|
|
||||||
OszArchiveReader.Register();
|
OszArchiveReader.Register();
|
||||||
|
|
||||||
@ -80,12 +80,12 @@ namespace osu.Game
|
|||||||
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Black"));
|
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-Black"));
|
||||||
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-BlackItalic"));
|
Fonts.AddStore(new GlyphStore(Resources, @"Fonts/Exo2.0-BlackItalic"));
|
||||||
|
|
||||||
API = new APIAccess()
|
Dependencies.Cache(API = new APIAccess
|
||||||
{
|
{
|
||||||
Username = Config.Get<string>(OsuConfig.Username),
|
Username = Config.Get<string>(OsuConfig.Username),
|
||||||
Password = Config.Get<string>(OsuConfig.Password),
|
Password = Config.Get<string>(OsuConfig.Password),
|
||||||
Token = Config.Get<string>(OsuConfig.Token)
|
Token = Config.Get<string>(OsuConfig.Token)
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SetHost(BasicGameHost host)
|
public override void SetHost(BasicGameHost host)
|
||||||
|
Reference in New Issue
Block a user