mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Improved server list to show server release channel and to use correct channel for launch game, disable update interval manager due to current implementation being a bit janky looking
This commit is contained in:
@@ -42,7 +42,10 @@ class W3DHub
|
||||
end
|
||||
|
||||
def manage_update_interval
|
||||
return # Wait for #gain/lose_focus callbacks to be merged into Gosu
|
||||
|
||||
@last_interaction = Gosu.milliseconds if @last_mouse_position.x != mouse_x || @last_mouse_position.y != mouse_y
|
||||
@last_interaction = Gosu.milliseconds if mouse_x.between?(0, width) && mouse_y.between?(0, height)
|
||||
|
||||
self.update_interval = if Gosu.milliseconds - @last_interaction >= 1_000
|
||||
1000.0 / 10
|
||||
|
||||
Reference in New Issue
Block a user