mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user