I'm assuming you want a character limit for the text boxes?
If so, you can do the following:
Every time the text is changed,
check if the number of characters is below the limit
if it is, save the text in a variable (I'll call it 'var')
else, change the text to the value of 'var'
If the text exceeds the limit, it will be changed back. It doesn't prevent players from typing more than the limit, but every time they do, the last thing they typed is effectively cut away. |