forked from BlueMountainsIO/OnsetLuaScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.html
More file actions
43 lines (36 loc) · 916 Bytes
/
debug.html
File metadata and controls
43 lines (36 loc) · 916 Bytes
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
<html>
<head>
<script>
(function(obj)
{
ue.game = {};
ue.game.callevent = function(name, ...args)
{
if (typeof name != "string") {
return;
}
if (args.length == 0) {
obj.callevent(name, "")
}
else {
let params = []
for (let i = 0; i < args.length; i++) {
params[i] = args[i];
}
obj.callevent(name, JSON.stringify(params));
}
};
})(ue.game);
CallEvent = ue.game.callevent;
</script>
<script src="http://asset/debug/gui/debug.js"></script>
<link rel="stylesheet" href="http://asset/debug/gui/styles.css">
</head>
<body>
<span id="localInfo" class="dataInfo">localInfo</span>
<span id="clientPools" class="dataInfo">clientPools</span>
<span id="serverPools" class="dataInfo">serverPools</span>
<span id="netClient" class="dataInfo2">netClient</span>
<span id="netServer" class="dataInfo2" style="padding-left: 10px;">netServer</span>
</body>
</html>