So in my project I have a tutorial that goes through key commands, one of them is basically this text "Press the [ key." but what gets pout in the text gui is this: "Press the Press the [ key." Its bizzare but the "[" character causes this duplication (if I change it to any other character it works fine). Any info? This is set from a text file, so its kind of bugging me. Worst case scenario I'll type it out.. press the left bracket key (but when I put in keymapping this will get all fudged up as well).
thanks for any info
[SOLVED] Odd problem with "[" character
Moderators: CEGUI MVP, CEGUI Team
[SOLVED] Odd problem with "[" character
Last edited by chaosavy on Mon Aug 08, 2011 16:25, edited 1 time in total.
Check out my space sim http://www.arrmaytey.com
-
- Quite a regular
- Posts: 46
- Joined: Fri Mar 19, 2010 05:31
Re: Odd problem with "[" character
have you tried putting a backslash in front of the bracket to escape it? My guess is that theres some regex or similar going on.
"Press the \[ key"
"Press the \[ key"
Re: Odd problem with "[" character
There are 2 solutions to this, it's caused by the fact that [ is a special formatting character.
Either setTextParsing(false) or escaping. You only have to escape the starting [ character with a backslash as ShadowTiger said.
Either setTextParsing(false) or escaping. You only have to escape the starting [ character with a backslash as ShadowTiger said.
[SOLVED] Re: Odd problem with "[" character
Awesome thanks! I disabled the parsing and that did it.
Check out my space sim http://www.arrmaytey.com
Who is online
Users browsing this forum: No registered users and 5 guests