Method: CyberarmEngine::Element::Container#initialize
- Defined in:
- lib/cyberarm_engine/ui/elements/container.rb
#initialize(options = {}, block = nil) ⇒ Container
Returns a new instance of Container.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/cyberarm_engine/ui/elements/container.rb', line 19 def initialize( = {}, block = nil) @gui_state = .delete(:gui_state) super @last_scroll_position = Vector.new(0, 0) @scroll_position = Vector.new(0, 0) @scroll_target_position = Vector.new(0, 0) @scroll_chunk = 120 @scroll_speed = 40 @text_color = [:color] @children = [] event(:window_size_changed) end |