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

35 lines
509 B
JavaScript
Raw Normal View History

2016-01-10 11:01:49 +01:00
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 () {
}
});