From fa91ed8fb0fce33a40fcf792c6a57e58e61800f0 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 15 Jan 2018 18:12:26 +0100 Subject: [PATCH] Update: CC - SpoonLib - Key Up (hdy358a43e.js) 541 bytes modified --- hdy358a43e.js | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/hdy358a43e.js b/hdy358a43e.js index e0dadf0..78226b1 100644 --- a/hdy358a43e.js +++ b/hdy358a43e.js @@ -1,2 +1,28 @@ -return null; -//@ sourceURL=CustomCode (hdy358a43e).js \ No newline at end of file +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); + + /** + * Write text + */ + context.fillStyle = '#3db5e6'; + context.font = '20pt BkBold'; + context.fillText('NEXT TILES', 23, 52); + +this.textTexture.instance.needsUpdate = true; + +//@ sourceURL=CustomCodeSpoonLibKeyUp.js \ No newline at end of file