From 2532a54a2d22bfb2c91b9fbae00545c4075d152d Mon Sep 17 00:00:00 2001 From: Adrianl3d Date: Thu, 30 Oct 2014 13:28:50 +1000 Subject: [PATCH] code tidy up Fixed indentation, fixed text overflow. --- examples/textInputOverlayExample.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/textInputOverlayExample.js b/examples/textInputOverlayExample.js index 7f470b16f7..e837e81eb5 100644 --- a/examples/textInputOverlayExample.js +++ b/examples/textInputOverlayExample.js @@ -174,19 +174,19 @@ function updateWriting(deltaTime){ cursor = "|"; } } -// attempt at some overflow control of the text - if ((writing.length % (width/11)) == 0) { - writing = writing + "\n"; - } - // add blinking cursor to window during typing - var addCursor = writing + cursor; + // attempt at some overflow control of the text + if ((writing.length % 53) == 0) { + writing = writing + "\n"; + } + // add blinking cursor to window during typing + var addCursor = writing + cursor; if (clickedText == true){ Overlays.editOverlay(inputWindow, { text: addCursor}); - }else{ + }else{ Overlays.editOverlay(inputWindow, { text: writing}); - } } -//} +} + // test keystroke against keyString and capture permitted keys