Added background image for whole Interface, made user avatar rounded, redid news layout, misc. tweaks for better contrast with background image

This commit is contained in:
2024-02-27 22:17:17 -06:00
parent 6281dae1a5
commit c2528f7e12
9 changed files with 64 additions and 89 deletions

View File

@@ -105,7 +105,15 @@ class W3DHub
flow(fill: true, height: 1.0) do
flow(fill: true) # Fill empty space to push image over to container edge
image Cache.path(Store.account.avatar_uri), height: 1.0
avatar_image = get_image(Cache.path(Store.account.avatar_uri))
mask_image = get_image("#{GAME_ROOT_PATH}/media/textures/circle_mask.png")
composite_image = Gosu.render(256, 256) do
avatar_image.draw(0, 0, 0)
mask_image.draw(0, 0, 1, 1, 1, 0xff_ffffff, :multiply)
end
image composite_image, width: 1.0
end
end
end