mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
29 lines
533 B
Ruby
29 lines
533 B
Ruby
class W3DHub
|
|
class Window < CyberarmEngine::Window
|
|
attr_reader :settings, :application_manager
|
|
|
|
def setup
|
|
self.caption = "#{W3DHub::NAME}"
|
|
|
|
@settings = Settings.new
|
|
@application_manager = ApplicationManager.new
|
|
|
|
@settings.save_settings
|
|
|
|
push_state(W3DHub::States::Boot)
|
|
end
|
|
|
|
def close
|
|
@settings.save_settings
|
|
|
|
super if @application_manager.idle?
|
|
end
|
|
|
|
def button_down(id)
|
|
super
|
|
|
|
self.borderless = !self.borderless? if id == Gosu::KB_F7
|
|
end
|
|
end
|
|
end
|