mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Removed idea to have Tasks have a seperate step class; needless abstraction at this point, added manifest parser
This commit is contained in:
@@ -61,8 +61,6 @@ class W3DHub
|
||||
# Configure
|
||||
# Disable install
|
||||
# Enable Uninstall
|
||||
|
||||
get
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user