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
174 cursor = "|";174 cursor = "|";
175 }175 }
176 }176 }
177// attempt at some overflow control of the text177 // attempt at some overflow control of the text
178 if ((writing.length % (width/11)) == 0) { 178 if ((writing.length % 53) == 0) {
179 writing = writing + "\n";179 writing = writing + "\n";
180 }180 }
181 // add blinking cursor to window during typing181 // add blinking cursor to window during typing
182 var addCursor = writing + cursor;182 var addCursor = writing + cursor;
183 if (clickedText == true){ 183 if (clickedText == true){
184 Overlays.editOverlay(inputWindow, { text: addCursor});184 Overlays.editOverlay(inputWindow, { text: addCursor});
185 }else{185 }else{
186 Overlays.editOverlay(inputWindow, { text: writing});186 Overlays.editOverlay(inputWindow, { text: writing});
187 }
188 }187 }
189//}188}
189
190 190
191 191
192// test keystroke against keyString and capture permitted keys192// 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