25 lines
552 B
JavaScript
25 lines
552 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.textCanvas.width, this.textCanvas.height);
|
|
|
|
context.fillStyle = '#ffffff';
|
|
context.font = '30pt BKBold';
|
|
context.fillText('FLYING SPOON', 23, 52);
|
|
|
|
this.textTexture.instance.needsUpdate = true;
|
|
|
|
//@ sourceURL=CustomCodeSpoonLibKeyUp.js
|