Removed idea to have Tasks have a seperate step class; needless abstraction at this point, added manifest parser

This commit is contained in:
2021-11-15 19:22:09 -06:00
parent dae620ccbd
commit 1ab835ba98
14 changed files with 280 additions and 149 deletions

View File

@@ -61,8 +61,6 @@ class W3DHub
# Configure
# Disable install
# Enable Uninstall
get
end
end
end

View File

@@ -60,10 +60,10 @@ class W3DHub
flow(width: 1.0, height: 0.03) do
# background 0xff_444411
puts "Generating..."
inscription "Channel"
list_box items: game.channels.map { |c| c.name }, selected: channel, enabled: game.channels.count > 1, width: 128, padding_left: 4, padding_top: 2, padding_right: 4, padding_bottom: 2, text_size: 16 do |value|
list_box(items: game.channels.map { |c| c.name }, choose: channel.name, enabled: game.channels.count > 1,
margin_top: 0, margin_bottom: 0,
width: 128, padding_left: 1, padding_top: 1, padding_right: 1, padding_bottom: 1, text_size: 14) do |value|
populate_game_page(game, game.channels.find{ |c| c.name == value })
end
end

View File

@@ -40,7 +40,7 @@ class W3DHub
account = Api.user_login(@username.value, @password.value)
if account
@host.account = account
window.account = account
window.settings[:account][:refresh_token] = account.refresh_token
window.settings.save_settings
@@ -67,7 +67,7 @@ class W3DHub
end
end
if @host.account
if window.account
populate_account_info
page(W3DHub::Pages::Games)
end
@@ -77,17 +77,17 @@ class W3DHub
@host.instance_variable_get(:"@account_container").clear do
stack(width: 0.7, height: 1.0) do
# background 0xff_222222
tagline "<b>#{@host.account.username}</b>"
tagline "<b>#{window.account.username}</b>"
flow(width: 1.0) do
link("Logout", text_size: 16) { depopulate_account_info }
link "Profile", text_size: 16 do
Launchy.open("https://secure.w3dhub.com/forum/index.php?showuser=#{@host.account.id}")
Launchy.open("https://secure.w3dhub.com/forum/index.php?showuser=#{window.account.id}")
end
end
end
image Cache.path(@host.account.avatar_uri), height: 1.0
image Cache.path(window.account.avatar_uri), height: 1.0
end
end

View File

@@ -163,7 +163,7 @@ class W3DHub
end
stack(width: 1.0, height: 0.25) do
button "<b>Join Server</b>", enabled: window.application_manager.installed?(server.game)
button "<b>Join Server</b>", enabled: window.application_manager.installed?(server.game, window.applications.games.find { |g| g.id == server.game }.channels.first)
end
stack(width: 1.0, height: 0.55, margin_top: 16) do