Class: Core::Game::Combat::SelectSpell

Inherits:
Core::GUI::Window show all
Defined in:
lib/game/combat/gui/select_spell.rb

Instance Attribute Summary collapse

Attributes inherited from Core::GUI::Window

#close, #h, #parent, #state, #w, #x, #xoff, #y, #yoff, #zoff

Instance Method Summary collapse

Methods inherited from Core::GUI::Window

#[], #add, #close!, #draw, #empty, #get, #include?, #remove?, #save_pos, #title=, #update

Constructor Details

#initialize(x, y, actor) ⇒ SelectSpell

Returns a new instance of SelectSpell.



8
9
10
11
12
13
14
15
16
17
# File 'lib/game/combat/gui/select_spell.rb', line 8

def initialize(x, y, actor)
  super(x, y, 384, 256, Core::Trans.menu(:select_spell), true, "gui/container_background", true)
  @close.proc = lambda { close!; @parent.abort_action(actor) }
  save_pos(:combat_gui_spell_select_window_x, :combat_gui_spell_select_window_y)
  add(:container, Core::GUI::Container.new(8, 8, 184, 240, 24))
  add(:info, Core::GUI::Textfield.new(200, 8, 176, 240, ""))
  @actor = actor
  setup_skill_select
  @selected = nil
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



6
7
8
# File 'lib/game/combat/gui/select_spell.rb', line 6

def actor
  @actor
end

#selectedObject (readonly)

Returns the value of attribute selected.



6
7
8
# File 'lib/game/combat/gui/select_spell.rb', line 6

def selected
  @selected
end