Sha256: 1ee37c80fe0c8730afad866cc2f936d790e18b95e798b991e5e7d1a98fed2e47

Contents?: true

Size: 706 Bytes

Versions: 5

Compression:

Stored size: 706 Bytes

Contents

module Joybox
  module UI

    class Menu < CCMenu

      alias_method :align_items_vertically, :alignItemsVertically
      alias_method :align_items_vertically_width_padding, :alignItemsVerticallyWithPadding
      alias_method :align_items_horizontally, :alignItemsHorizontally
      alias_method :align_items_horizontally_with_padding, :alignItemsHorizontallyWithPadding
      alias_method :align_items_in_columns, :alignItemsInColumns
      alias_method :align_items_in_rows, :alignItemsInRows

      def self.new(options = {})

        menu = self.menuWithArray(options[:items])

        menu.position = options[:position] if options.has_key? (:position)

        menu
      end

    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
joybox-1.0.0 motion/joybox/ui/menu.rb
joybox-0.0.6 motion/joybox/ui/menu.rb
joybox-0.0.5 lib/joybox/cocos2d/ui/menu.rb
joybox-0.0.4 lib/joybox/cocos2d/ui/menu.rb
joybox-0.0.3 lib/joybox/cocos2d/ui/menu.rb