diff --git a/lib/pages/games.rb b/lib/pages/games.rb index 5b99848..ccadac9 100644 --- a/lib/pages/games.rb +++ b/lib/pages/games.rb @@ -123,7 +123,6 @@ class W3DHub background_image_path = Cache.package_path(game.category, game.id, "background.png", "") if File.exist?(background_image_path) States::Interface.instance&.instance_variable_get(:"@interface_container")&.style&.background_image = get_image(background_image_path) - States::Interface.instance&.instance_variable_get(:"@interface_container")&.style&.default[:background_image] = get_image(background_image_path) end # Game Stuff diff --git a/lib/pages/server_browser.rb b/lib/pages/server_browser.rb index 383760d..751aa39 100644 --- a/lib/pages/server_browser.rb +++ b/lib/pages/server_browser.rb @@ -271,9 +271,8 @@ class W3DHub def stylize_selected_server(server_container) server_container.style.background = @selected_color - server_container.style.default[:background] = @selected_color - server_container.style.hover[:background] = @selected_color - server_container.style.active[:background] = @selected_color + server_container.style.hover.background = @selected_color + server_container.style.active.background = @selected_color end def reorder_server_list @@ -284,11 +283,11 @@ class W3DHub end.reverse!.each_with_index do |child, i| next if @selected_server_container && child == @selected_server_container - child.style.hover[:background] = 0xaa_555566 - child.style.hover[:active] = 0xaa_555588 + child.style.hover.background = 0xaa_555566 + child.style.active.background = 0xaa_555588 - child.style.default[:background] = 0xaa_333333 if i.even? - child.style.default[:background] = 0x00_000000 if i.odd? + child.style.background = 0xaa_333333 if i.even? + child.style.background = 0x00_000000 if i.odd? end @server_list_container.recalculate diff --git a/lib/states/interface.rb b/lib/states/interface.rb index 1f37d1b..547c544 100644 --- a/lib/states/interface.rb +++ b/lib/states/interface.rb @@ -60,25 +60,21 @@ class W3DHub link I18n.t(:"interface.servers").upcase, text_size: 34, font: BOLD_FONT, margin_left: 12 do @interface_container.style.background_image = DEFAULT_BACKGROUND_IMAGE - @interface_container.style.default[:background_image] = DEFAULT_BACKGROUND_IMAGE page(W3DHub::Pages::ServerBrowser) end link I18n.t(:"interface.community").upcase, text_size: 34, font: BOLD_FONT, margin_left: 12 do @interface_container.style.background_image = DEFAULT_BACKGROUND_IMAGE - @interface_container.style.default[:background_image] = DEFAULT_BACKGROUND_IMAGE page(W3DHub::Pages::Community) end link I18n.t(:"interface.downloads").upcase, text_size: 34, font: BOLD_FONT, margin_left: 12 do @interface_container.style.background_image = DEFAULT_BACKGROUND_IMAGE - @interface_container.style.default[:background_image] = DEFAULT_BACKGROUND_IMAGE page(W3DHub::Pages::DownloadManager) end link I18n.t(:"interface.settings").upcase, text_size: 34, font: BOLD_FONT, margin_left: 12 do @interface_container.style.background_image = DEFAULT_BACKGROUND_IMAGE - @interface_container.style.default[:background_image] = DEFAULT_BACKGROUND_IMAGE page(W3DHub::Pages::Settings) end end