Sha256: f4c86695c6ed62f1899cf9f07a74242fc02b8ccd25863c44c4b1d0eb53c06c03
Contents?: true
Size: 591 Bytes
Versions: 3
Compression:
Stored size: 591 Bytes
Contents
require_relative 'menu_item.rb' class Menu def initialize (window) @window = window @items = Array.new end def add_item (object, x, y, z, callback, hover_image = nil, options = {}) item = MenuItem.new(@window, object, x, y, z, callback, hover_image, options) @items << item self end def draw @items.each do |i| i.draw end end def update @items.each do |i| i.update end end def clicked @items.each do |i| i.clicked end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
line-em-up-0.4.0 | line-em-up/models/menu.rb |
line-em-up-0.3.6 | line-em-up/models/menu.rb |
line-em-up-0.3.5 | line-em-up/models/menu.rb |