mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Fixed display of events- events that have ended will not be displayed, and the event container now takes the full width
This commit is contained in:
@@ -484,12 +484,14 @@ class W3DHub
|
|||||||
return unless @focused_game == game
|
return unless @focused_game == game
|
||||||
|
|
||||||
if (events = @game_events[game.id])
|
if (events = @game_events[game.id])
|
||||||
|
events = events.select { |e| e.end_time > Time.now.utc }
|
||||||
|
|
||||||
@game_events_container.show unless events.empty?
|
@game_events_container.show unless events.empty?
|
||||||
@game_events_container.hide if events.empty?
|
@game_events_container.hide if events.empty?
|
||||||
|
|
||||||
@game_events_container.clear do
|
@game_events_container.clear do
|
||||||
events.flatten.each do |event|
|
events.flatten.each do |event|
|
||||||
stack(width: 300, height: 1.0, margin_left: 8, margin_right: 8, border_thickness: 1, border_color: lighten(Gosu::Color.new(game.color))) do
|
stack(width: 1.0, height: 1.0, margin_left: 8, margin_right: 8, border_thickness: 1, border_color: lighten(Gosu::Color.new(game.color))) do
|
||||||
background 0xaa_222222
|
background 0xaa_222222
|
||||||
|
|
||||||
title event.title, width: 1.0, text_align: :center
|
title event.title, width: 1.0, text_align: :center
|
||||||
|
|||||||
Reference in New Issue
Block a user