ALL CAPS?

childbirth
30 Dec 2011, 11:47
Hi, I'd really all the text in my game to be in capitals, including the user inputted text

how can i do this?

thanks

Alex
30 Dec 2011, 11:51
Why? Nobody wants to play a game in all caps.

childbirth
30 Dec 2011, 12:38
i'm making a website, using the game as a basis. it's not a game.

childbirth
30 Dec 2011, 17:04
Does nobody know how to do this?
any help would be much appreciated
thanks

Alex
31 Dec 2011, 12:56
You could probably do this by changing all the templates to be all capitals, but that would be fairly tedious.

Another way may be to have a custom Javascript function to output text. There is a function called addText which handles all printing - you could override this function and replace it with a version which capitalises everything.

To do this, you would need to add a Javascript file in the Editor, and call a Javascript function when the game loads. In that function, override addText like this (note - untested!):


window.addText = function(text) {
if (_currentDiv == null) {
createNewDiv("left");
}

_currentDiv.append(text.toUpperCase());
scrollToEnd();
}


Here I've just taken the existing addText function, and changed the _currentDiv.append line to make the text upper case.