From ec3ebeb4b810b8922fd7526180c747de521d871b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 19 Feb 2024 05:46:43 +0100 Subject: [PATCH] kinda works --- hui/src/draw.rs | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/hui/src/draw.rs b/hui/src/draw.rs index 2a8329a..062df34 100644 --- a/hui/src/draw.rs +++ b/hui/src/draw.rs @@ -201,16 +201,24 @@ impl UiDrawPlan { } //Fill in the rest //mental illness 2: - // swapper.current_mut().indices.extend([ - // //Top - // // vidx, - // // vidx + 1 + (rounded_corner_verts - 1), - // // vidx + 1, - // //Right?, i think - // vidx, - // vidx + 1 + (rounded_corner_verts - 1) * 4 + 1, - // vidx + 1 + 1, - // ]); + swapper.current_mut().indices.extend([ + //Top + vidx, + vidx + 1 + (rounded_corner_verts - 1), + vidx + 1, + //Right?, i think + vidx, + vidx + 1 + (rounded_corner_verts - 1) * 4, + vidx + 1 + (rounded_corner_verts - 1) * 4 + 1, + //Left??? + vidx, + vidx + 1 + (rounded_corner_verts - 1) * 4 + 2, + vidx + 1 + (rounded_corner_verts - 1) * 4 + 3, + //Bottom??? + vidx, + vidx + 3, + vidx + 2, + ]); } else { swapper.current_mut().indices.extend([vidx, vidx + 1, vidx + 2, vidx, vidx + 2, vidx + 3]); swapper.current_mut().vertices.extend([