Show update available icon on Games page next to the games icon

This commit is contained in:
2021-12-06 10:03:04 -06:00
parent a7a5b98955
commit a6c194b762

View File

@@ -33,7 +33,9 @@ class W3DHub
background game.color if selected background game.color if selected
flow(width: 1.0, height: 48) do flow(width: 1.0, height: 48) do
stack(width: 0.3) stack(width: 0.3) do
image "#{GAME_ROOT_PATH}/media/ui_icons/return.png", width: 1.0, color: Gosu::Color::GRAY if Store.application_manager.updateable?(game.id, game.channels.first.id)
end
image "#{GAME_ROOT_PATH}/media/icons/#{game.id}.png", height: 48, color: Store.application_manager.installed?(game.id, game.channels.first.id) ? 0xff_ffffff : 0xee_444444 image "#{GAME_ROOT_PATH}/media/icons/#{game.id}.png", height: 48, color: Store.application_manager.installed?(game.id, game.channels.first.id) ? 0xff_ffffff : 0xee_444444
end end
inscription game.name, width: 1.0, text_align: :center inscription game.name, width: 1.0, text_align: :center