mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-15 21:32:35 +00:00
Redesigning TCT
This commit is contained in:
45
lib/page.rb
Normal file
45
lib/page.rb
Normal file
@@ -0,0 +1,45 @@
|
||||
module TAC
|
||||
class Page
|
||||
include CyberarmEngine::DSL
|
||||
include CyberarmEngine::Common
|
||||
|
||||
attr_reader :menu_bar, :status_bar, :body
|
||||
|
||||
def initialize(host:, header_bar_label:, menu_bar:, status_bar:, body:)
|
||||
@host = host
|
||||
@header_bar_label = header_bar_label
|
||||
@menu_bar = menu_bar
|
||||
@status_bar = status_bar
|
||||
@body = body
|
||||
end
|
||||
|
||||
def page(klass)
|
||||
@host.page(klass)
|
||||
end
|
||||
|
||||
def header_bar(text)
|
||||
@header_bar_label.value = text
|
||||
end
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def focus
|
||||
end
|
||||
|
||||
def blur
|
||||
end
|
||||
|
||||
def draw
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
def button_down(id)
|
||||
end
|
||||
|
||||
def button_up(id)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user