Fixes for recent changes to cyberarm_engine

This commit is contained in:
2026-04-23 10:11:19 -05:00
parent a856dd5dd4
commit fac24245d0
3 changed files with 6 additions and 12 deletions

View File

@@ -95,8 +95,8 @@ class W3DHub
# para game.name, width: 1.0, text_align: :center
end
def game_button.hit_element?(x, y)
self if hit?(x, y)
def game_button.hit_element?(x, y, elements = [])
elements << self if hit?(x, y)
end
game_button.subscribe(:clicked_left_mouse_button) do
@@ -386,10 +386,8 @@ class W3DHub
caption game.name, margin_top: 8
end
def container.hit_element?(x, y)
return unless hit?(x, y)
self
def container.hit_element?(x, y, elements = [])
elements << self if hit?(x, y)
end
container.subscribe(:clicked_left_mouse_button) do |element|

View File

@@ -54,10 +54,8 @@ class W3DHub
if @filters[app_id]
img.style.color = 0xff_ffffff
img.style.default[:color] = 0xff_ffffff
else
img.style.color = 0xff_444444
img.style.default[:color] = 0xff_444444
end
populate_server_list
@@ -339,8 +337,8 @@ class W3DHub
end
end
def server_container.hit_element?(x, y)
self if hit?(x, y)
def server_container.hit_element?(x, y, elements = [])
elements << self if hit?(x, y)
end
server_container.subscribe(:clicked_left_mouse_button) do

View File

@@ -45,7 +45,6 @@ class W3DHub
c = W3DHub::THEME[:Button][:border_color]
@prompt_entry.style.border_color = c
@prompt_entry.style.default[:border_color] = c
@prompt_entry.style.hover[:border_color] = c
@prompt_entry.style.active[:border_color] = c
@@ -54,7 +53,6 @@ class W3DHub
c = 0xff_ff0000
@prompt_entry.style.border_color = c
@prompt_entry.style.default[:border_color] = c
@prompt_entry.style.hover[:border_color] = c
@prompt_entry.style.active[:border_color] = c