1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Replaced osu.Game.Graphics.Cursor.CursorContainer.cs with osu.Framework.Graphics.Cursor.CursorContainer.cs

This commit is contained in:
Remie Richards 2016-09-17 22:11:27 +01:00
parent 4754c0e2d1
commit f2fa9f611a
3 changed files with 1 additions and 38 deletions

View File

@ -1,36 +0,0 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Drawables;
using osu.Framework.Input;
using OpenTK;
namespace osu.Game.Graphics.Cursor
{
class CursorContainer : LargeContainer
{
private Cursor cursor;
public CursorContainer()
{
Add(cursor = new Cursor());
}
protected override bool OnMouseMove(InputState state)
{
cursor.Position = GetLocalPosition(state.Mouse.Position);
return base.OnMouseMove(state);
}
class Cursor : Box
{
public Cursor()
{
Size = new Vector2(5, 5);
Origin = Anchor.Centre;
}
}
}
}

View File

@ -5,12 +5,12 @@ using System;
using System.Collections.Generic;
using osu.Game.Configuration;
using osu.Game.GameModes.Menu;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.Processing;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using OpenTK;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Textures;
using osu.Framework.IO.Stores;

View File

@ -51,7 +51,6 @@
<Compile Include="Graphics\Containers\OsuComponent.cs" />
<Compile Include="Graphics\Containers\OsuGameMode.cs" />
<Compile Include="Graphics\Containers\OsuLargeComponent.cs" />
<Compile Include="Graphics\Cursor\CursorContainer.cs" />
<Compile Include="Graphics\Processing\RatioAdjust.cs" />
<Compile Include="Graphics\TextAwesome.cs" />
<Compile Include="Online\API\APIAccess.cs" />