This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/misc/Legacy Worlds.wdgt/lib/LWWidget/Game/Page.js

34 lines
509 B
JavaScript

LWWidget.Game.Page = Base.Comp.inherits({
constructor: function (game) {
this.base();
this.addSlot('gameDestroyed');
this.game = game;
this.game.bindEvent('Destroy', 'gameDestroyed', this);
},
writeContents: function (contents) {
var e = document.getElementById('gDisplay');
if (e) {
e.innerHTML = contents;
}
},
gameDestroyed: function () {
this.game = null;
},
setData: function (data) {
},
draw: function (_e) {
},
show: function () {
},
hide: function () {
}
});