'+(settings.lineNumbers?('
'):'')+'
'+(settings.lineNumbers?'
').insertAfter(obj);
28 | obj.hide();
29 | });
30 | else this.each(function() {
31 | result = CodeMirror.fromTextArea(this, settings);
32 | });
33 |
34 | return result;
35 | };})( jQuery );
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/pagination.css:
--------------------------------------------------------------------------------
1 | .pagination {
2 | zoom: 1;
3 | }
4 | .pagination table {
5 | float: left;
6 | height: 30px;
7 | }
8 | .pagination td {
9 | border: 0;
10 | }
11 | .pagination-btn-separator {
12 | float: left;
13 | height: 24px;
14 | border-left: 1px solid #444;
15 | border-right: 1px solid #777;
16 | margin: 3px 1px;
17 | }
18 | .pagination .pagination-num {
19 | border-width: 1px;
20 | border-style: solid;
21 | margin: 0 2px;
22 | padding: 2px;
23 | width: 2em;
24 | height: auto;
25 | }
26 | .pagination-page-list {
27 | margin: 0px 6px;
28 | padding: 1px 2px;
29 | width: auto;
30 | height: auto;
31 | border-width: 1px;
32 | border-style: solid;
33 | }
34 | .pagination-info {
35 | float: right;
36 | margin: 0 6px 0 0;
37 | padding: 0;
38 | height: 30px;
39 | line-height: 30px;
40 | font-size: 12px;
41 | }
42 | .pagination span {
43 | font-size: 12px;
44 | }
45 | .pagination-link .l-btn-text {
46 | width: 24px;
47 | text-align: center;
48 | margin: 0;
49 | }
50 | .pagination-first {
51 | background: url('images/pagination_icons.png') no-repeat 0 center;
52 | }
53 | .pagination-prev {
54 | background: url('images/pagination_icons.png') no-repeat -16px center;
55 | }
56 | .pagination-next {
57 | background: url('images/pagination_icons.png') no-repeat -32px center;
58 | }
59 | .pagination-last {
60 | background: url('images/pagination_icons.png') no-repeat -48px center;
61 | }
62 | .pagination-load {
63 | background: url('images/pagination_icons.png') no-repeat -64px center;
64 | }
65 | .pagination-loading {
66 | background: url('images/loading.gif') no-repeat center center;
67 | }
68 | .pagination-page-list,
69 | .pagination .pagination-num {
70 | border-color: #000;
71 | }
72 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/pagination.css:
--------------------------------------------------------------------------------
1 | .pagination {
2 | zoom: 1;
3 | }
4 | .pagination table {
5 | float: left;
6 | height: 30px;
7 | }
8 | .pagination td {
9 | border: 0;
10 | }
11 | .pagination-btn-separator {
12 | float: left;
13 | height: 24px;
14 | border-left: 1px solid #ddd;
15 | border-right: 1px solid #fff;
16 | margin: 3px 1px;
17 | }
18 | .pagination .pagination-num {
19 | border-width: 1px;
20 | border-style: solid;
21 | margin: 0 2px;
22 | padding: 2px;
23 | width: 2em;
24 | height: auto;
25 | }
26 | .pagination-page-list {
27 | margin: 0px 6px;
28 | padding: 1px 2px;
29 | width: auto;
30 | height: auto;
31 | border-width: 1px;
32 | border-style: solid;
33 | }
34 | .pagination-info {
35 | float: right;
36 | margin: 0 6px 0 0;
37 | padding: 0;
38 | height: 30px;
39 | line-height: 30px;
40 | font-size: 12px;
41 | }
42 | .pagination span {
43 | font-size: 12px;
44 | }
45 | .pagination-link .l-btn-text {
46 | width: 24px;
47 | text-align: center;
48 | margin: 0;
49 | }
50 | .pagination-first {
51 | background: url('images/pagination_icons.png') no-repeat 0 center;
52 | }
53 | .pagination-prev {
54 | background: url('images/pagination_icons.png') no-repeat -16px center;
55 | }
56 | .pagination-next {
57 | background: url('images/pagination_icons.png') no-repeat -32px center;
58 | }
59 | .pagination-last {
60 | background: url('images/pagination_icons.png') no-repeat -48px center;
61 | }
62 | .pagination-load {
63 | background: url('images/pagination_icons.png') no-repeat -64px center;
64 | }
65 | .pagination-loading {
66 | background: url('images/loading.gif') no-repeat center center;
67 | }
68 | .pagination-page-list,
69 | .pagination .pagination-num {
70 | border-color: #ddd;
71 | }
72 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/spinner.css:
--------------------------------------------------------------------------------
1 | .spinner {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .spinner .spinner-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0 2px;
16 | vertical-align: baseline;
17 | }
18 | .spinner-arrow {
19 | background-color: #3d3d3d;
20 | display: inline-block;
21 | overflow: hidden;
22 | vertical-align: top;
23 | margin: 0;
24 | padding: 0;
25 | opacity: 1.0;
26 | filter: alpha(opacity=100);
27 | width: 18px;
28 | }
29 | .spinner-arrow-up,
30 | .spinner-arrow-down {
31 | opacity: 0.6;
32 | filter: alpha(opacity=60);
33 | display: block;
34 | font-size: 1px;
35 | width: 18px;
36 | height: 10px;
37 | width: 100%;
38 | height: 50%;
39 | outline-style: none;
40 | }
41 | .spinner-arrow-hover {
42 | background-color: #777;
43 | opacity: 1.0;
44 | filter: alpha(opacity=100);
45 | }
46 | .spinner-arrow-up:hover,
47 | .spinner-arrow-down:hover {
48 | opacity: 1.0;
49 | filter: alpha(opacity=100);
50 | background-color: #777;
51 | }
52 | .textbox-icon-disabled .spinner-arrow-up:hover,
53 | .textbox-icon-disabled .spinner-arrow-down:hover {
54 | opacity: 0.6;
55 | filter: alpha(opacity=60);
56 | background-color: #3d3d3d;
57 | cursor: default;
58 | }
59 | .spinner .textbox-icon-disabled {
60 | opacity: 0.6;
61 | filter: alpha(opacity=60);
62 | }
63 | .spinner-arrow-up {
64 | background: url('images/spinner_arrows.png') no-repeat 1px center;
65 | }
66 | .spinner-arrow-down {
67 | background: url('images/spinner_arrows.png') no-repeat -15px center;
68 | }
69 | .spinner {
70 | border-color: #000;
71 | }
72 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/spinner.css:
--------------------------------------------------------------------------------
1 | .spinner {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .spinner .spinner-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0 2px;
16 | vertical-align: baseline;
17 | }
18 | .spinner-arrow {
19 | background-color: #ffffff;
20 | display: inline-block;
21 | overflow: hidden;
22 | vertical-align: top;
23 | margin: 0;
24 | padding: 0;
25 | opacity: 1.0;
26 | filter: alpha(opacity=100);
27 | width: 18px;
28 | }
29 | .spinner-arrow-up,
30 | .spinner-arrow-down {
31 | opacity: 0.6;
32 | filter: alpha(opacity=60);
33 | display: block;
34 | font-size: 1px;
35 | width: 18px;
36 | height: 10px;
37 | width: 100%;
38 | height: 50%;
39 | outline-style: none;
40 | }
41 | .spinner-arrow-hover {
42 | background-color: #E6E6E6;
43 | opacity: 1.0;
44 | filter: alpha(opacity=100);
45 | }
46 | .spinner-arrow-up:hover,
47 | .spinner-arrow-down:hover {
48 | opacity: 1.0;
49 | filter: alpha(opacity=100);
50 | background-color: #E6E6E6;
51 | }
52 | .textbox-icon-disabled .spinner-arrow-up:hover,
53 | .textbox-icon-disabled .spinner-arrow-down:hover {
54 | opacity: 0.6;
55 | filter: alpha(opacity=60);
56 | background-color: #ffffff;
57 | cursor: default;
58 | }
59 | .spinner .textbox-icon-disabled {
60 | opacity: 0.6;
61 | filter: alpha(opacity=60);
62 | }
63 | .spinner-arrow-up {
64 | background: url('images/spinner_arrows.png') no-repeat 1px center;
65 | }
66 | .spinner-arrow-down {
67 | background: url('images/spinner_arrows.png') no-repeat -15px center;
68 | }
69 | .spinner {
70 | border-color: #ddd;
71 | }
72 |
--------------------------------------------------------------------------------
/AngoraEditor/workspace/demo/preload.res:
--------------------------------------------------------------------------------
1 | {
2 | "bg": {
3 | "id": "bg",
4 | "type": "image",
5 | "path": "data/bg.png",
6 | "height": 576,
7 | "width": 368
8 | },
9 | "play": {
10 | "id": "play",
11 | "type": "image",
12 | "path": "data/play.png",
13 | "height": 58,
14 | "width": 104
15 | },
16 | "scores": {
17 | "id": "scores",
18 | "type": "image",
19 | "path": "data/scores.png",
20 | "height": 58,
21 | "width": 104
22 | },
23 | "title": {
24 | "id": "title",
25 | "type": "image",
26 | "path": "data/title.png",
27 | "height": 48,
28 | "width": 178
29 | },
30 | "bird_fly": {
31 | "id": "bird_fly",
32 | "type": "spritesheet",
33 | "path": "data/bird_fly.png",
34 | "Xframe": "3",
35 | "Yframe": "1",
36 | "width": 102,
37 | "height": 24
38 | },
39 | "ground": {
40 | "id": "ground",
41 | "type": "image",
42 | "path": "data/ground.png",
43 | "height": 123,
44 | "width": 368
45 | },
46 | "pipe_down": {
47 | "id": "pipe_down",
48 | "type": "image",
49 | "path": "data/pipe_down.png",
50 | "height": 320,
51 | "width": 52
52 | },
53 | "pipe_up": {
54 | "id": "pipe_up",
55 | "type": "image",
56 | "path": "data/pipe_up.png",
57 | "height": 320,
58 | "width": 52
59 | },
60 | "game": {
61 | "id": "game",
62 | "type": "image",
63 | "path": "data/game.png",
64 | "height": 42,
65 | "width": 102
66 | },
67 | "over": {
68 | "id": "over",
69 | "type": "image",
70 | "path": "data/over.png",
71 | "height": 42,
72 | "width": 88
73 | },
74 | "restart": {
75 | "id": "restart",
76 | "type": "image",
77 | "path": "data/restart.png",
78 | "height": 96,
79 | "width": 96
80 | }
81 | }
--------------------------------------------------------------------------------
/AngoraEditor/dialog/help.html:
--------------------------------------------------------------------------------
1 |
Sprite
Animation
TileMap
Audio
Arcade
P2JS
--------------------------------------------------------------------------------
/AngoraEditor/workspace/demo/gameover.scn:
--------------------------------------------------------------------------------
1 | {
2 | "image1": {
3 | "id": "image1",
4 | "type": "image",
5 | "visible": "true",
6 | "x": "0",
7 | "y": "0",
8 | "width": "320",
9 | "height": "480",
10 | "image": "bg",
11 | "scaleX": 0.8695652173913043,
12 | "scaleY": 0.8333333333333334,
13 | "anchorX": 0,
14 | "anchorY": 0,
15 | "rotation": 0
16 | },
17 | "sprite2": {
18 | "id": "sprite2",
19 | "type": "sprite",
20 | "visible": "true",
21 | "x": 156,
22 | "y": 180,
23 | "width": 88,
24 | "height": 42,
25 | "image": "over",
26 | "frame": 0,
27 | "scaleX": 1,
28 | "scaleY": 1,
29 | "anchorX": 0,
30 | "anchorY": 0,
31 | "rotation": 0,
32 | "physics": false,
33 | "dynamic": true,
34 | "body": "default",
35 | "mass": 10,
36 | "fixedRotation": true
37 | },
38 | "sprite3": {
39 | "id": "sprite3",
40 | "type": "sprite",
41 | "visible": "true",
42 | "x": 48,
43 | "y": 157,
44 | "width": 102,
45 | "height": 42,
46 | "image": "game",
47 | "frame": 0,
48 | "scaleX": 1,
49 | "scaleY": 1,
50 | "anchorX": 0,
51 | "anchorY": 0,
52 | "rotation": 0,
53 | "physics": false,
54 | "dynamic": true,
55 | "body": "default",
56 | "mass": 10,
57 | "fixedRotation": true
58 | },
59 | "sprite4": {
60 | "id": "sprite4",
61 | "type": "sprite",
62 | "visible": "true",
63 | "x": 117,
64 | "y": 228,
65 | "width": "64",
66 | "height": "64",
67 | "image": "restart",
68 | "frame": 0,
69 | "scaleX": 0.6666666666666666,
70 | "scaleY": 0.6666666666666666,
71 | "anchorX": 0,
72 | "anchorY": 0,
73 | "rotation": 0,
74 | "physics": false,
75 | "dynamic": true,
76 | "body": "default",
77 | "mass": 10,
78 | "fixedRotation": true,
79 | "events": {
80 | "onInputDown": "sprite4_onInputDown"
81 | }
82 | }
83 | }
--------------------------------------------------------------------------------
/AngoraEditor/server/releaseJS.py:
--------------------------------------------------------------------------------
1 | from jsmin import jsmin
2 | import json
3 | import shutil
4 | import os
5 |
6 | def getreleaseJS(scene):
7 | with open('../template/scene_release.js', 'r') as releasejs:
8 | content = releasejs.read()
9 | content = content.replace('{sceneName}',scene)
10 | return content
11 |
12 | def mergefile(filepath,scene):
13 | filenames = [scene+'.res',scene+'.scn',scene+'.config']
14 | with open(filepath+'release/'+scene+'.js', 'w') as outfile:
15 | for fname in filenames:
16 | obj=fname.replace('.','_')
17 | with open(filepath+fname) as infile:
18 | outfile.write('var '+obj+'=')
19 | outfile.write(infile.read())
20 | outfile.write('\n');
21 | outfile.write(getreleaseJS(scene))
22 | outfile.write('\n')
23 | with open(filepath+scene+'.script.js', 'r') as infile:
24 | outfile.write(infile.read())
25 | outfile.write('\n');
26 |
27 | def compress(jsfile):
28 | with open(jsfile,'r') as infile:
29 | minified = jsmin(infile.read())
30 | with open(jsfile,'w') as outfile:
31 | outfile.write(minified)
32 |
33 | def releaseProject(filepath):
34 | if not os.path.exists(filepath+'release') :
35 | os.mkdir(filepath+'release')
36 | with open(filepath+'scenes.json','r') as infile:
37 | scenes = json.load(infile)
38 | for scene in scenes:
39 | mergefile(filepath,scene)
40 | compress(filepath+'release/'+scene+'.js')
41 | shutil.copy2(filepath+'mygame.js',filepath+'release/mygame.js')
42 | compress(filepath+'release/mygame.js')
43 | shutil.copy2(filepath+'createscene.js',filepath+'release/createscene.js')
44 | compress(filepath+'release/createscene.js')
45 | shutil.copy2(filepath+'phaser.min.js',filepath+'release/phaser.min.js')
46 | shutil.copy2(filepath+'mygame.html',filepath+'release/mygame.html')
47 |
48 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/layout.css:
--------------------------------------------------------------------------------
1 | .layout {
2 | position: relative;
3 | overflow: hidden;
4 | margin: 0;
5 | padding: 0;
6 | z-index: 0;
7 | }
8 | .layout-panel {
9 | position: absolute;
10 | overflow: hidden;
11 | }
12 | .layout-panel-east,
13 | .layout-panel-west {
14 | z-index: 2;
15 | }
16 | .layout-panel-north,
17 | .layout-panel-south {
18 | z-index: 3;
19 | }
20 | .layout-expand {
21 | position: absolute;
22 | padding: 0px;
23 | font-size: 1px;
24 | cursor: pointer;
25 | z-index: 1;
26 | }
27 | .layout-expand .panel-header,
28 | .layout-expand .panel-body {
29 | background: transparent;
30 | filter: none;
31 | overflow: hidden;
32 | }
33 | .layout-expand .panel-header {
34 | border-bottom-width: 0px;
35 | }
36 | .layout-split-proxy-h,
37 | .layout-split-proxy-v {
38 | position: absolute;
39 | font-size: 1px;
40 | display: none;
41 | z-index: 5;
42 | }
43 | .layout-split-proxy-h {
44 | width: 5px;
45 | cursor: e-resize;
46 | }
47 | .layout-split-proxy-v {
48 | height: 5px;
49 | cursor: n-resize;
50 | }
51 | .layout-mask {
52 | position: absolute;
53 | background: #fafafa;
54 | filter: alpha(opacity=10);
55 | opacity: 0.10;
56 | z-index: 4;
57 | }
58 | .layout-button-up {
59 | background: url('images/layout_arrows.png') no-repeat -16px -16px;
60 | }
61 | .layout-button-down {
62 | background: url('images/layout_arrows.png') no-repeat -16px 0;
63 | }
64 | .layout-button-left {
65 | background: url('images/layout_arrows.png') no-repeat 0 0;
66 | }
67 | .layout-button-right {
68 | background: url('images/layout_arrows.png') no-repeat 0 -16px;
69 | }
70 | .layout-split-proxy-h,
71 | .layout-split-proxy-v {
72 | background-color: #cccccc;
73 | }
74 | .layout-split-north {
75 | border-bottom: 5px solid #444;
76 | }
77 | .layout-split-south {
78 | border-top: 5px solid #444;
79 | }
80 | .layout-split-east {
81 | border-left: 5px solid #444;
82 | }
83 | .layout-split-west {
84 | border-right: 5px solid #444;
85 | }
86 | .layout-expand {
87 | background-color: #3d3d3d;
88 | }
89 | .layout-expand-over {
90 | background-color: #3d3d3d;
91 | }
92 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/layout.css:
--------------------------------------------------------------------------------
1 | .layout {
2 | position: relative;
3 | overflow: hidden;
4 | margin: 0;
5 | padding: 0;
6 | z-index: 0;
7 | }
8 | .layout-panel {
9 | position: absolute;
10 | overflow: hidden;
11 | }
12 | .layout-panel-east,
13 | .layout-panel-west {
14 | z-index: 2;
15 | }
16 | .layout-panel-north,
17 | .layout-panel-south {
18 | z-index: 3;
19 | }
20 | .layout-expand {
21 | position: absolute;
22 | padding: 0px;
23 | font-size: 1px;
24 | cursor: pointer;
25 | z-index: 1;
26 | }
27 | .layout-expand .panel-header,
28 | .layout-expand .panel-body {
29 | background: transparent;
30 | filter: none;
31 | overflow: hidden;
32 | }
33 | .layout-expand .panel-header {
34 | border-bottom-width: 0px;
35 | }
36 | .layout-split-proxy-h,
37 | .layout-split-proxy-v {
38 | position: absolute;
39 | font-size: 1px;
40 | display: none;
41 | z-index: 5;
42 | }
43 | .layout-split-proxy-h {
44 | width: 5px;
45 | cursor: e-resize;
46 | }
47 | .layout-split-proxy-v {
48 | height: 5px;
49 | cursor: n-resize;
50 | }
51 | .layout-mask {
52 | position: absolute;
53 | background: #fafafa;
54 | filter: alpha(opacity=10);
55 | opacity: 0.10;
56 | z-index: 4;
57 | }
58 | .layout-button-up {
59 | background: url('images/layout_arrows.png') no-repeat -16px -16px;
60 | }
61 | .layout-button-down {
62 | background: url('images/layout_arrows.png') no-repeat -16px 0;
63 | }
64 | .layout-button-left {
65 | background: url('images/layout_arrows.png') no-repeat 0 0;
66 | }
67 | .layout-button-right {
68 | background: url('images/layout_arrows.png') no-repeat 0 -16px;
69 | }
70 | .layout-split-proxy-h,
71 | .layout-split-proxy-v {
72 | background-color: #b3b3b3;
73 | }
74 | .layout-split-north {
75 | border-bottom: 5px solid #fff;
76 | }
77 | .layout-split-south {
78 | border-top: 5px solid #fff;
79 | }
80 | .layout-split-east {
81 | border-left: 5px solid #fff;
82 | }
83 | .layout-split-west {
84 | border-right: 5px solid #fff;
85 | }
86 | .layout-expand {
87 | background-color: #ffffff;
88 | }
89 | .layout-expand-over {
90 | background-color: #ffffff;
91 | }
92 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/window.css:
--------------------------------------------------------------------------------
1 | .window {
2 | overflow: hidden;
3 | padding: 5px;
4 | border-width: 1px;
5 | border-style: solid;
6 | }
7 | .window .window-header {
8 | background: transparent;
9 | padding: 0px 0px 6px 0px;
10 | }
11 | .window .window-body {
12 | border-width: 1px;
13 | border-style: solid;
14 | border-top-width: 0px;
15 | }
16 | .window .window-body-noheader {
17 | border-top-width: 1px;
18 | }
19 | .window .panel-body-nobottom {
20 | border-bottom-width: 0;
21 | }
22 | .window .window-header .panel-icon,
23 | .window .window-header .panel-tool {
24 | top: 50%;
25 | margin-top: -11px;
26 | }
27 | .window .window-header .panel-icon {
28 | left: 1px;
29 | }
30 | .window .window-header .panel-tool {
31 | right: 1px;
32 | }
33 | .window .window-header .panel-with-icon {
34 | padding-left: 18px;
35 | }
36 | .window-proxy {
37 | position: absolute;
38 | overflow: hidden;
39 | }
40 | .window-proxy-mask {
41 | position: absolute;
42 | filter: alpha(opacity=5);
43 | opacity: 0.05;
44 | }
45 | .window-mask {
46 | position: absolute;
47 | left: 0;
48 | top: 0;
49 | width: 100%;
50 | height: 100%;
51 | filter: alpha(opacity=40);
52 | opacity: 0.40;
53 | font-size: 1px;
54 | overflow: hidden;
55 | }
56 | .window,
57 | .window-shadow {
58 | position: absolute;
59 | -moz-border-radius: 0px 0px 0px 0px;
60 | -webkit-border-radius: 0px 0px 0px 0px;
61 | border-radius: 0px 0px 0px 0px;
62 | }
63 | .window-shadow {
64 | background: #eee;
65 | -moz-box-shadow: 2px 2px 3px #ededed;
66 | -webkit-box-shadow: 2px 2px 3px #ededed;
67 | box-shadow: 2px 2px 3px #ededed;
68 | filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
69 | }
70 | .window,
71 | .window .window-body {
72 | border-color: #ddd;
73 | }
74 | .window {
75 | background-color: #ffffff;
76 | }
77 | .window-proxy {
78 | border: 1px dashed #ddd;
79 | }
80 | .window-proxy-mask,
81 | .window-mask {
82 | background: #eee;
83 | }
84 | .window .panel-footer {
85 | border: 1px solid #ddd;
86 | position: relative;
87 | top: -1px;
88 | }
89 |
--------------------------------------------------------------------------------
/AngoraEditor/script/editor/system.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author RedSheep
3 | * @copyright
4 | * @license
5 | */
6 | /**
7 | * AngoraEditor.FileManager constructor
8 | *
9 | * Instantiate AngoraEditor.FileManager object.
10 | * @class AngoraEditor.FileManager
11 | * @classdesc
12 | * @constructor
13 | */
14 | AngoraEditor.SystemConfig = function (editor) {
15 | /**
16 | * @property {AngoraEditor} - reference of editor
17 | */
18 | this.editor = editor;
19 | /**
20 | * @property {string} - application path
21 | */
22 | this.appPath = null;
23 | /**
24 | * @property {string} - template path
25 | */
26 | this.templatePath = null;
27 | /**
28 | * @property {string} - workspace path
29 | */
30 | this.workspacePath = null;
31 | /**
32 | * @property {string} - project path
33 | */
34 | this.projectFile = null;
35 | this.configFile = null;
36 | this.langPath = null;
37 | /**
38 | * @property {Object} - application config
39 | */
40 | this.config = {};
41 | this.setup();
42 | }
43 |
44 | AngoraEditor.SystemConfig.prototype = {
45 | setup: function(){
46 | this.appPath = "";
47 | this.templatePath = this.appPath+"/template";
48 | this.workspacePath = this.appPath+"/workspace";
49 | this.projectFile = this.appPath+"/data/projects.json";
50 | this.configFile = this.appPath+"/data/perferences.cfg";
51 | this.langPath = this.appPath+"/data/lang";
52 | },
53 | loadPerferences: function(finished){
54 | var editor=this.editor;
55 | editor.file.readFile(this.configFile,function(data){
56 | editor.system.config=JSON.parse(data);
57 | finished();
58 | });
59 | },
60 | save : function(){
61 | this.editor.file.writeFile(this.configFile,JSON.stringify(this.config,null,2));
62 | },
63 | /**
64 | *
65 | * @method
66 | * @param
67 | */
68 | get : function (config, value) {},
69 | /**
70 | *
71 | *
72 | * @method
73 | * @param
74 | */
75 | set : function (config, value) {},
76 | /**
77 | *
78 | *
79 | * @method
80 | * @param
81 | */
82 | exit : function () {}
83 | }
84 | AngoraEditor.SystemConfig.prototype.constructor = AngoraEditor.SystemConfig;
85 |
--------------------------------------------------------------------------------
/AngoraEditor/script/editor/scenepane.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author RedSheep
3 | * @copyright
4 | * @license
5 | */
6 | /**
7 | * AngoraEditor.FileManager constructor
8 | *
9 | * Instantiate AngoraEditor.FileManager object.
10 | * @class AngoraEditor.FileManager
11 | * @classdesc
12 | * @constructor
13 | */
14 | AngoraEditor.ScenePaneManager = function (editor) {
15 | /**
16 | * @property {AngoraEditor} - reference of editor
17 | */
18 | this.editor = editor;
19 | /**
20 | * @property {jquery object}
21 | */
22 | this.pane = $('#scenes');
23 | }
24 | AngoraEditor.ScenePaneManager.prototype = {
25 | /**
26 | * load and setup scene pane DOM
27 | * @method loadData
28 | * @param {string} scene
29 | */
30 | loadData : function (scene) {
31 | var editor = this.editor;
32 | var scenes = editor.scene.scenes;
33 | var newdiv = "";
34 | for (i in scenes) {
35 | this.pane.append(newdiv.format(i, scenes[i].name));
36 | }
37 | this.pane.delegate('.sceneitem', 'click', function () {
38 | if(editor.scene.isChanged()){
39 | var r=confirm("do you want to save changed?");
40 | if(r) editor.scene.save();
41 | }
42 | var sceneDiv=$('.selectedsceneitem');
43 | if(sceneDiv.length>0)
44 | sceneDiv.removeClass('selectedsceneitem');
45 | $(this).addClass('selectedsceneitem');
46 | editor.scene.load($(this).attr('sceneID'));
47 | });
48 | },
49 | /**
50 | * add a new scene
51 | * @method add
52 | * @param {string} scene
53 | */
54 | add : function (scene) {
55 | var editor = this.editor;
56 | var newdiv = "";
57 | this.pane.append(newdiv.format(scene, scene));
58 | },
59 | /**
60 | * remove a scene
61 | * @method remove
62 | * @param {string} scene
63 | */
64 | remove : function (scene) {
65 | $(".sceneitem[sceneID='" + scene + "']").remove();
66 | },
67 | /**
68 | * reset scene
69 | * @method reset
70 | * @param
71 | */
72 | reset : function () {
73 | this.pane.empty();
74 | }
75 | }
76 |
77 | AngoraEditor.ScenePaneManager.prototype.constructor = AngoraEditor.ScenePaneManager;
78 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/textbox.css:
--------------------------------------------------------------------------------
1 | .textbox {
2 | position: relative;
3 | border: 1px solid #000;
4 | background-color: #fff;
5 | vertical-align: middle;
6 | display: inline-block;
7 | overflow: hidden;
8 | white-space: nowrap;
9 | margin: 0;
10 | padding: 0;
11 | -moz-border-radius: 5px 5px 5px 5px;
12 | -webkit-border-radius: 5px 5px 5px 5px;
13 | border-radius: 5px 5px 5px 5px;
14 | }
15 | .textbox .textbox-text {
16 | font-size: 12px;
17 | border: 0;
18 | margin: 0;
19 | padding: 4px;
20 | white-space: normal;
21 | vertical-align: top;
22 | outline-style: none;
23 | resize: none;
24 | -moz-border-radius: 5px 5px 5px 5px;
25 | -webkit-border-radius: 5px 5px 5px 5px;
26 | border-radius: 5px 5px 5px 5px;
27 | }
28 | .textbox .textbox-prompt {
29 | font-size: 12px;
30 | color: #aaa;
31 | }
32 | .textbox-button,
33 | .textbox-button:hover {
34 | position: absolute;
35 | top: 0;
36 | padding: 0;
37 | vertical-align: top;
38 | -moz-border-radius: 0 0 0 0;
39 | -webkit-border-radius: 0 0 0 0;
40 | border-radius: 0 0 0 0;
41 | }
42 | .textbox-button-right,
43 | .textbox-button-right:hover {
44 | border-width: 0 0 0 1px;
45 | }
46 | .textbox-button-left,
47 | .textbox-button-left:hover {
48 | border-width: 0 1px 0 0;
49 | }
50 | .textbox-addon {
51 | position: absolute;
52 | top: 0;
53 | }
54 | .textbox-icon {
55 | display: inline-block;
56 | width: 18px;
57 | height: 20px;
58 | overflow: hidden;
59 | vertical-align: top;
60 | background-position: center center;
61 | cursor: pointer;
62 | opacity: 0.6;
63 | filter: alpha(opacity=60);
64 | text-decoration: none;
65 | outline-style: none;
66 | }
67 | .textbox-icon-disabled,
68 | .textbox-icon-readonly {
69 | cursor: default;
70 | }
71 | .textbox-icon:hover {
72 | opacity: 1.0;
73 | filter: alpha(opacity=100);
74 | }
75 | .textbox-icon-disabled:hover {
76 | opacity: 0.6;
77 | filter: alpha(opacity=60);
78 | }
79 | .textbox-focused {
80 | -moz-box-shadow: 0 0 3px 0 #000;
81 | -webkit-box-shadow: 0 0 3px 0 #000;
82 | box-shadow: 0 0 3px 0 #000;
83 | }
84 | .textbox-invalid {
85 | border-color: #ffa8a8;
86 | background-color: #fff3f3;
87 | }
88 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/textbox.css:
--------------------------------------------------------------------------------
1 | .textbox {
2 | position: relative;
3 | border: 1px solid #ddd;
4 | background-color: #fff;
5 | vertical-align: middle;
6 | display: inline-block;
7 | overflow: hidden;
8 | white-space: nowrap;
9 | margin: 0;
10 | padding: 0;
11 | -moz-border-radius: 0px 0px 0px 0px;
12 | -webkit-border-radius: 0px 0px 0px 0px;
13 | border-radius: 0px 0px 0px 0px;
14 | }
15 | .textbox .textbox-text {
16 | font-size: 12px;
17 | border: 0;
18 | margin: 0;
19 | padding: 4px;
20 | white-space: normal;
21 | vertical-align: top;
22 | outline-style: none;
23 | resize: none;
24 | -moz-border-radius: 0px 0px 0px 0px;
25 | -webkit-border-radius: 0px 0px 0px 0px;
26 | border-radius: 0px 0px 0px 0px;
27 | }
28 | .textbox .textbox-prompt {
29 | font-size: 12px;
30 | color: #aaa;
31 | }
32 | .textbox-button,
33 | .textbox-button:hover {
34 | position: absolute;
35 | top: 0;
36 | padding: 0;
37 | vertical-align: top;
38 | -moz-border-radius: 0 0 0 0;
39 | -webkit-border-radius: 0 0 0 0;
40 | border-radius: 0 0 0 0;
41 | }
42 | .textbox-button-right,
43 | .textbox-button-right:hover {
44 | border-width: 0 0 0 1px;
45 | }
46 | .textbox-button-left,
47 | .textbox-button-left:hover {
48 | border-width: 0 1px 0 0;
49 | }
50 | .textbox-addon {
51 | position: absolute;
52 | top: 0;
53 | }
54 | .textbox-icon {
55 | display: inline-block;
56 | width: 18px;
57 | height: 20px;
58 | overflow: hidden;
59 | vertical-align: top;
60 | background-position: center center;
61 | cursor: pointer;
62 | opacity: 0.6;
63 | filter: alpha(opacity=60);
64 | text-decoration: none;
65 | outline-style: none;
66 | }
67 | .textbox-icon-disabled,
68 | .textbox-icon-readonly {
69 | cursor: default;
70 | }
71 | .textbox-icon:hover {
72 | opacity: 1.0;
73 | filter: alpha(opacity=100);
74 | }
75 | .textbox-icon-disabled:hover {
76 | opacity: 0.6;
77 | filter: alpha(opacity=60);
78 | }
79 | .textbox-focused {
80 | -moz-box-shadow: 0 0 3px 0 #ddd;
81 | -webkit-box-shadow: 0 0 3px 0 #ddd;
82 | box-shadow: 0 0 3px 0 #ddd;
83 | }
84 | .textbox-invalid {
85 | border-color: #ffa8a8;
86 | background-color: #fff3f3;
87 | }
88 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/slider.css:
--------------------------------------------------------------------------------
1 | .slider-disabled {
2 | opacity: 0.5;
3 | filter: alpha(opacity=50);
4 | }
5 | .slider-h {
6 | height: 22px;
7 | }
8 | .slider-v {
9 | width: 22px;
10 | }
11 | .slider-inner {
12 | position: relative;
13 | height: 6px;
14 | top: 7px;
15 | border-width: 1px;
16 | border-style: solid;
17 | border-radius: 5px;
18 | }
19 | .slider-handle {
20 | position: absolute;
21 | display: block;
22 | outline: none;
23 | width: 20px;
24 | height: 20px;
25 | top: 50%;
26 | margin-top: -10px;
27 | margin-left: -10px;
28 | }
29 | .slider-tip {
30 | position: absolute;
31 | display: inline-block;
32 | line-height: 12px;
33 | font-size: 12px;
34 | white-space: nowrap;
35 | top: -22px;
36 | }
37 | .slider-rule {
38 | position: relative;
39 | top: 15px;
40 | }
41 | .slider-rule span {
42 | position: absolute;
43 | display: inline-block;
44 | font-size: 0;
45 | height: 5px;
46 | border-width: 0 0 0 1px;
47 | border-style: solid;
48 | }
49 | .slider-rulelabel {
50 | position: relative;
51 | top: 20px;
52 | }
53 | .slider-rulelabel span {
54 | position: absolute;
55 | display: inline-block;
56 | font-size: 12px;
57 | }
58 | .slider-v .slider-inner {
59 | width: 6px;
60 | left: 7px;
61 | top: 0;
62 | float: left;
63 | }
64 | .slider-v .slider-handle {
65 | left: 50%;
66 | margin-top: -10px;
67 | }
68 | .slider-v .slider-tip {
69 | left: -10px;
70 | margin-top: -6px;
71 | }
72 | .slider-v .slider-rule {
73 | float: left;
74 | top: 0;
75 | left: 16px;
76 | }
77 | .slider-v .slider-rule span {
78 | width: 5px;
79 | height: 'auto';
80 | border-left: 0;
81 | border-width: 1px 0 0 0;
82 | border-style: solid;
83 | }
84 | .slider-v .slider-rulelabel {
85 | float: left;
86 | top: 0;
87 | left: 23px;
88 | }
89 | .slider-handle {
90 | background: url('images/slider_handle.png') no-repeat;
91 | }
92 | .slider-inner {
93 | border-color: #000;
94 | background: #3d3d3d;
95 | }
96 | .slider-rule span {
97 | border-color: #000;
98 | }
99 | .slider-rulelabel span {
100 | color: #fff;
101 | }
102 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/slider.css:
--------------------------------------------------------------------------------
1 | .slider-disabled {
2 | opacity: 0.5;
3 | filter: alpha(opacity=50);
4 | }
5 | .slider-h {
6 | height: 22px;
7 | }
8 | .slider-v {
9 | width: 22px;
10 | }
11 | .slider-inner {
12 | position: relative;
13 | height: 6px;
14 | top: 7px;
15 | border-width: 1px;
16 | border-style: solid;
17 | border-radius: 0px;
18 | }
19 | .slider-handle {
20 | position: absolute;
21 | display: block;
22 | outline: none;
23 | width: 20px;
24 | height: 20px;
25 | top: 50%;
26 | margin-top: -10px;
27 | margin-left: -10px;
28 | }
29 | .slider-tip {
30 | position: absolute;
31 | display: inline-block;
32 | line-height: 12px;
33 | font-size: 12px;
34 | white-space: nowrap;
35 | top: -22px;
36 | }
37 | .slider-rule {
38 | position: relative;
39 | top: 15px;
40 | }
41 | .slider-rule span {
42 | position: absolute;
43 | display: inline-block;
44 | font-size: 0;
45 | height: 5px;
46 | border-width: 0 0 0 1px;
47 | border-style: solid;
48 | }
49 | .slider-rulelabel {
50 | position: relative;
51 | top: 20px;
52 | }
53 | .slider-rulelabel span {
54 | position: absolute;
55 | display: inline-block;
56 | font-size: 12px;
57 | }
58 | .slider-v .slider-inner {
59 | width: 6px;
60 | left: 7px;
61 | top: 0;
62 | float: left;
63 | }
64 | .slider-v .slider-handle {
65 | left: 50%;
66 | margin-top: -10px;
67 | }
68 | .slider-v .slider-tip {
69 | left: -10px;
70 | margin-top: -6px;
71 | }
72 | .slider-v .slider-rule {
73 | float: left;
74 | top: 0;
75 | left: 16px;
76 | }
77 | .slider-v .slider-rule span {
78 | width: 5px;
79 | height: 'auto';
80 | border-left: 0;
81 | border-width: 1px 0 0 0;
82 | border-style: solid;
83 | }
84 | .slider-v .slider-rulelabel {
85 | float: left;
86 | top: 0;
87 | left: 23px;
88 | }
89 | .slider-handle {
90 | background: url('images/slider_handle.png') no-repeat;
91 | }
92 | .slider-inner {
93 | border-color: #ddd;
94 | background: #ffffff;
95 | }
96 | .slider-rule span {
97 | border-color: #ddd;
98 | }
99 | .slider-rulelabel span {
100 | color: #444;
101 | }
102 |
--------------------------------------------------------------------------------
/AngoraEditor/server/docs.py:
--------------------------------------------------------------------------------
1 | import json
2 | import sqlite3
3 |
4 | def search(cls,args):
5 | #print 'search for',cls,args
6 | clsargs=''
7 | if(cls!='ALL'):
8 | clsargs='class="Phaser.%s" COLLATE NOCASE and '%cls
9 | sqlcmd='''select * from method where {0}
10 | (name like '%{1}%' or help like '% {1} %') '''.format(clsargs,args)
11 | print sqlcmd
12 | cx = sqlite3.connect("docs.db")
13 | cur = cx.execute(sqlcmd)
14 | rows=cur.fetchall()
15 | cx.close()
16 | result=[]
17 | for row in rows:
18 | #row[4]=row[4].replace('\n','
');
19 | result.append({'name':row[0],'visible':row[1],'class':row[2],'parameters':row[3],'help':row[4],'return':row[5]})
20 | #for row in result:
21 | # print row['name'],','.join([r.split(':')[0] for r in row['parameters'].split('@')]),row['help']
22 | return json.dumps(result)
23 |
24 | def getparameters(parameters):
25 | args=[]
26 | for m in parameters:
27 | args.append("%s:%s:%s:%s"%(m['name'],'|'.join(m['type']),m['help'],m['optional']))
28 | return '@'.join(args)
29 | def addtodocs(filename):
30 | json_file = open(filename)
31 | json_str = json_file.read()
32 | json_data = json.loads(json_str)
33 | cls = json_data['class']['name']
34 | cx = sqlite3.connect("docs.db")
35 | for m in json_data['methods']:
36 | for t in json_data['methods'][m]:
37 | returns=t['returns']
38 | if(not(returns is None)):
39 | returns='|'.join(returns)
40 | data = (t['name'],m,cls,getparameters(t['parameters']),t['help'],returns)
41 | cx.execute("insert into Method values (?,?,?,?,?,?)", data)
42 | for m in json_data['properties']:
43 | for t in json_data['properties'][m]:
44 | data = (t['name'],m,''.join(t['type']),cls,t['readOnly'],t['inlineHelp'])
45 | cx.execute("insert into Property values (?,?,?,?,?,?)", data)
46 | cx.commit()
47 | cx.close()
48 | json_file.close()
49 |
50 | def importdocs():
51 | import glob
52 | files = glob.glob("output/Phaser.*.json")
53 | for f in files:
54 | print f;
55 | addtodocs(f);
56 | #importdocs()
57 | #search('Sprite','play')
58 |
59 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/searchbox.css:
--------------------------------------------------------------------------------
1 | .searchbox {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .searchbox .searchbox-text {
12 | font-size: 12px;
13 | border: 0;
14 | margin: 0;
15 | padding: 0 2px;
16 | vertical-align: top;
17 | }
18 | .searchbox .searchbox-prompt {
19 | font-size: 12px;
20 | color: #ccc;
21 | }
22 | .searchbox-button {
23 | width: 18px;
24 | height: 20px;
25 | overflow: hidden;
26 | display: inline-block;
27 | vertical-align: top;
28 | cursor: pointer;
29 | opacity: 0.6;
30 | filter: alpha(opacity=60);
31 | }
32 | .searchbox-button-hover {
33 | opacity: 1.0;
34 | filter: alpha(opacity=100);
35 | }
36 | .searchbox .l-btn-plain {
37 | border: 0;
38 | padding: 0;
39 | vertical-align: top;
40 | opacity: 0.6;
41 | filter: alpha(opacity=60);
42 | -moz-border-radius: 0 0 0 0;
43 | -webkit-border-radius: 0 0 0 0;
44 | border-radius: 0 0 0 0;
45 | }
46 | .searchbox .l-btn-plain:hover {
47 | border: 0;
48 | padding: 0;
49 | opacity: 1.0;
50 | filter: alpha(opacity=100);
51 | -moz-border-radius: 0 0 0 0;
52 | -webkit-border-radius: 0 0 0 0;
53 | border-radius: 0 0 0 0;
54 | }
55 | .searchbox a.m-btn-plain-active {
56 | -moz-border-radius: 0 0 0 0;
57 | -webkit-border-radius: 0 0 0 0;
58 | border-radius: 0 0 0 0;
59 | }
60 | .searchbox .m-btn-active {
61 | border-width: 0 1px 0 0;
62 | -moz-border-radius: 0 0 0 0;
63 | -webkit-border-radius: 0 0 0 0;
64 | border-radius: 0 0 0 0;
65 | }
66 | .searchbox .textbox-button-right {
67 | border-width: 0 0 0 1px;
68 | }
69 | .searchbox .textbox-button-left {
70 | border-width: 0 1px 0 0;
71 | }
72 | .searchbox-button {
73 | background: url('images/searchbox_button.png') no-repeat center center;
74 | }
75 | .searchbox {
76 | border-color: #000;
77 | background-color: #fff;
78 | }
79 | .searchbox .l-btn-plain {
80 | background: #3d3d3d;
81 | }
82 | .searchbox .l-btn-plain-disabled,
83 | .searchbox .l-btn-plain-disabled:hover {
84 | opacity: 0.5;
85 | filter: alpha(opacity=50);
86 | }
87 | .textbox-invalid {
88 | border-color: #ffa8a8;
89 | background-color: #fff3f3;
90 | }
91 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/searchbox.css:
--------------------------------------------------------------------------------
1 | .searchbox {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .searchbox .searchbox-text {
12 | font-size: 12px;
13 | border: 0;
14 | margin: 0;
15 | padding: 0 2px;
16 | vertical-align: top;
17 | }
18 | .searchbox .searchbox-prompt {
19 | font-size: 12px;
20 | color: #ccc;
21 | }
22 | .searchbox-button {
23 | width: 18px;
24 | height: 20px;
25 | overflow: hidden;
26 | display: inline-block;
27 | vertical-align: top;
28 | cursor: pointer;
29 | opacity: 0.6;
30 | filter: alpha(opacity=60);
31 | }
32 | .searchbox-button-hover {
33 | opacity: 1.0;
34 | filter: alpha(opacity=100);
35 | }
36 | .searchbox .l-btn-plain {
37 | border: 0;
38 | padding: 0;
39 | vertical-align: top;
40 | opacity: 0.6;
41 | filter: alpha(opacity=60);
42 | -moz-border-radius: 0 0 0 0;
43 | -webkit-border-radius: 0 0 0 0;
44 | border-radius: 0 0 0 0;
45 | }
46 | .searchbox .l-btn-plain:hover {
47 | border: 0;
48 | padding: 0;
49 | opacity: 1.0;
50 | filter: alpha(opacity=100);
51 | -moz-border-radius: 0 0 0 0;
52 | -webkit-border-radius: 0 0 0 0;
53 | border-radius: 0 0 0 0;
54 | }
55 | .searchbox a.m-btn-plain-active {
56 | -moz-border-radius: 0 0 0 0;
57 | -webkit-border-radius: 0 0 0 0;
58 | border-radius: 0 0 0 0;
59 | }
60 | .searchbox .m-btn-active {
61 | border-width: 0 1px 0 0;
62 | -moz-border-radius: 0 0 0 0;
63 | -webkit-border-radius: 0 0 0 0;
64 | border-radius: 0 0 0 0;
65 | }
66 | .searchbox .textbox-button-right {
67 | border-width: 0 0 0 1px;
68 | }
69 | .searchbox .textbox-button-left {
70 | border-width: 0 1px 0 0;
71 | }
72 | .searchbox-button {
73 | background: url('images/searchbox_button.png') no-repeat center center;
74 | }
75 | .searchbox {
76 | border-color: #ddd;
77 | background-color: #fff;
78 | }
79 | .searchbox .l-btn-plain {
80 | background: #ffffff;
81 | }
82 | .searchbox .l-btn-plain-disabled,
83 | .searchbox .l-btn-plain-disabled:hover {
84 | opacity: 0.5;
85 | filter: alpha(opacity=50);
86 | }
87 | .textbox-invalid {
88 | border-color: #ffa8a8;
89 | background-color: #fff3f3;
90 | }
91 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/menubutton.css:
--------------------------------------------------------------------------------
1 | .m-btn-downarrow,
2 | .s-btn-downarrow {
3 | display: inline-block;
4 | position: absolute;
5 | width: 16px;
6 | height: 16px;
7 | font-size: 1px;
8 | right: 0;
9 | top: 50%;
10 | margin-top: -8px;
11 | }
12 | .m-btn-active,
13 | .s-btn-active {
14 | background: #777;
15 | color: #fff;
16 | border: 1px solid #555;
17 | filter: none;
18 | }
19 | .m-btn-plain-active,
20 | .s-btn-plain-active {
21 | background: transparent;
22 | padding: 0;
23 | border-width: 1px;
24 | border-style: solid;
25 | -moz-border-radius: 5px 5px 5px 5px;
26 | -webkit-border-radius: 5px 5px 5px 5px;
27 | border-radius: 5px 5px 5px 5px;
28 | }
29 | .m-btn .l-btn-left .l-btn-text {
30 | margin-right: 20px;
31 | }
32 | .m-btn .l-btn-icon-right .l-btn-text {
33 | margin-right: 40px;
34 | }
35 | .m-btn .l-btn-icon-right .l-btn-icon {
36 | right: 20px;
37 | }
38 | .m-btn .l-btn-icon-top .l-btn-text {
39 | margin-right: 4px;
40 | margin-bottom: 14px;
41 | }
42 | .m-btn .l-btn-icon-bottom .l-btn-text {
43 | margin-right: 4px;
44 | margin-bottom: 34px;
45 | }
46 | .m-btn .l-btn-icon-bottom .l-btn-icon {
47 | top: auto;
48 | bottom: 20px;
49 | }
50 | .m-btn .l-btn-icon-top .m-btn-downarrow,
51 | .m-btn .l-btn-icon-bottom .m-btn-downarrow {
52 | top: auto;
53 | bottom: 0px;
54 | left: 50%;
55 | margin-left: -8px;
56 | }
57 | .m-btn-line {
58 | display: inline-block;
59 | position: absolute;
60 | font-size: 1px;
61 | display: none;
62 | }
63 | .m-btn .l-btn-left .m-btn-line {
64 | right: 0;
65 | width: 16px;
66 | height: 500px;
67 | border-style: solid;
68 | border-color: #cccccc;
69 | border-width: 0 0 0 1px;
70 | }
71 | .m-btn .l-btn-icon-top .m-btn-line,
72 | .m-btn .l-btn-icon-bottom .m-btn-line {
73 | left: 0;
74 | bottom: 0;
75 | width: 500px;
76 | height: 16px;
77 | border-width: 1px 0 0 0;
78 | }
79 | .m-btn-large .l-btn-icon-right .l-btn-text {
80 | margin-right: 56px;
81 | }
82 | .m-btn-large .l-btn-icon-bottom .l-btn-text {
83 | margin-bottom: 50px;
84 | }
85 | .m-btn-downarrow,
86 | .s-btn-downarrow {
87 | background: url('images/menu_arrows.png') no-repeat 0 center;
88 | }
89 | .m-btn-plain-active,
90 | .s-btn-plain-active {
91 | border-color: #555;
92 | background-color: #777;
93 | color: #fff;
94 | }
95 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/menubutton.css:
--------------------------------------------------------------------------------
1 | .m-btn-downarrow,
2 | .s-btn-downarrow {
3 | display: inline-block;
4 | position: absolute;
5 | width: 16px;
6 | height: 16px;
7 | font-size: 1px;
8 | right: 0;
9 | top: 50%;
10 | margin-top: -8px;
11 | }
12 | .m-btn-active,
13 | .s-btn-active {
14 | background: #E6E6E6;
15 | color: #444;
16 | border: 1px solid #ddd;
17 | filter: none;
18 | }
19 | .m-btn-plain-active,
20 | .s-btn-plain-active {
21 | background: transparent;
22 | padding: 0;
23 | border-width: 1px;
24 | border-style: solid;
25 | -moz-border-radius: 0px 0px 0px 0px;
26 | -webkit-border-radius: 0px 0px 0px 0px;
27 | border-radius: 0px 0px 0px 0px;
28 | }
29 | .m-btn .l-btn-left .l-btn-text {
30 | margin-right: 20px;
31 | }
32 | .m-btn .l-btn-icon-right .l-btn-text {
33 | margin-right: 40px;
34 | }
35 | .m-btn .l-btn-icon-right .l-btn-icon {
36 | right: 20px;
37 | }
38 | .m-btn .l-btn-icon-top .l-btn-text {
39 | margin-right: 4px;
40 | margin-bottom: 14px;
41 | }
42 | .m-btn .l-btn-icon-bottom .l-btn-text {
43 | margin-right: 4px;
44 | margin-bottom: 34px;
45 | }
46 | .m-btn .l-btn-icon-bottom .l-btn-icon {
47 | top: auto;
48 | bottom: 20px;
49 | }
50 | .m-btn .l-btn-icon-top .m-btn-downarrow,
51 | .m-btn .l-btn-icon-bottom .m-btn-downarrow {
52 | top: auto;
53 | bottom: 0px;
54 | left: 50%;
55 | margin-left: -8px;
56 | }
57 | .m-btn-line {
58 | display: inline-block;
59 | position: absolute;
60 | font-size: 1px;
61 | display: none;
62 | }
63 | .m-btn .l-btn-left .m-btn-line {
64 | right: 0;
65 | width: 16px;
66 | height: 500px;
67 | border-style: solid;
68 | border-color: #b3b3b3;
69 | border-width: 0 0 0 1px;
70 | }
71 | .m-btn .l-btn-icon-top .m-btn-line,
72 | .m-btn .l-btn-icon-bottom .m-btn-line {
73 | left: 0;
74 | bottom: 0;
75 | width: 500px;
76 | height: 16px;
77 | border-width: 1px 0 0 0;
78 | }
79 | .m-btn-large .l-btn-icon-right .l-btn-text {
80 | margin-right: 56px;
81 | }
82 | .m-btn-large .l-btn-icon-bottom .l-btn-text {
83 | margin-bottom: 50px;
84 | }
85 | .m-btn-downarrow,
86 | .s-btn-downarrow {
87 | background: url('images/menu_arrows.png') no-repeat 0 center;
88 | }
89 | .m-btn-plain-active,
90 | .s-btn-plain-active {
91 | border-color: #ddd;
92 | background-color: #E6E6E6;
93 | color: #444;
94 | }
95 |
--------------------------------------------------------------------------------
/AngoraEditor/dialog/app.html:
--------------------------------------------------------------------------------
1 |
17 |
56 |
57 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/tooltip.css:
--------------------------------------------------------------------------------
1 | .tooltip {
2 | position: absolute;
3 | display: none;
4 | z-index: 9900000;
5 | outline: none;
6 | opacity: 1;
7 | filter: alpha(opacity=100);
8 | padding: 5px;
9 | border-width: 1px;
10 | border-style: solid;
11 | border-radius: 5px;
12 | -moz-border-radius: 5px 5px 5px 5px;
13 | -webkit-border-radius: 5px 5px 5px 5px;
14 | border-radius: 5px 5px 5px 5px;
15 | }
16 | .tooltip-content {
17 | font-size: 12px;
18 | }
19 | .tooltip-arrow-outer,
20 | .tooltip-arrow {
21 | position: absolute;
22 | width: 0;
23 | height: 0;
24 | line-height: 0;
25 | font-size: 0;
26 | border-style: solid;
27 | border-width: 6px;
28 | border-color: transparent;
29 | _border-color: tomato;
30 | _filter: chroma(color=tomato);
31 | }
32 | .tooltip-right .tooltip-arrow-outer {
33 | left: 0;
34 | top: 50%;
35 | margin: -6px 0 0 -13px;
36 | }
37 | .tooltip-right .tooltip-arrow {
38 | left: 0;
39 | top: 50%;
40 | margin: -6px 0 0 -12px;
41 | }
42 | .tooltip-left .tooltip-arrow-outer {
43 | right: 0;
44 | top: 50%;
45 | margin: -6px -13px 0 0;
46 | }
47 | .tooltip-left .tooltip-arrow {
48 | right: 0;
49 | top: 50%;
50 | margin: -6px -12px 0 0;
51 | }
52 | .tooltip-top .tooltip-arrow-outer {
53 | bottom: 0;
54 | left: 50%;
55 | margin: 0 0 -13px -6px;
56 | }
57 | .tooltip-top .tooltip-arrow {
58 | bottom: 0;
59 | left: 50%;
60 | margin: 0 0 -12px -6px;
61 | }
62 | .tooltip-bottom .tooltip-arrow-outer {
63 | top: 0;
64 | left: 50%;
65 | margin: -13px 0 0 -6px;
66 | }
67 | .tooltip-bottom .tooltip-arrow {
68 | top: 0;
69 | left: 50%;
70 | margin: -12px 0 0 -6px;
71 | }
72 | .tooltip {
73 | background-color: #666;
74 | border-color: #000;
75 | color: #fff;
76 | }
77 | .tooltip-right .tooltip-arrow-outer {
78 | border-right-color: #000;
79 | }
80 | .tooltip-right .tooltip-arrow {
81 | border-right-color: #666;
82 | }
83 | .tooltip-left .tooltip-arrow-outer {
84 | border-left-color: #000;
85 | }
86 | .tooltip-left .tooltip-arrow {
87 | border-left-color: #666;
88 | }
89 | .tooltip-top .tooltip-arrow-outer {
90 | border-top-color: #000;
91 | }
92 | .tooltip-top .tooltip-arrow {
93 | border-top-color: #666;
94 | }
95 | .tooltip-bottom .tooltip-arrow-outer {
96 | border-bottom-color: #000;
97 | }
98 | .tooltip-bottom .tooltip-arrow {
99 | border-bottom-color: #666;
100 | }
101 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/metro/tooltip.css:
--------------------------------------------------------------------------------
1 | .tooltip {
2 | position: absolute;
3 | display: none;
4 | z-index: 9900000;
5 | outline: none;
6 | opacity: 1;
7 | filter: alpha(opacity=100);
8 | padding: 5px;
9 | border-width: 1px;
10 | border-style: solid;
11 | border-radius: 5px;
12 | -moz-border-radius: 0px 0px 0px 0px;
13 | -webkit-border-radius: 0px 0px 0px 0px;
14 | border-radius: 0px 0px 0px 0px;
15 | }
16 | .tooltip-content {
17 | font-size: 12px;
18 | }
19 | .tooltip-arrow-outer,
20 | .tooltip-arrow {
21 | position: absolute;
22 | width: 0;
23 | height: 0;
24 | line-height: 0;
25 | font-size: 0;
26 | border-style: solid;
27 | border-width: 6px;
28 | border-color: transparent;
29 | _border-color: tomato;
30 | _filter: chroma(color=tomato);
31 | }
32 | .tooltip-right .tooltip-arrow-outer {
33 | left: 0;
34 | top: 50%;
35 | margin: -6px 0 0 -13px;
36 | }
37 | .tooltip-right .tooltip-arrow {
38 | left: 0;
39 | top: 50%;
40 | margin: -6px 0 0 -12px;
41 | }
42 | .tooltip-left .tooltip-arrow-outer {
43 | right: 0;
44 | top: 50%;
45 | margin: -6px -13px 0 0;
46 | }
47 | .tooltip-left .tooltip-arrow {
48 | right: 0;
49 | top: 50%;
50 | margin: -6px -12px 0 0;
51 | }
52 | .tooltip-top .tooltip-arrow-outer {
53 | bottom: 0;
54 | left: 50%;
55 | margin: 0 0 -13px -6px;
56 | }
57 | .tooltip-top .tooltip-arrow {
58 | bottom: 0;
59 | left: 50%;
60 | margin: 0 0 -12px -6px;
61 | }
62 | .tooltip-bottom .tooltip-arrow-outer {
63 | top: 0;
64 | left: 50%;
65 | margin: -13px 0 0 -6px;
66 | }
67 | .tooltip-bottom .tooltip-arrow {
68 | top: 0;
69 | left: 50%;
70 | margin: -12px 0 0 -6px;
71 | }
72 | .tooltip {
73 | background-color: #fff;
74 | border-color: #ddd;
75 | color: #444;
76 | }
77 | .tooltip-right .tooltip-arrow-outer {
78 | border-right-color: #ddd;
79 | }
80 | .tooltip-right .tooltip-arrow {
81 | border-right-color: #fff;
82 | }
83 | .tooltip-left .tooltip-arrow-outer {
84 | border-left-color: #ddd;
85 | }
86 | .tooltip-left .tooltip-arrow {
87 | border-left-color: #fff;
88 | }
89 | .tooltip-top .tooltip-arrow-outer {
90 | border-top-color: #ddd;
91 | }
92 | .tooltip-top .tooltip-arrow {
93 | border-top-color: #fff;
94 | }
95 | .tooltip-bottom .tooltip-arrow-outer {
96 | border-bottom-color: #ddd;
97 | }
98 | .tooltip-bottom .tooltip-arrow {
99 | border-bottom-color: #fff;
100 | }
101 |
--------------------------------------------------------------------------------
/AngoraEditor/script/jquery/themes/black/window.css:
--------------------------------------------------------------------------------
1 | .window {
2 | overflow: hidden;
3 | padding: 5px;
4 | border-width: 1px;
5 | border-style: solid;
6 | }
7 | .window .window-header {
8 | background: transparent;
9 | padding: 0px 0px 6px 0px;
10 | }
11 | .window .window-body {
12 | border-width: 1px;
13 | border-style: solid;
14 | border-top-width: 0px;
15 | }
16 | .window .window-body-noheader {
17 | border-top-width: 1px;
18 | }
19 | .window .panel-body-nobottom {
20 | border-bottom-width: 0;
21 | }
22 | .window .window-header .panel-icon,
23 | .window .window-header .panel-tool {
24 | top: 50%;
25 | margin-top: -11px;
26 | }
27 | .window .window-header .panel-icon {
28 | left: 1px;
29 | }
30 | .window .window-header .panel-tool {
31 | right: 1px;
32 | }
33 | .window .window-header .panel-with-icon {
34 | padding-left: 18px;
35 | }
36 | .window-proxy {
37 | position: absolute;
38 | overflow: hidden;
39 | }
40 | .window-proxy-mask {
41 | position: absolute;
42 | filter: alpha(opacity=5);
43 | opacity: 0.05;
44 | }
45 | .window-mask {
46 | position: absolute;
47 | left: 0;
48 | top: 0;
49 | width: 100%;
50 | height: 100%;
51 | filter: alpha(opacity=40);
52 | opacity: 0.40;
53 | font-size: 1px;
54 | overflow: hidden;
55 | }
56 | .window,
57 | .window-shadow {
58 | position: absolute;
59 | -moz-border-radius: 5px 5px 5px 5px;
60 | -webkit-border-radius: 5px 5px 5px 5px;
61 | border-radius: 5px 5px 5px 5px;
62 | }
63 | .window-shadow {
64 | background: #777;
65 | -moz-box-shadow: 2px 2px 3px #787878;
66 | -webkit-box-shadow: 2px 2px 3px #787878;
67 | box-shadow: 2px 2px 3px #787878;
68 | filter: progid:DXImageTransform.Microsoft.Blur(pixelRadius=2,MakeShadow=false,ShadowOpacity=0.2);
69 | }
70 | .window,
71 | .window .window-body {
72 | border-color: #000;
73 | }
74 | .window {
75 | background-color: #3d3d3d;
76 | background: -webkit-linear-gradient(top,#454545 0,#383838 20%);
77 | background: -moz-linear-gradient(top,#454545 0,#383838 20%);
78 | background: -o-linear-gradient(top,#454545 0,#383838 20%);
79 | background: linear-gradient(to bottom,#454545 0,#383838 20%);
80 | background-repeat: repeat-x;
81 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#454545,endColorstr=#383838,GradientType=0);
82 | }
83 | .window-proxy {
84 | border: 1px dashed #000;
85 | }
86 | .window-proxy-mask,
87 | .window-mask {
88 | background: #000;
89 | }
90 | .window .panel-footer {
91 | border: 1px solid #000;
92 | position: relative;
93 | top: -1px;
94 | }
95 |
--------------------------------------------------------------------------------
/AngoraEditor/dialog/newProject.html:
--------------------------------------------------------------------------------
1 |
17 |
60 |
61 |
--------------------------------------------------------------------------------
/AngoraEditor/script/editor/AngoraEditor.js:
--------------------------------------------------------------------------------
1 | /**
2 | * @author RedSheep