Method: Core::GUI::CharEquip#draw
- Defined in:
- lib/gui/char_equip.rb
#draw ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/gui/char_equip.rb', line 97 def draw super @bg.draw(@x, @y, Core::GUI_Z + 5, @w/@bg.width.to_f, @h/@bg.height.to_f) @body.draw(@x+32, @y+32, Core::GUI_Z + 6, (@w-64)/@body.width.to_f, (@h-64)/@body.height.to_f) @slots.each_value { |but| but.bg.draw(but.x, but.y, Core::GUI_Z + 10, 1, 1, @colors[but]) } @equipped.each_value { |el| el.draw } end |