mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-15 16:52:34 +00:00
30 lines
592 B
Ruby
30 lines
592 B
Ruby
class W3DHub
|
|
class Window < CyberarmEngine::Window
|
|
attr_reader :settings, :application_manager
|
|
attr_accessor :account, :service_status, :applications
|
|
|
|
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
|