Added support for round avatars, added nine slice images, added rounded corners to a lot of stuff, tweaked theme.

This commit is contained in:
2026-04-16 23:39:16 -05:00
parent 4c283ee4d5
commit 95187f37f4
15 changed files with 68 additions and 25 deletions

View File

@@ -11,5 +11,15 @@ module W3DHubLauncher
WHITE_IMAGE
end
def rounded_avatar(image)
circle = get_image("./media/ui/circle.png")
scale = [(circle.width.to_f / image.width).abs, (circle.width.to_f / image.height).abs].min
Gosu.render(circle.width, circle.height) do
image.draw_rot(circle.width / 2, circle.height / 2, 0, 0, 0.5, 0.5, scale, scale)
circle.draw(0, 0, 1, 1, 1, 0xff_ffffff, :multiply)
end
end
end
end