Sha256: 2e3cada66bb8301e4229357ad40eaf0599a120f4de1cb1052ccc79d1198107dd

Contents?: true

Size: 709 Bytes

Versions: 2

Compression:

Stored size: 709 Bytes

Contents

module Joybox
  module UI

    class MenuImage < CCMenuItemImage

      extend Joybox::Common::Initialize
      
      alias_method :sprite, :normalImage
      alias_method :selected_sprite, :selectedImage
      alias_method :disabled_sprite, :disabledImage
      alias_method :content_size, :contentSize

      def initialize(options = {}, &block)
        initWithNormalImage(options[:image_file_name],
                            selectedImage: options[:selected_image_file_name],
                            disabledImage: options[:disabled_image_file_name],
                            block: block)

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

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox/ui/menu_image.rb
joybox-1.1.0 motion/joybox/ui/menu_image.rb