From fc3874657348bde6ce7e3fab625c92dfec91baaa Mon Sep 17 00:00:00 2001 From: Sarah Bradley Date: Sun, 17 Dec 2023 23:31:40 -0800 Subject: Added Window Scaling, custom mouse, and Neko nametags --- Drawable.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Drawable.cs') diff --git a/Drawable.cs b/Drawable.cs index 0f89de9..0f74a1c 100644 --- a/Drawable.cs +++ b/Drawable.cs @@ -5,6 +5,8 @@ namespace OnekoOnline; abstract class Drawable : IDisposable { + protected int DrawOrder = 0; + public Vector2 Position { get => _position; set => _position = value.Round(); @@ -19,7 +21,7 @@ abstract class Drawable : IDisposable public static void DrawAll() { float delta = Raylib.GetFrameTime(); - foreach (Drawable drawable in Drawables.OrderBy(d => d.Position.Y)) { + foreach (Drawable drawable in Drawables.OrderBy(d => d.Position.Y + d.DrawOrder*1000)) { drawable?.Update(delta); drawable?.Draw(); } -- cgit