Sha256: b03e07f1ecbeaea193dc2b82c8661089b65bdf166a47d434cfce44e8d98cef7a

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 Bytes

Contents

FelFlame::Components.new :Label, :x, :y, :text, :size_enum, :alignment_enum,
      :a, :r, :g, :b, :font, :vertical_alignment_enum, primative_marker: :label
=begin
class Components
  # A dragonruby label wrapper
  class Label < Helper::BaseComponent

    attr_accessor :x, :y, :text, :size_enum, :alignment_enum,
      :a, :r, :g, :b, :font, :vertical_alignment_enum

    def set(x: @x, y: @y, text: @text, size_enum: @size_enum, alignment_enum: @alignment_enum,
            a: @a, r: @r, g: @g, b: @b, font: @font, vertical_alignment_enum: @vertical_alignment_enum)
      {x: @x = x,
       y: @y = y,
       text: @text = text,
       size_enum: @size_enum = size_enum,
       alignment_enum: @alignment_enum = alignment_enum,
       r: @r = r,
       g: @g = g,
       b: @b = b,
       a: @a = a,
       font: @font = font,
       vertical_alignment_enum: @vertical_alignment_enum = vertical_alignment_enum }
    end

    def primative_marker
      :label
    end
  end
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
felflame-1.0.1 deprecated/components/02_label.rb
felflame-1.0.0 deprecated/components/02_label.rb