mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Updated gems, implemented game settings (works best with scripts 5.1 games)
This commit is contained in:
26
lib/states/dialog.rb
Normal file
26
lib/states/dialog.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
class W3DHub
|
||||
class States
|
||||
class Dialog < CyberarmEngine::GuiState
|
||||
def draw
|
||||
previous_state&.draw
|
||||
|
||||
Gosu.flush
|
||||
|
||||
super
|
||||
end
|
||||
|
||||
def update
|
||||
super
|
||||
|
||||
return unless window.current_state == self
|
||||
|
||||
window.states.reverse.each do |state|
|
||||
# Don't update ourselves, forever
|
||||
next if state == self && state.is_a?(CyberarmEngine::GuiState)
|
||||
|
||||
state.update
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user