mako 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -7
- data/bin/mako +1 -1
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/Question.as +6 -4
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/Question.as +2 -0
- metadata +123 -133
- data/lib/mako/data/html/thistest.html +0 -0
- data/lib/mako/data/template_creator/src/Creator.mxml +0 -138
- data/lib/mako/data/template_creator/src/assets/images/RichTextEditor.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/DefaultError.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barbgfill.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barshadow.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bold.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bullets.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/center.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/close-x.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/fullscreenPopup_close.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/importIcon.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/italic.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/justify.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/left.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-delete.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-edit.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/pencil.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/right.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/underline.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/styles/creatorStyle.css +0 -63
- data/lib/mako/data/template_creator/src/assets/materia/styles/style.css +0 -1127
- data/lib/mako/data/template_creator/src/assets/materia/swf/embeddedfonts.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/helpBubble.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/videobg.swf +0 -0
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditor.mxml +0 -678
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditorToolbar.mxml +0 -133
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ODRjYTY0OGEyY2Y1NmM3NmJiY2NiNmNjOTMwYWRkYjU1NDY5NmFjYQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDg2ZGMwZDRmOWQ5MzI3ZTU5ZTFiZjhlMWUxM2ZjOGExNDRmOTFmMg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZTU3OWFiYjE3YTBmNjZlZTA5NDgyZGQ2OTcwZmZjNjM5MjJjN2FlNjc4M2Vk
|
10
|
+
MjBlMWI0YTY4MmEzYjE4YzA0MWY2NTcxNmU1M2ZhZTM0MDY5OTg1NGJjMDdk
|
11
|
+
MmZhZTY4Y2I4OWU4ZmYyNDk1MWE0NDQ5ODhkNGFlNzlmZDYxODQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTI5MGFiMzc4ZWYwMDM3MWNmZTBkNDFkZThhYWI3NTZlMGVjMTlkYmUzZDZm
|
14
|
+
NjY5MDlmOGYzNDJiYzVkY2EyYzFiNjk1NWNkYTdkYzE1N2Y1M2JmMjI2NDJk
|
15
|
+
NjBjZTFiYjAxY2ZkYzBkYWMxMDlmZmZlOTJkMDQwMzdkNDBlNmQ=
|
data/bin/mako
CHANGED
@@ -7,6 +7,7 @@ public class Question
|
|
7
7
|
public static const MC_QUESTION:String = "MC";
|
8
8
|
public static const QA_QUESTION:String = "QA";
|
9
9
|
public static const SO_QUESTION:String = "SO"; // Short answer type. Are we using this?
|
10
|
+
public var materiaType:String = 'question';
|
10
11
|
public var answers:Array;
|
11
12
|
public var id:Number;
|
12
13
|
public var questions:Array;
|
@@ -77,9 +78,9 @@ public class Question
|
|
77
78
|
}
|
78
79
|
q.type = obj["type"];
|
79
80
|
q.id = obj["id"];
|
80
|
-
q.assets = [];
|
81
81
|
if( obj["assets"] )
|
82
82
|
{
|
83
|
+
q.assets = [];
|
83
84
|
for( i = 0; i< obj["assets"].length; i++)
|
84
85
|
{
|
85
86
|
q.assets.push(obj["assets"][i]);
|
@@ -144,11 +145,12 @@ public class Question
|
|
144
145
|
var o:Object = new Object();
|
145
146
|
o["questions"] = questions;
|
146
147
|
o["answers"] = answers;
|
147
|
-
o["name"] = name;
|
148
|
-
o["options"] = options;
|
149
148
|
o["type"] = type;
|
150
149
|
o["id"] = id;
|
151
|
-
|
150
|
+
o["materiaType"] = materiaType
|
151
|
+
if (assets != null) o["assets"] = assets;
|
152
|
+
if (options != null) o["options"] = options;
|
153
|
+
if (name != null) o["name"] = name;
|
152
154
|
return o;
|
153
155
|
}
|
154
156
|
public function get correctAnswer():String
|
@@ -7,12 +7,14 @@ package nm.gameServ.common
|
|
7
7
|
public static const MC_QUESTION:String = "MC";
|
8
8
|
public static const QA_QUESTION:String = "QA";
|
9
9
|
public static const SO_QUESTION:String = "SO";
|
10
|
+
public var materiaType:String = 'question';
|
10
11
|
public var id:Number;
|
11
12
|
public var type:String;
|
12
13
|
public var questions:Array;
|
13
14
|
public var answers:Array;
|
14
15
|
public var options:Object;
|
15
16
|
public var assets:Array = [];
|
17
|
+
|
16
18
|
public function Question(type:String = QA_QUESTION, options:Object = null, id:Number = 0){
|
17
19
|
this.type = type
|
18
20
|
this.id = id;
|
metadata
CHANGED
@@ -1,116 +1,151 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mako
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- Ian Turgeon
|
8
8
|
- Kevin Baugh
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: colorize
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Version
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
22
20
|
version: 0.5.8
|
23
21
|
type: :runtime
|
24
|
-
version_requirements: *id001
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: trollop
|
27
22
|
prerelease: false
|
28
|
-
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version:
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.5.8
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: trollop
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '2.0'
|
33
35
|
type: :runtime
|
34
|
-
version_requirements: *id002
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: yui-compressor
|
37
36
|
prerelease: false
|
38
|
-
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '2.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: yui-compressor
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - '='
|
47
|
+
- !ruby/object:Gem::Version
|
42
48
|
version: 0.9.6
|
43
49
|
type: :runtime
|
44
|
-
version_requirements: *id003
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: rubyzip
|
47
50
|
prerelease: false
|
48
|
-
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 0.9.6
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rubyzip
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '='
|
61
|
+
- !ruby/object:Gem::Version
|
52
62
|
version: 0.9.9
|
53
63
|
type: :runtime
|
54
|
-
version_requirements: *id004
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: therubyracer
|
57
64
|
prerelease: false
|
58
|
-
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.9.9
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: therubyracer
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '='
|
75
|
+
- !ruby/object:Gem::Version
|
62
76
|
version: 0.11.4
|
63
77
|
type: :runtime
|
64
|
-
version_requirements: *id005
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: coffee-script-source
|
67
78
|
prerelease: false
|
68
|
-
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.11.4
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: coffee-script-source
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '='
|
89
|
+
- !ruby/object:Gem::Version
|
72
90
|
version: 1.6.2
|
73
91
|
type: :runtime
|
74
|
-
version_requirements: *id006
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: coffee-script
|
77
92
|
prerelease: false
|
78
|
-
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.6.2
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: coffee-script
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '='
|
103
|
+
- !ruby/object:Gem::Version
|
82
104
|
version: 2.2.0
|
83
105
|
type: :runtime
|
84
|
-
version_requirements: *id007
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: sass
|
87
106
|
prerelease: false
|
88
|
-
|
89
|
-
requirements:
|
90
|
-
- -
|
91
|
-
- !ruby/object:Gem::Version
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 2.2.0
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: sass
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '='
|
117
|
+
- !ruby/object:Gem::Version
|
92
118
|
version: 3.2.8
|
93
119
|
type: :runtime
|
94
|
-
version_requirements: *id008
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: less
|
97
120
|
prerelease: false
|
98
|
-
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 3.2.8
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: less
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - '='
|
131
|
+
- !ruby/object:Gem::Version
|
102
132
|
version: 2.3.2
|
103
133
|
type: :runtime
|
104
|
-
|
105
|
-
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 2.3.2
|
140
|
+
description: Compiles widgets and creates scaffolds for Materia run by Learning Systems
|
141
|
+
and Technologies which is part of the Center for Distributed Learning at the University
|
142
|
+
of Central Florida.
|
106
143
|
email: newmedia@ucf.edu
|
107
|
-
executables:
|
144
|
+
executables:
|
108
145
|
- mako
|
109
146
|
extensions: []
|
110
|
-
|
111
147
|
extra_rdoc_files: []
|
112
|
-
|
113
|
-
files:
|
148
|
+
files:
|
114
149
|
- lib/mako/build.rb
|
115
150
|
- lib/mako/data/flash_widget_dev_core/Dependencies.txt
|
116
151
|
- lib/mako/data/flash_widget_dev_core/libs/Degrafa_.2.11.swc
|
@@ -432,48 +467,7 @@ files:
|
|
432
467
|
- lib/mako/data/flash_widget_dev_core/src/sandy/util/DistortImage.as
|
433
468
|
- lib/mako/data/flash_widget_dev_core/src/sandy/util/SandyPoint.as
|
434
469
|
- lib/mako/data/flash_widget_dev_core/src/sandy/util/Triangle.as
|
435
|
-
- lib/mako/data/html/thistest.html
|
436
470
|
- lib/mako/data/strings.yaml
|
437
|
-
- lib/mako/data/template_creator/src/assets/images/RichTextEditor.png
|
438
|
-
- lib/mako/data/template_creator/src/assets/materia/images/barbgfill.png
|
439
|
-
- lib/mako/data/template_creator/src/assets/materia/images/barshadow.png
|
440
|
-
- lib/mako/data/template_creator/src/assets/materia/images/bold.png
|
441
|
-
- lib/mako/data/template_creator/src/assets/materia/images/bullets.png
|
442
|
-
- lib/mako/data/template_creator/src/assets/materia/images/center.png
|
443
|
-
- lib/mako/data/template_creator/src/assets/materia/images/close-x.png
|
444
|
-
- lib/mako/data/template_creator/src/assets/materia/images/DefaultError.png
|
445
|
-
- lib/mako/data/template_creator/src/assets/materia/images/fullscreenPopup_close.png
|
446
|
-
- lib/mako/data/template_creator/src/assets/materia/images/importIcon.png
|
447
|
-
- lib/mako/data/template_creator/src/assets/materia/images/italic.png
|
448
|
-
- lib/mako/data/template_creator/src/assets/materia/images/justify.png
|
449
|
-
- lib/mako/data/template_creator/src/assets/materia/images/left.png
|
450
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-href-disabled.png
|
451
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-href.png
|
452
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink-disabled.png
|
453
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink.png
|
454
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-delete.png
|
455
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-disabled.png
|
456
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-edit.png
|
457
|
-
- lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip.png
|
458
|
-
- lib/mako/data/template_creator/src/assets/materia/images/pencil.png
|
459
|
-
- lib/mako/data/template_creator/src/assets/materia/images/right.png
|
460
|
-
- lib/mako/data/template_creator/src/assets/materia/images/underline.png
|
461
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayButton.png
|
462
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton.png
|
463
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton_over.png
|
464
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton.png
|
465
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton_over.png
|
466
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton.png
|
467
|
-
- lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton_over.png
|
468
|
-
- lib/mako/data/template_creator/src/assets/materia/styles/creatorStyle.css
|
469
|
-
- lib/mako/data/template_creator/src/assets/materia/styles/style.css
|
470
|
-
- lib/mako/data/template_creator/src/assets/materia/swf/embeddedfonts.swf
|
471
|
-
- lib/mako/data/template_creator/src/assets/materia/swf/helpBubble.swf
|
472
|
-
- lib/mako/data/template_creator/src/assets/materia/swf/kogneatoSymbols.swf
|
473
|
-
- lib/mako/data/template_creator/src/assets/materia/swf/videobg.swf
|
474
|
-
- lib/mako/data/template_creator/src/components/SmallRichTextEditor.mxml
|
475
|
-
- lib/mako/data/template_creator/src/components/SmallRichTextEditorToolbar.mxml
|
476
|
-
- lib/mako/data/template_creator/src/Creator.mxml
|
477
471
|
- lib/mako/data/templates/html/_creator/build.yaml
|
478
472
|
- lib/mako/data/templates/html/_creator/creator.html
|
479
473
|
- lib/mako/data/templates/html/_creator/css/creator.less
|
@@ -507,29 +501,25 @@ files:
|
|
507
501
|
- bin/mako
|
508
502
|
homepage: http://ucfcdl.github.io/Materia
|
509
503
|
licenses: []
|
510
|
-
|
511
504
|
metadata: {}
|
512
|
-
|
513
505
|
post_install_message:
|
514
506
|
rdoc_options: []
|
515
|
-
|
516
|
-
require_paths:
|
507
|
+
require_paths:
|
517
508
|
- lib
|
518
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
519
|
-
requirements:
|
520
|
-
-
|
521
|
-
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
509
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
510
|
+
requirements:
|
511
|
+
- - ! '>='
|
512
|
+
- !ruby/object:Gem::Version
|
513
|
+
version: '0'
|
514
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
515
|
+
requirements:
|
516
|
+
- - ! '>='
|
517
|
+
- !ruby/object:Gem::Version
|
518
|
+
version: '0'
|
527
519
|
requirements: []
|
528
|
-
|
529
520
|
rubyforge_project:
|
530
|
-
rubygems_version: 2.0.
|
521
|
+
rubygems_version: 2.0.7
|
531
522
|
signing_key:
|
532
523
|
specification_version: 4
|
533
524
|
summary: Compiles widgets and creates scaffolds for Materia
|
534
525
|
test_files: []
|
535
|
-
|
File without changes
|
@@ -1,138 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<materia:CreatorBase xmlns:mx="http://www.adobe.com/2006/mxml"
|
3
|
-
xmlns:materia="materia.*"
|
4
|
-
xmlns:questionAnswerDataGrid="materia.components.questionAnswerDataGrid.*"
|
5
|
-
xmlns:ns1="assets.*"
|
6
|
-
xmlns:components="components.*"
|
7
|
-
width="100%" height="100%"
|
8
|
-
backgroundColor="#3B3E40"
|
9
|
-
horizontalScrollPolicy="off"
|
10
|
-
verticalScrollPolicy="off" >
|
11
|
-
|
12
|
-
<mx:Script>
|
13
|
-
<![CDATA[
|
14
|
-
import materia.questionStorage.*;
|
15
|
-
|
16
|
-
//--------------------------------------------------------------------------
|
17
|
-
//
|
18
|
-
// Variables
|
19
|
-
//
|
20
|
-
//--------------------------------------------------------------------------
|
21
|
-
|
22
|
-
// declare variables here
|
23
|
-
|
24
|
-
//--------------------------------------------------------------------------
|
25
|
-
//
|
26
|
-
// Overridden methods
|
27
|
-
//
|
28
|
-
//--------------------------------------------------------------------------
|
29
|
-
|
30
|
-
/**
|
31
|
-
* Called when creating a new game (not called when editing)
|
32
|
-
*/
|
33
|
-
public override function initNewWidget():void
|
34
|
-
{
|
35
|
-
super.initNewWidget();
|
36
|
-
customizeDatagrid();
|
37
|
-
}
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Called after init() when game is edited (loaded with a qset)
|
41
|
-
*/
|
42
|
-
public override function initExistingWidget(qsetObject:QuestionGroup):void
|
43
|
-
{
|
44
|
-
super.initExistingWidget(qsetObject);
|
45
|
-
customizeDatagrid();
|
46
|
-
|
47
|
-
// load data from the qset into the creator
|
48
|
-
if (qsetObject.kids.length)
|
49
|
-
{
|
50
|
-
for (var i:int = 0; i < qsetObject.kids[0].kids.length; i++)
|
51
|
-
{
|
52
|
-
questionInputList.addQuestion(qsetObject.kids[0].kids[i], false);
|
53
|
-
}
|
54
|
-
}
|
55
|
-
titleField.text = qsetObject.name;
|
56
|
-
}
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Customize the datagrid to taylor to the given widget
|
60
|
-
*/
|
61
|
-
public function customizeDatagrid():void
|
62
|
-
{
|
63
|
-
// questionInputList.rowHeight = 60;
|
64
|
-
}
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Called when the game is saved with intention to publish.
|
68
|
-
*/
|
69
|
-
public override function getQSetForPublish():Object
|
70
|
-
{
|
71
|
-
return getQSetForSave();
|
72
|
-
}
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Called when the game is saved.
|
76
|
-
*/
|
77
|
-
public override function getQSetForSave():Object
|
78
|
-
{
|
79
|
-
var qSet:QuestionSet = new QuestionSet(titleField.text)
|
80
|
-
var qGroup:QuestionGroup = questionInputList.generateQGroup(titleField.text);
|
81
|
-
qGroup.name = titleField.text;
|
82
|
-
qSet.addGroup(qGroup as QuestionGroup);
|
83
|
-
return qSet;
|
84
|
-
}
|
85
|
-
|
86
|
-
/**
|
87
|
-
* Called once for each question that was selected to be imported.
|
88
|
-
*/
|
89
|
-
public override function addImportedQuestion(question:Question):Question
|
90
|
-
{
|
91
|
-
// TODO: build a tool that will automatically determine if questions will keep their QID
|
92
|
-
questionInputList.addQuestion(question);
|
93
|
-
return null;
|
94
|
-
}
|
95
|
-
|
96
|
-
//--------------------------------------------------------------------------
|
97
|
-
//
|
98
|
-
// Methods
|
99
|
-
//
|
100
|
-
//--------------------------------------------------------------------------
|
101
|
-
|
102
|
-
/**
|
103
|
-
* Check to make sure we have valid info everywhere
|
104
|
-
*
|
105
|
-
* <p>Will display an Alert with the errors found</p>
|
106
|
-
*
|
107
|
-
* @return A value of <code>true</code> means there was an error;
|
108
|
-
* A value of <code>false</code> means there is no error.
|
109
|
-
*/
|
110
|
-
private function checkForErrors():Boolean
|
111
|
-
{
|
112
|
-
return false;
|
113
|
-
}
|
114
|
-
]]>
|
115
|
-
</mx:Script>
|
116
|
-
|
117
|
-
<mx:VBox top="10" bottom="10" left="10" right="10">
|
118
|
-
<mx:HBox width="100%" height="40" verticalAlign="middle" paddingRight="5" paddingLeft="5">
|
119
|
-
<mx:Label text="Widget's Title: " styleName="sectionLabel"/>
|
120
|
-
<mx:TextInput id="titleField" height="100%" width="100%" styleName="titleField"/>
|
121
|
-
</mx:HBox>
|
122
|
-
<mx:HRule width="100%" />
|
123
|
-
<mx:Canvas width="100%" height="100%" styleName="creatorSectionMajor">
|
124
|
-
<mx:VBox styleName="creatorSectionMinor" top="10" bottom="10" left="10" right="10" paddingTop="10" paddingBottom="10" paddingRight="10" paddingLeft="10">
|
125
|
-
<mx:HBox width="100%" verticalAlign="middle">
|
126
|
-
<mx:Label text="[Name of Widget Goes Here]" styleName="sectionLabel"/>
|
127
|
-
</mx:HBox>
|
128
|
-
<questionAnswerDataGrid:QuestionAnswerDataGrid id = "questionInputList"
|
129
|
-
width="100%" height="100%"
|
130
|
-
questionType="MC"
|
131
|
-
answerHeaderLabel="Answer"
|
132
|
-
questionHeaderLabel="Question"
|
133
|
-
/>
|
134
|
-
</mx:VBox>
|
135
|
-
</mx:Canvas>
|
136
|
-
</mx:VBox>
|
137
|
-
|
138
|
-
</materia:CreatorBase>
|