kinda works

This commit is contained in:
griffi-gh 2024-02-19 05:46:43 +01:00
parent fa5b89b3ec
commit ec3ebeb4b8

View file

@ -201,16 +201,24 @@ impl UiDrawPlan {
} }
//Fill in the rest //Fill in the rest
//mental illness 2: //mental illness 2:
// swapper.current_mut().indices.extend([ swapper.current_mut().indices.extend([
// //Top //Top
// // vidx, vidx,
// // vidx + 1 + (rounded_corner_verts - 1), vidx + 1 + (rounded_corner_verts - 1),
// // vidx + 1, vidx + 1,
// //Right?, i think //Right?, i think
// vidx, vidx,
// vidx + 1 + (rounded_corner_verts - 1) * 4 + 1, vidx + 1 + (rounded_corner_verts - 1) * 4,
// vidx + 1 + 1, 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 { } else {
swapper.current_mut().indices.extend([vidx, vidx + 1, vidx + 2, vidx, vidx + 2, vidx + 3]); swapper.current_mut().indices.extend([vidx, vidx + 1, vidx + 2, vidx, vidx + 2, vidx + 3]);
swapper.current_mut().vertices.extend([ swapper.current_mut().vertices.extend([