Sha256: 9f4685e591335d8302327d0533c04cae76af46907ec1c7a2aab9628b6f0deef3

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

class TextPresenter < Straightedge::Presenter
  def display(label)
    #text = label.is_a?(String) ? label : label.text
    #puts "--- drawing text '#{label.text}' at #{label.x}, #{label.y} with color #{label.color}"
    @surface.font.draw(label.text, label.x, label.y, ZOrder::UI, 1.0, 1.0, Straightedge::Colors.hex_value(label.color))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
straightedge-gosu-0.1.0 lib/straightedge/gosu/presenters/text_presenter.rb