-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
233 lines (226 loc) · 10 KB
/
index.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" value="IE=9">
<title>Integrated Development Environment Application For Generic Animation Script</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="styles/default.css" />
<link rel="stylesheet" href="styles/ui.css" />
<link rel="stylesheet" href="styles/layout.css" />
<link rel="stylesheet" href="styles/sections.css" />
<link rel="stylesheet" href="styles/icons.css" />
<link rel="stylesheet" href="styles/canvas.css" />
<!-- External -->
<script src="scripts/lib/libgbtranspile.js"></script>
<!-- 3rd party -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-promise/4.1.1/es6-promise.auto.min.js"></script>
<!-- Base -->
<script src="scripts/pettan.js"></script>
<script src="scripts/global.js"></script>
<script src="scripts/timer.js"></script>
<script src="scripts/repr.js"></script>
<script src="scripts/representation/propmanager.js"></script>
<script src="scripts/representation/repr.text.js"></script>
<script src="scripts/representation/repr.sprite.js"></script>
<script src="scripts/representation/repr.button.js"></script>
<script src="scripts/representation/repr.frame.js"></script>
<script src="scripts/representation/repr.objects.js"></script>
<!-- use asset-editor versions for svg sprite handling -->
<script src="asset-editor/scripts/canvas.js"></script>
<script src="asset-editor/scripts/sprite.js"></script>
<script src="scripts/components/common.primitives.js"></script>
<script src="scripts/components/common.miniwindow.js"></script>
<script src="scripts/components/common.properties.js"></script>
<script src="scripts/components/ide.command.js"></script>
<script src="scripts/components/ide.popup.js"></script>
<script src="scripts/components/ide.playback.js"></script>
<script src="scripts/components/ide.saveload.js"></script>
<script src="scripts/components/ide.timeline.js"></script>
<script src="scripts/components/ide.editor.js"></script>
<script src="scripts/components/ide.trace.js"></script>
<script src="scripts/components/ide.library.js"></script>
<script src="scripts/components/ide.animation.js"></script>
<script src="scripts/components/ide.properties.js"></script>
<script src="scripts/components/ide.macros.js"></script>
<script src="scripts/components/ide.layers.js"></script>
<script src="scripts/ide.js"></script>
</head>
<body class="layout-default">
<noscript>
<div id="noscript-notice" class="modal-group error">
<div class="overlay"></div>
<div class="modal">
<h2>Error</h2>
<p>
This IDE tool runs locally and requires JavaScript for the dynamic functionality.
Please enable JavaScript or switch to a browser that supports it.
</p>
</div>
</div>
</noscript>
<!-- Below is for the import UI -->
<div id="import-ui" class="modal-group" style="display: none;">
<div class="overlay"></div>
<div id="import-ui-prompt" class="modal" style="width: 640px; height: 360px; display: none;">
<h2>Import File</h2>
<p>
Please select a file:<br><br>
<input type="file" id="import-ui-file" accept=".txt,.json,.gascript"/>
</p>
<p>
Or paste the contents here:<br><br>
<textarea id="import-ui-textarea"></textarea>
</p>
<div id="import-ui-btn-cancel" class="button btn-padded pull-right">Cancel</div>
<div id="import-ui-btn-import" class="button btn-padded pull-right">Import</div>
</div>
<div id="import-ui-progress" class="modal-bottom" style="width: 360px; height: 60px; display: none;">
<p>Importing <span id="import-ui-progress-label">...</span></p>
<div class="progress">
<div id="import-ui-progress-bar" class="bar" style="width: 0%"></div>
</div>
</div>
</div>
<!-- Below is for the commandline -->
<div id="commandline-ui" class="modal-group" style="display: none;">
<div class="overlay"></div>
<div id="commandline-ui-prompt" class="modal-bottom">
<input id="commandline-ui-text" type="text"/>
</div>
</div>
<!-- Below is a general popup message -->
<div id="modal-popup" class="modal-group" style="display: none">
<div class="overlay"></div>
<div id="modal-popup-prompt" class="modal">
<div id="modal-popup-body">
</div>
<div id="modal-popup-btn-ok" class="button btn-padded pull-right">
OK
</div>
</div>
</div>
<!-- Below is the main IDE -->
<div id="left" class="container layout-block" draggable="false">
<div id="toolbox" class="mini-window" style="height: 306px;">
<h1>Toolbox</h1>
<div class="body">
<div id='tool-select' class="tool-icon cursor button" tabindex="0" role="button" title="Select Tool"></div>
<div class="tool-icon-sep"></div>
<div id='tool-text' class="tool-icon textbox button" tabindex="0" role="button" title="Text Object Tool"></div>
<div id='tool-sprite' class="tool-icon sprite button" tabindex="0" role="button" title="Sprite Tool"></div>
<div id='tool-button' class="tool-icon click-target button" tabindex="0" role="button" title="Button Tool"></div>
<div class="tool-icon-sep"></div>
<div id='tool-frame' class="tool-icon frame button" tabindex="0" role="button" title="Frame Tool"></div>
</div>
</div>
<div id="ordering" class="mini-window" style="height: 106px;">
<h1>Ordering</h1>
<div class="body">
<div id='order-up' class="tool-icon move-up button" tabindex="1" role="button" title="Move Up"></div>
<div id='order-down' class="tool-icon move-down button" tabindex="1" role="button" title="Move Down"></div>
</div>
</div>
<div id="playback" class="mini-window" style="height: 170px;">
<h1>Playback</h1>
<div class="body">
<div id='playback-play-pause' class="tool-icon play button" tabindex="1" role="button" title="Play/Pause"></div>
<div id='playback-stop' class="tool-icon stop button" tabindex="1" role="button" title="Stop"></div>
<div id='playback-rec' class="tool-icon rec button" tabindex="1" role="button" title="Add Pin"></div>
<div id='playback-rw-pin' class="tool-icon rw button" tabindex="1" role="button" title="Rewind to previous key frame"></div>
<div id='playback-ff-pin' class="tool-icon ff button" tabindex="1" role="button" title="Fast-forward to next key frame"></div>
</div>
</div>
<div id="export" class="mini-window" style="height: 220px;">
<h1>Export</h1>
<div class="body">
<div id="io-export-gas" class="button" tabindex="2" role="button"><p>Generic (GAS-S)</p></div>
<div id="io-export-mode7" class="button" tabindex="2" role="button"><p>Mode 7 (Legacy)</p></div>
<div id="io-export-bas" class="button" tabindex="2" role="button"><p>Bilibili (BAS)</p></div>
<div id="io-export-htmlcss" class="button" tabindex="2" role="button"><p>HTML+CSS3</p></div>
</div>
</div>
<div id="import" class="mini-window" style="height: 200px;">
<h1>Import</h1>
<div class="body">
<div id="io-import-gas" class="button" tabindex="2" role="button"><p>Generic (GAS-S)</p></div>
</div>
</div>
</div>
<div id="center" class="container layout-block" draggable="false">
<div id="timeline" class="container" draggable="false">
<div class="inner">
<div id="ruler"></div>
<div id="tracks"></div>
<div id="slider">
<div id="slider-value">
000.000
</div>
</div>
</div>
</div>
<div id="editor" draggable="false">
<div id="editor-toolbar" class="micro-toolbar" draggable="false">
<div id="editor-tools" class="btn-group pull-left">
<div id="editor-bg-black" class="button" title="Set black background">B</div>
<div id="editor-bg-white" class="button" title="Set white background">W</div>
<div id="editor-bg-checkered" class="button" title="Set checkerboard background">C</div>
<div class="button-separator"></div>
<div id="editor-config-preview" class="button" title="Preview Mode (Image Borders Hidden)">P</div>
</div>
<div class="input-area pull-right">
W:
<input id="editor-config-width" type="number" value="640" min="1" max="2048"/>
H:
<input id="editor-config-height" type="number" value="480" min="1" max="2048"/>
</div>
</div>
<div id="work-area" draggable="false">
<div id="canvas" draggable="false" style="width: 640px; height: 480px;">
</div>
</div>
</div>
<div id="messages" class="container" draggable="false"></div>
</div>
<div id="right" class="container layout-block" draggable="false">
<div id="library" class="mini-window">
<h1>Library</h1>
<div class="body">
<div class="fixed-group">
<label for="library-import">Import File</label>
<input type="file" id="library-import" accept="image/*,.txt,.json" multiple/>
<div class="clearfix"></div>
</div>
<div id="library-inner">
</div>
</div>
</div>
<div id="animation" class="mini-window collapse">
<h1>Animation</h1>
<div id="animation-inner" class="body wide-labels"></div>
</div>
<div id="properties" class="mini-window">
<h1>Properties</h1>
<div id="properties-inner" class="body wide-labels"></div>
</div>
<div id="macros" class="mini-window collapse">
<h1>Macros</h1>
<div id="macros-inner" class="body"></div>
</div>
<div id="layers" class="mini-window collapse">
<h1>Layers</h1>
<div class="body">
<div class="fixed-group">
<div id="layers-add" class="group-button pull-right">+</div>
<div class="clearfix"></div>
</div>
<div id="layers-inner">
</div>
</div>
</div>
</div>
<div id="right-placeholder" class="container layout-block" draggable="false">
Expand
</div>
</body>
</html>