Updated dialogs and welcome screen

This commit is contained in:
2022-04-04 10:55:10 -05:00
parent 095edbbe36
commit b230ba88c8
4 changed files with 61 additions and 42 deletions

View File

@@ -8,8 +8,14 @@ class W3DHub
background 0x88_252525
@card_container = stack(width: 1.0, height: 1.0, margin: 128, padding: 16) do
background 0xff_252525
flow(width: 1.0, height: 1.0) do
flow(fill: true)
@card_container = stack(width: 1.0, max_width: MAX_PAGE_WIDTH, height: 1.0, max_height: 720, margin: 128, padding: 16) do
background 0xff_252525
end
flow(fill: true)
end
@card_container.clear do
@@ -18,14 +24,14 @@ class W3DHub
end
def card_welcome
stack(width: 1.0, height: 0.9) do
stack(width: 1.0, fill: true) do
banner "Welcome", width: 1.0, border_thickness_bottom: 4, border_color_bottom: 0xff_000000
title "Welcome to the #{I18n.t(:app_name_simple)}"
caption "The #{I18n.t(:app_name_simple)} is a one-stop shop for your W3D gaming needs, providing game downloads, automatic updating, an integrated server browser, and centralized management of in-game options.", width: 1.0, margin_left: 32
end
flow(width: 1.0, height: 0.1) do
stack(width: 0.83, height: 1.0) do
flow(width: 1.0, height: 40) do
stack(fill: true, height: 1.0) do
link "Skip", border_color_bottom: 0xff_777777 do
pop_state
end
@@ -38,7 +44,7 @@ class W3DHub
end
def card_getting_started
stack(width: 1.0, height: 0.9) do
stack(width: 1.0, fill: true) do
banner "Getting Started", width: 1.0, border_thickness_bottom: 4, border_color_bottom: 0xff_000000
title "Import C&C Renegade"
caption "You can import your installed copy of Renegade if it wasn't automatically imported from the Games tab. If you need to procure a copy of Renegade, EA's Origin Store has the Command & Conquer The Ultimate Collection available. We cannot provide Renegade for installation.", width: 1.0, margin_left: 32
@@ -49,8 +55,8 @@ class W3DHub
caption "Browse our selection of games from the left panel of the Games tab.\n• Interim Apex - Renegade but with hundreds of vehicles and characters.\n• Red Alert: A Path Beyond - DESCRIPTION\n• Tiberian Sun: Reborn - DESCRIPTION\n\nAnd more... Check out the left panel on the Games tab.", width: 1.0, margin_left: 32
end
flow(width: 1.0, height: 0.9) do
flow(width: 0.83, height: 1.0) do
flow(width: 1.0, height: 40) do
flow(fill: true, height: 1.0) do
button "< Back" do
@card_container.clear { card_welcome }
end
@@ -67,7 +73,7 @@ class W3DHub
end
def card_communitiy
stack(width: 1.0, height: 0.9) do
stack(width: 1.0, fill: true) do
banner "W3D Hub Community", width: 1.0, border_thickness_bottom: 4, border_color_bottom: 0xff_000000
title "Forums"
caption "Join our forum community", margin_left: 32
@@ -82,8 +88,8 @@ class W3DHub
caption "Subscribe to our YouTube channel", margin_left: 32
end
flow(width: 1.0, height: 0.1) do
flow(width: 0.83, height: 1.0) do
flow(width: 1.0, height: 40) do
flow(fill: true, height: 1.0) do
button "< Back" do
@card_container.clear { card_getting_started }
end