-
Notifications
You must be signed in to change notification settings - Fork 0
/
clf_blockly_loader.rb
68 lines (48 loc) · 2.11 KB
/
clf_blockly_loader.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
=begin
Original work Copyright 2013, Chris Fullmer
All Rights Reserved
Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
License
???
Information
Author - Google and tweaked for SU by Chris Fullmer
Organization - www.ChrisFullmer.com and distributed on the SketchUp Extension Warehouse and smustard.com
Name - SketchUp Blockly
SU Version - 2014, 2013, 8, 7
Description
Info needed
Usage
Info needed
History::
1.0:: 2014-1-29
* Began work
=end
module CLF_Extensions_NS
module CLF_Blockly #EDIT
require 'sketchup.rb'
require 'extensions.rb'
NAME = "clf_blockly" #EDIT
UNAME = "CLF Blockly" #EDIT
MENU_NAME = "Blockly Programming" #EDIT
version = "0.1.0" #EDIT
desc = "This is blockly"
copy_year = "2014"
author = "Google, tweaked for SketchUp by Chris Fullmer"
#------edit above---------------------------------------------------------------
extension = SketchupExtension.new UNAME, NAME+"/"+NAME+"_menus.rb"
#The name= method sets the name which appears for an extension inside the Extensions Manager dialog.
extension.name = UNAME
# The description= method sets the long description which appears beneath an extension inside the Extensions Manager dialog.
extension.description = desc + " Access it via Plugins > Chris Fullmer Tools > "+MENU_NAME
# The version method sets the version which appears beneath an extension inside the Extensions Manager dialog.
extension.version = version
# Create an entry in the Extension list that loads a script called
# stairTools.rb.
extension.copyright = copy_year
# The creator= method sets the creator string which appears beneath an extension inside the Extensions Manager dialog.
extension.creator = author
# The register_extension method is used to register an extension with SketchUp's extension manager (in SketchUp preferences).
Sketchup.register_extension( extension, true )
end
end