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:
2022-01-18 18:56:31 -06:00
parent 484c5891f4
commit 4996315aeb
2 changed files with 4 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ class W3DHub
body.clear do
# 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
# Game Menu
@@ -82,7 +82,7 @@ class W3DHub
# background 0xff_9999ff
# 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
if Store.application_manager.installed?(game.id, channel.id)

View File

@@ -1,3 +1,5 @@
ENV["SDL_VIDEO_ALLOW_SCREENSAVER"] = "1"
begin
require_relative "../cyberarm_engine/lib/cyberarm_engine"
rescue LoadError => e