Author Topic: "&" Causes Underline  (Read 772 times)

0 Members and 1 Guest are viewing this topic.

Offline xtishereb

  • Flagrunner
  • ****
  • Posts: 908
  • I swear, my chainsaw killed you on its own.
"&" Causes Underline
« on: May 27, 2007, 05:41:22 pm »
In weaponnames.txt, I like to have &s in the weapon company names. It looks cooler to me. However, in 1.4, the & is not seen in-game and the next character is underlined. For example, "H&K MP5A3" in weaponnames.txt would be "HK MP5A3" in-game. This also occurs when I'm typing in-game. When I press "&", nothing appears, but the next character I type is underlined. If I try to do this again, the underline moves to the latest character.

Is there somebody out there who knows the cause of this? I suspect it has something to do with the unicode support.
<3*xwd
love conquers all

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: "&" Causes Underline
« Reply #1 on: May 27, 2007, 05:45:15 pm »
There is a workaround for this. You have to use double "&". Like H&&K MP5A3

This workaround shouldn't be needed in 1.4.1; I've mentioned this to MM already.
urraka

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: "&" Causes Underline
« Reply #2 on: May 27, 2007, 06:00:08 pm »
That's a backdraw of the Unicode implementation I think.
Also, MM will have to remove other characters that have such effects aswell. The & sign is not the only character that has a special effect I think.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6142
    • Ultimate 13 Soldat
Re: "&" Causes Underline
« Reply #3 on: May 27, 2007, 06:10:27 pm »
haha silly Europeans. 

backdraw --> drawback

Offline chrisgbk

  • Inactive Staff
  • Veteran
  • *****
  • Posts: 1739
Re: "&" Causes Underline
« Reply #4 on: May 27, 2007, 06:35:03 pm »
That's a backdraw of the Unicode implementation I think.
Also, MM will have to remove other characters that have such effects aswell. The & sign is not the only character that has a special effect I think.

Grtz, DePhille

He's just failing to pass in a flag that prevents & from being interpreted in this way, the next version should have the flag passed.