Method: Lotu::TextBox#update

Defined in:
lib/lotu/text_box.rb

#updateObject



40
41
42
43
44
45
46
# File 'lib/lotu/text_box.rb', line 40

def update
  return if @hiding
  unless @attached_to.nil?
    @x = @attached_to.x + @attached_to.image.width / 2
    @y = @attached_to.y - @attached_to.image.height / 2
  end
end