-
Notifications
You must be signed in to change notification settings - Fork 1
/
editor.html
158 lines (143 loc) · 6.35 KB
/
editor.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2012 - 2014 Stefan Lehmann
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy of
~ this software and associated documentation files (the "Software"), to deal in
~ the Software without restriction, including without limitation the rights to
~ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
~ the Software, and to permit persons to whom the Software is furnished to do so,
~ subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in all
~ copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<!--
~ The MIT License (MIT)
~
~ Copyright (c) 2012 - 2014 Stefan Lehmann
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy of
~ this software and associated documentation files (the "Software"), to deal in
~ the Software without restriction, including without limitation the rights to
~ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
~ the Software, and to permit persons to whom the Software is furnished to do so,
~ subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in all
~ copies or substantial portions of the Software.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
~ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
~ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
~ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
~ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>Editor</title>
<link rel="stylesheet" type="text/css" href="lib/editor/script/editor.css"/>
<!-- TODO: add as external libraries -->
<script src="lib/external/miniclass.js"></script>
<script src="lib/external/jquery.js"></script>
<script src="lib/external/jquery-ui-1.8.1.custom.min.js"></script>
<script src="lib/external/underscore.js"></script>
<script src="lib/external/d3.js"></script>
<script src="lib/external/stats.js"></script>
<script src="lib/external/dat.gui.js"></script>
<script src="lib/external/tweenjs-0.5.1.min.js"></script>
<script src="lib/external/preloadjs-0.4.1.min.js"></script>
<script src="lib/external/paper-full.js"></script>
<script src="lib/external/toxiclibs.js"></script>
<script src="lib/external/screenfull.js"></script>
<script src="lib/external/libraryextensions.js"></script>
<!-- TODO: Editor does not support new requireconfig yet -->
<script data-main="lib/editor/editorbootstrap" src="lib/external/require.js"></script>
</head>
<body>
<div id="headerMenu">
<span class="headerTitle"></span>
<span class="unsavedTitle"></span>
<span class="headerFloat">
<input type="button" id="levelSave" value="Save" class="button"/>
<input type="button" id="levelSaveAs" value="Save As" class="button"/>
<input type="button" id="levelNew" value="New" class="button"/>
<input type="button" id="levelLoad" value="Load" class="button"/>
<input type="button" id="reloadImages" value="Reload Images" title="Reload Images" class="button"/>
<input type="button" id="toggleSidebar" value="Toggle Sidebar" title="Toggle Sidebar" class="button"/>
</span>
</div>
<div id="editor">
<div id="entityMenu"></div>
<canvas id="canvas"></canvas>
<div id="menu">
<div id="layerContainer">
<h2>Layers</h2>
<div id="layerButtons">
<div class="button" id="buttonAddLayer" title="Add Layer">+</div>
</div>
<div id="layers">
</div>
</div>
<div id="layerSettings">
<h2>Layer Settings</h2>
<dl>
<dt>Name:</dt><dd><input type="text" class="text" id="layerName"/></dd>
<dt>Tileset:</dt><dd><input type="text" class="text" id="layerTileset"/></dd>
<dt>Tilesize:</dt><dd><input type="text" class="number" id="layerTilesize"/></dd>
<dt>Dimensions:</dt>
<dd>
<input type="text" class="number" id="layerWidth"/> × <input type="text" class="number" id="layerHeight"/>
</dd>
<dt>Distance:</dt><dd><input type="text" class="number" id="layerDistance"/></dd>
<dd>
<input type="checkbox" id="layerIsCollision"/>
<label for="layerIsCollision">Is Collision Layer</label>
</dd>
<dd>
<input type="checkbox" id="layerPreRender"/>
<label for="layerPreRender">Pre-Render in Game</label>
</dd>
<dd>
<input type="checkbox" id="layerRepeat"/>
<label for="layerRepeat">Repeat</label>
</dd>
<dd>
<input type="checkbox" id="layerLinkWithCollision"/>
<label for="layerLinkWithCollision">Link with Collision</label>
</dd>
<dd>
<input type="button" id="buttonSaveLayerSettings" value="Apply Changes" class="button"/>
<input type="button" id="buttonRemoveLayer" value="Delete" class="button"/>
</dd>
</dl>
</div>
<div id="entitySettings">
<h2>Entity Settings</h2>
<h3 id="entityClass">EntityClassName</h3>
<div id="entityDefinitions">
<div class="entityDefinition"><span class="key">x</span>:<span class="value">188</span></div>
<div class="entityDefinition"><span class="key">y</span>:<span class="value">269</span></div>
</div>
<dl id="entityDefinitionInput">
<dt>Key:</dt><dd><input type="text" class="text" id="entityKey"/></dd>
<dt>Value:</dt><dd><input type="text" class="text" id="entityValue"/></dd>
</dl>
</div>
</div>
<div id="zoomIndicator">1x</div>
</div>
</body>
</html>