Sha256: 44f1c33a13ba6bfe91a1ed955ae89859da136e68edc2db84f25f6273baa3480f

Contents?: true

Size: 445 Bytes

Versions: 17

Compression:

Stored size: 445 Bytes

Contents

require 'sketchup.rb'

module Example::HelloWorld

  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

17 entries across 9 versions & 1 rubygems

Version Path
skippy-0.5.2.a fixtures/my_project/src/hello_world/main.rb
skippy-0.5.2.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.5.1.a fixtures/my_project/src/hello_world/main.rb
skippy-0.5.1.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.5.0.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.5.0.a fixtures/my_project/src/hello_world/main.rb
skippy-0.4.3.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.4.3.a fixtures/my_project/src/hello_world/main.rb
skippy-0.4.2.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.4.2.a fixtures/my_project/src/hello_world/main.rb
skippy-0.4.1.a fixtures/my_project/src/hello_world/main.rb
skippy-0.4.1.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.4.0.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.4.0.a fixtures/my_project/src/hello_world/main.rb
skippy-0.3.0.a fixtures/my_project/src/hello_world/main.rb
skippy-0.3.0.a fixtures/project_with_lib/src/hello_world/main.rb
skippy-0.2.0.a fixtures/my_project/src/hello_world/main.rb