mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix most warnings.
This commit is contained in:
@ -16,8 +16,7 @@ using osu.Framework.Graphics.Colour;
|
||||
|
||||
namespace osu.Game.Graphics.Cursor
|
||||
{
|
||||
|
||||
class CursorTrail : Drawable
|
||||
internal class CursorTrail : Drawable
|
||||
{
|
||||
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||
public override bool HandleInput => true;
|
||||
@ -46,7 +45,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
{
|
||||
base.ApplyDrawNode(node);
|
||||
|
||||
TrailDrawNode tNode = node as TrailDrawNode;
|
||||
TrailDrawNode tNode = (TrailDrawNode)node;
|
||||
tNode.Shader = shader;
|
||||
tNode.Texture = texture;
|
||||
tNode.Size = size;
|
||||
@ -117,7 +116,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
float distance = diff.Length;
|
||||
Vector2 direction = diff / distance;
|
||||
|
||||
float interval = (size.X / 2) * 0.9f;
|
||||
float interval = size.X / 2 * 0.9f;
|
||||
|
||||
for (float d = interval; d < distance; d += interval)
|
||||
{
|
||||
@ -137,7 +136,7 @@ namespace osu.Game.Graphics.Cursor
|
||||
currentIndex = (currentIndex + 1) % max_sprites;
|
||||
}
|
||||
|
||||
struct TrailPart
|
||||
private struct TrailPart
|
||||
{
|
||||
public Vector2 Position;
|
||||
public float Time;
|
||||
@ -145,12 +144,12 @@ namespace osu.Game.Graphics.Cursor
|
||||
public bool WasUpdated;
|
||||
}
|
||||
|
||||
class TrailDrawNodeSharedData
|
||||
private class TrailDrawNodeSharedData
|
||||
{
|
||||
public VertexBuffer<TexturedVertex2D> VertexBuffer;
|
||||
}
|
||||
|
||||
class TrailDrawNode : DrawNode
|
||||
private class TrailDrawNode : DrawNode
|
||||
{
|
||||
public Shader Shader;
|
||||
public Texture Texture;
|
||||
|
Reference in New Issue
Block a user