mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-05-06 17:38:18 +00:00
Fixes for recent changes to cyberarm_engine
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user