29 lines
584 B
JavaScript
29 lines
584 B
JavaScript
|
if (!this.entityLoaded) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
if (!this.initialized) {
|
||
|
|
||
|
this.textCanvas = this.entityLoaded.textCanvas;
|
||
|
this.textTexture = this.entityLoaded.textTexture;
|
||
|
|
||
|
this.initialized = true;
|
||
|
}
|
||
|
|
||
|
var context = this.textCanvas.instance.getContext('2d');
|
||
|
|
||
|
context.textBaseline = "middle";
|
||
|
|
||
|
context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
||
|
|
||
|
/**
|
||
|
* Write text
|
||
|
*/
|
||
|
context.fillStyle = '#3db5e6';
|
||
|
context.font = '20pt BkBold';
|
||
|
context.fillText('NEXT TILES', 23, 52);
|
||
|
|
||
|
this.textTeture.instance.needsUpdate = true;
|
||
|
|
||
|
return null;
|
||
|
//@ sourceURL=CustomCodeKeyUp.js
|