Files
kiwistation/tgui/tgui.html
T
oranges b526be704c TGUI and asset cache sending improvements (#43090)
Pills are now two spreadsheets instead of individual icons.

This reduces assets sent by about 19-20.

Furthermore tgui has been extended with a new proc ui_base_html which
allows a user to customise the html sent as the base for a tgui window.
This allows someone to provide custom spritesheet css as links in a
specific tgui window without having to add it to the global html.
2019-03-17 09:47:48 -07:00

38 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv='X-UA-Compatible' content='IE=edge'/>
<meta charset='utf-8'/>
<script>
window.update = function (dataString) {
var data = JSON.parse(dataString);
if (window.tgui) {
window.tgui.set("config", data.config);
if (typeof data.data !== 'undefined') {
window.tgui.set("data", data.data);
window.tgui.animate("adata", data.data);
}
}
};
</script>
<link rel='stylesheet' href='tgui.css'/>
<!-- This is processed in byond, so interfaces can override the html head if needed, for custom sheets of style etc -->
<!--customheadhtml-->
<script id='data' type='application/json' data-ref='[ref]'>{}</script>
<script defer src='tgui.js'></script>
</head>
<body class='[style]'>
<div id='container' class='container'>
<div class='notice'>
<span>Loading...</span><br/>
</div>
</div>
<noscript>
<div class='notice'>
<span>Javascript is required in order to use this interface.</span>
<span>Please enable Javascript and restart the game.</span>
</div>
</noscript>
</body>
</html>