Sha256: 965f1cdbfcfa69a879c89f5afe63353d8b754cac85a01bd97079b87c7151d7ba

Contents?: true

Size: 450 Bytes

Versions: 11

Compression:

Stored size: 450 Bytes

Contents

require 'sketchup.rb'

module <%= project.namespace %>

  unless file_loaded?(__FILE__)
    menu = UI.menu('Plugins').add_submenu(EXTENSION[:name])
    menu.add_item('Make Magic') { self.make_magic }
    menu.add_separator
    menu.add_item('Help...') { self.open_help }
    file_loaded(__FILE__)
  end

  def self.make_magic
    # Do magic here...
  end

  def self.open_help
    UI.openURL(EXTENSION[:url])
  end

end # module

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
skippy-0.5.2.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.5.1.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.5.0.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.4.3.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.4.2.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.4.1.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.4.0.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.3.0.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.2.0.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.1.1.a app/templates/standard/%ext_name%/main.rb.tt
skippy-0.1.0.a app/templates/standard/%ext_name%/main.rb.tt