Class: Core::Game::Combat::SelectSpell
- Inherits:
-
Core::GUI::Window
- Object
- Core::GUI::Window
- Core::Game::Combat::SelectSpell
- Defined in:
- lib/game/combat/gui/select_spell.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#selected ⇒ Object
readonly
Returns the value of attribute selected.
Attributes inherited from Core::GUI::Window
#close, #h, #parent, #state, #w, #x, #xoff, #y, #yoff, #zoff
Instance Method Summary collapse
-
#initialize(x, y, actor) ⇒ SelectSpell
constructor
A new instance of SelectSpell.
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.(: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
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
6 7 8 |
# File 'lib/game/combat/gui/select_spell.rb', line 6 def actor @actor end |
#selected ⇒ Object (readonly)
Returns the value of attribute selected.
6 7 8 |
# File 'lib/game/combat/gui/select_spell.rb', line 6 def selected @selected end |