-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
291 lines (247 loc) · 8.87 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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html>
<head>
<title>Gamedev web tools</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- dependencies and stylesheet -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<link href="css/index.css" rel="stylesheet">
<script src="js/dependencies/jquery-2.0.0.min.js"></script>
<script src="js/dependencies/bootstrap.min.js"></script>
<script src="js/dependencies/jquery.jkey.min.js"></script>
<script src="js/dependencies/zip/zip.js"></script>
<script src="js/dependencies/zip/inflate.js"></script>
<script src="js/dependencies/zip/zip-ext.js"></script>
</head>
<body>
<div id="mainContainer" class="container-fluid">
<!--Application bar-->
<div class="row-fluid">
<div class="well-small applicationBar">
<form class="form-inline">
<span id="applicationNotConnectedControls">
<span class="applicationBarTitle">
<i class="icon-wrench"></i>
<b>GDevWebTools</b>
</span>
<div class="input-append">
<input id="serverAddressInput" type="text" value=""/>
<button class="btn" type="button"
title="Connect to the application/piping server">Connect</button>
</div>
</span>
<span id="applicationConnectedControls" class="dontShowAtStart">
<button onClick="application.disconnect();" class="btn" type="button" title="Disconnect">
<i class="icon-arrow-left"></i></button>
<span id="appTitle" class="applicationBarTitle">
<b>Unknown application</b>
</span>
<span id="appRuntimeActions">
<div class="btn-group">
<button onClick="application.activate();" class="btn" type="button" title="Pause/Play">
<i id="appActivateIcon" class="icon-pause"></i></button>
<button id="appStepButton" class="btn dontShowAtStart" type="button"
title="Step one frame"><i class="icon-step-forward"></i></button>
<button onClick="application.quit();" class="btn" type="button" title="Exit">
<i class="icon-off"></i></button>
</div>
<button id="appKeyboardButton" type="button"
class="btn btn-small" data-toggle="button"
title="Send keyboard input to the application">Keyboard</button>
</span>
<span id="appFps">Average FPS: <span>0</span></span>
</span>
</form>
</div>
</div>
<!--Control tab bar-->
<div class="tabbable tabs-left">
<ul id="tabBar" class="nav nav-tabs" style="">
<!--Monitoring-->
<li class="active" id="tabProfiling"><a data-toggle="tab">Monitor</a></li>
<div id="tabProfilingTabs" class="tabButtonGroup" >
<li><button id="tabProfilingTabGraph" class="btn tabButton">Time graph</button></li>
<li><button id="tabMonitorTabMemory" class="btn tabButton">Memory</button></li>
<li><button id="tabProfilingTabThreads" class="btn tabButton">Tasks</button></li>
<li><button id="tabProfilingTabTimers" class="btn tabButton">Timers</button></li>
</div>
<!--Data
<li id="tabData"><a data-toggle="tab">Assets</a></li>
<div id="tabDataTabs" class="tabButtonGroup" data-toggle="buttons-radio">
<li><button id="tabDataTabShaders" class="btn tabButton">Shaders</button></li>
</div>-->
<!--Options tab-->
<li id="tabOptions"><a data-toggle="tab">Options</a></li>
<!--Options tab-->
<li id="tabHelp"><a data-toggle="tab">Help</a></li>
</ul>
<div class="tab-content">
<!--Frame dt-->
<div id="profilingTimeGraphView" class="viewDiv dontShowAtStart">
<h4 class="text-left" >Frame delta time</h4>
<div>
<canvas class="viewCanvas"></canvas>
</div>
</div>
<!--Thread profiler-->
<div id="profilingThreadView" class="dontShowAtStart">
<h4 class="text-left">Task and thread profiler</h4>
<div class="borderedWidget">
<canvas class="viewCanvas"></canvas>
</div>
</div>
<!--Memory usage-->
<div id="memoryUsageGraphView" class="viewDiv dontShowAtStart">
<h4 class="text-left" >Memory usage</h4>
<div>
<canvas class="viewCanvas"></canvas>
</div>
</div>
<!--Timer profiler-->
<div id="profilingResultsView" class="dontShowAtStart">
<h4 class="text-left">Timer profiling results</h4>
<table class="table table-bordered table-condensed">
<thead>
<tr><th>Name</th><th>Samples</th><th>Mean</th><th>Median</th>
<th>Standart Deviation</th><th>Total</th></tr>
</thead>
<tbody></tbody>
</table>
</div>
<!-- -->
<div id="shadersView" class="dontShowAtStart">
<div class="inlineHeader">
<h4>Shaders</h4>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Shaders
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a>Shader 0</a></li>
<li><a>Shader 1</a></li>
</ul>
</div>
</div>
<div class="codeEditor">
<textarea></textarea>
</div>
</div>
<!--Options-->
<div id="optionsView" class="dontShowAtStart">
<h4>Connection</h4>
<label class="checkbox">
<input id="optionsAutoconnect" type="checkbox"/>
Autoconnect at startup.
</label>
<label class="checkbox">
<input id="optionsProbe" type="checkbox"/>
Periodically probe for a running application.
</label>
<!-- extensions -->
<h4><br>Extension packages</h4>
<div id="optionsExtensionsSearchBar"
class="input-prepend input-append" style="margin-left:1px;">
<span class="add-on"><i class="icon-search"></i></span>
<input id="" type="text" value=""/>
<div class="btn-group">
<button class="btn"
title="Search for a package in the installed packages">
Search</button>
<button class="btn dropdown-toggle" data-toggle="dropdown"
title="Add a new package">
Add new
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a id="optionsExtensionsNew">Choose file..</a></li>
<li><a id="optionsExtensionsNewUrl">Enter url..</a></li>
</ul>
</div>
</div>
<div id="optionsExtensionsUrlBar"
class="dontShowAtStart">
<div class="input-prepend input-append" style="margin-left:1px;">
<button id="optionsExtensionsUrlBack" class="btn">
<i class="icon-arrow-left"></i></button>
<input id="optionsExtensionsUrl" class="span8" type="text" value=""
placeholder="e.g. http://github.com/gamedevwebtools/package-sample-hello-world/zipball/master"/>
<button class="btn" id="optionsExtensionsUrlGet">
Download</button>
</div>
<div id="optionsExtensionsUrlWarn"
class="alert alert-error dontShowAtStart">
<strong>Warning!</strong>
Some browsers don't allow download requests when gamedevwebtools
is working directly from the filesystem (file://...).<br/>
Therefore, Download button will open the link in a new tab, and
you will have to add the downloaded zip file manually with the choose file option.
</div>
</div>
<input id="optionsExtensionNewFile" type="file" accept="application/zip" style="opacity:0;"/>
<div class="well well-small overflowWidget">
<ul id="optionsExtensions" class="unstyled">
<li><h5>You don't have any extension packages installed :(</h5></li>
</ul>
</div>
<!--
<h4>Keyboard shortcuts</h4>
<dl id="optionsViewShortcuts" class="dl-horizontal">
</dl>
-->
<h4><br>UI</h4>
<button id="optionsUiReset" class="btn" type="button">
Reset ui options</button>
<!--<h4><br>Data</h4>
<span>Store data for last the last</span>
<input type="text"><span>frames.</span><br>
<button class="btn" type="button">Export data(TODO)</button>-->
</div>
<!--help-->
<div id="helpView" class="dontShowAtStart">
<h4>Introduction</h4>
<p>A set of browser based tools for game development.</p>
<h4>Tool usage</h4>
<ul>
<li><b>Play/Pause button:</b> activates/deactivates the application.</li>
<li><b>Power button:</b> shuts down the application.</li>
<li><b>Keyboard button:</b> when it is enabled,
the browser sends the keyboard input to the application.</li>
<li><b>Console:</b> click on the console to enable input of javascript code.
To send a message to the application type <code>
application.send('message')</code> or <code>
application.send('message',{value:'Hello world!'})</code></li>
<li><b>Task and thread profiler:</b> hold the left mouse button
down to pan around, and hold the right mouse button to zoom in and out.</li>
</ul>
<h4>More</h4>
<p>See <a href="https://github.com/hyp/gamedevwebtools/blob/master/README.md">README.md</a> for more information.</p>
</div>
</div>
</div>
<!--Logging console-->
<div class="fixedBottomBar">
<div id="logoutputViewSizer" class="separatorBar separatorBar-horizontal">
</div>
<div id="logoutputView" class="well well-small viewLogOutput">
<div></div>
<input type="text" class="input-block-level"/>
</div>
</div>
<!--Load the application-->
<script src="js/core/core.js"></script>
<script src="js/core/browserFeatures.js"></script>
<script src="js/application/packageManager.js"></script>
<script src="js/main.js"></script>
<script src="js/ui/components.js"></script>
<script src="js/ui/graphView.js"></script>
<script src="js/ui/taskThreadView.js"></script>
<script src="js/ui/sizeBar.js"></script>
<script src="js/tools/keyboardButton.js"></script>
<script src="js/tools/fpsCounter.js"></script>
<script src="js/tools/console.js"></script>
<script src="js/tools/monitoring.js"></script>
<script src="js/ui/ui.js"></script>
</body>
</html>