mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Made games list and game menu scrollable, added ENV["SDL_VIDEO_ALLOW_SCREENSAVER"] to enable system to sleep when idle with launcher still open
This commit is contained in:
@@ -8,7 +8,7 @@ class W3DHub
|
|||||||
|
|
||||||
body.clear do
|
body.clear do
|
||||||
# Games List
|
# Games List
|
||||||
@games_list_container = stack(width: 0.15, height: 1.0) do
|
@games_list_container = stack(width: 0.15, height: 1.0, scroll: true) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Game Menu
|
# Game Menu
|
||||||
@@ -82,7 +82,7 @@ class W3DHub
|
|||||||
# background 0xff_9999ff
|
# background 0xff_9999ff
|
||||||
|
|
||||||
# Game options
|
# Game options
|
||||||
stack(width: 0.25, height: 1.0, padding: 8) do
|
stack(width: 0.25, height: 1.0, padding: 8, scroll: true) do
|
||||||
# background 0xff_550055
|
# background 0xff_550055
|
||||||
|
|
||||||
if Store.application_manager.installed?(game.id, channel.id)
|
if Store.application_manager.installed?(game.id, channel.id)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
ENV["SDL_VIDEO_ALLOW_SCREENSAVER"] = "1"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
require_relative "../cyberarm_engine/lib/cyberarm_engine"
|
||||||
rescue LoadError => e
|
rescue LoadError => e
|
||||||
|
|||||||
Reference in New Issue
Block a user