History

code tidy up

Fixed indentation, fixed text overflow.

Adrianl3d committed 12 years ago

Commit 2532a541 parent 1d335c11 file · +9 −9Browse files

Showing the changes to examples/textInputOverlayExample.js (1 of 1 file). Show all

Unified · Split

examples/textInputOverlayExample.js+9−9
@@ -174,19 +174,19 @@ function updateWriting(deltaTime){ · 173 unmodified lines
174174 cursor = "|";
175175 }
176176 }
177−// attempt at some overflow control of the text
178− if ((writing.length % (width/11)) == 0) {
179− writing = writing + "\n";
180− }
181− // add blinking cursor to window during typing
182− var addCursor = writing + cursor;
177+ // attempt at some overflow control of the text
178+ if ((writing.length % 53) == 0) {
179+ writing = writing + "\n";
180+ }
181+ // add blinking cursor to window during typing
182+ var addCursor = writing + cursor;
183183 if (clickedText == true){
184184 Overlays.editOverlay(inputWindow, { text: addCursor});
185− }else{
185+ }else{
186186 Overlays.editOverlay(inputWindow, { text: writing});
187− }
188187 }
189−//}
188+}
189+
190190
191191
192192 // test keystroke against keyString and capture permitted keys

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t