Method: Core::GUI::Container#initialize

Defined in:
lib/gui/base.rb

#initialize(x, y, w, h, ch) ⇒ Container

ch = content element height



160
161
162
163
164
165
166
167
168
# File 'lib/gui/base.rb', line 160

def initialize(x, y, w, h, ch)
  super(x, y, w, h)
  @bg = Core.sprite("gui/container_background")
  @scrollbar = Scrollbar.new(x+w-24, y, 24, h)
  @ch = ch
  @items = []
  @item = nil
  @changed = false
end