Compare commits

...

3 Commits

Author SHA1 Message Date
0a800d1a31 Tweaks 2022-05-03 20:00:32 -05:00
a90bb30fc0 Unify border color 2022-05-03 19:06:13 -05:00
c20f34de41 Made game options container have a darkened color and edge border to stand out more 2022-05-03 11:40:47 -05:00
6 changed files with 14 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ class W3DHub
body.clear do
# Games List
@games_list_container = stack(width: 0.15, max_width: 148, height: 1.0, scroll: true, border_thickness_right: 1, border_color_right: 0xff_656565) do
@games_list_container = stack(width: 0.15, max_width: 148, height: 1.0, scroll: true, border_thickness_right: 1, border_color_right: W3DHub::BORDER_COLOR) do
end
# Game Menu

View File

@@ -14,7 +14,7 @@ class W3DHub
body.clear do
stack(width: 1.0, height: 1.0) do
# Games List
@games_list_container = flow(width: 1.0, height: 64, scroll: true, border_thickness_bottom: 1, border_color_bottom: 0xff_656565, padding_left: 32, padding_right: 32) do
@games_list_container = flow(width: 1.0, height: 64, scroll: true, border_thickness_bottom: 1, border_color_bottom: W3DHub::BORDER_COLOR, padding_left: 32, padding_right: 32) do
end
# Game Menu
@@ -83,8 +83,8 @@ class W3DHub
# background 0xff_9999ff
# Game options
stack(width: 360, height: 1.0, padding: 8, scroll: true) do
# background 0xff_550055
stack(width: 360, height: 1.0, padding: 8, scroll: true, border_thickness_right: 1, border_color_right: W3DHub::BORDER_COLOR) do
background 0x55_000000
# Game Banner
image_path = "#{GAME_ROOT_PATH}/media/banners/#{game.id}.png"

View File

@@ -25,7 +25,7 @@ class W3DHub
@task_index = 0
stack(width: 1.0, height: 1.0, border_thickness: 1, border_color: 0xff_aaaaaa) do
stack(width: 1.0, height: 1.0, border_thickness: 1, border_color: W3DHub::BORDER_COLOR) do
stack(width: 1.0, fill: true) do
end

View File

@@ -27,10 +27,10 @@ class W3DHub
theme(W3DHub::THEME)
@interface_container = stack(width: 1.0, height: 1.0, border_thickness: 1, border_color: 0xff_656565) do
@interface_container = stack(width: 1.0, height: 1.0, border_thickness: 1, border_color: W3DHub::BORDER_COLOR) do
background 0xff_252525
@header_container = flow(width: 1.0, height: 84, padding: 4, border_thickness_bottom: 1, border_color_bottom: 0xff_656565) do
@header_container = flow(width: 1.0, height: 84, padding: 4, border_thickness_bottom: 1, border_color_bottom: W3DHub::BORDER_COLOR) do
flow(width: 148, height: 1.0) do
flow(fill: true)
image "#{GAME_ROOT_PATH}/media/icons/app.png", height: 84

View File

@@ -2,6 +2,8 @@ class W3DHub
REGULAR_FONT = "#{GAME_ROOT_PATH}/media/fonts/NotoSans-Regular.ttf"
BOLD_FONT = "#{GAME_ROOT_PATH}/media/fonts/NotoSans-Bold.ttf"
BORDER_COLOR = W3DHUB_DEVELOPER ? 0xff_ff8844 : 0xff_656565
MAX_PAGE_WIDTH = 1200
TESTING_BUTTON = {
@@ -70,6 +72,10 @@ class W3DHub
Progress: {
fraction_background: 0xff_00acff,
border_thickness: 0
},
ListBox: {
padding_left: 8,
padding_right: 8
}
}
end

View File

@@ -8,6 +8,7 @@ require "logger"
class W3DHub
W3DHUB_DEBUG = ARGV.join.include?("--debug")
W3DHUB_DEVELOPER = ARGV.join.include?("--developer")
GAME_ROOT_PATH = File.expand_path(".", __dir__)
CACHE_PATH = "#{GAME_ROOT_PATH}/data/cache"