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/TextPage.js

18 lines
288 B
JavaScript

LWWidget.TextPage = LWWidget.Page.inherits({
constructor: function () {
this.text = "";
},
setText: function (text) {
if (this.text != text) {
this.text = text;
}
this.draw();
},
draw: function () {
this.writeContents(this.text == "" ? ' ' : this.text);
}
});