Updated gems, implemented game settings (works best with scripts 5.1 games)

This commit is contained in:
2023-11-19 12:42:54 -06:00
parent 8972561f5f
commit d83a439ad1
10 changed files with 761 additions and 14 deletions

26
lib/states/dialog.rb Normal file
View 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