Format any string as upper case

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Format any string as upper case

Postby antimouse » 19 Apr 2014, 20:37

Manutoo and others,

Is there any way to format any string as upper case? We have the function FormatTeamName, but I wonder if there is anything similar to format texts like "Break Point" etc. If not, it would be nice to have it in a future update, if it's not too much trouble.

Thanks!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Format any string as upper case

Postby manutoo » 20 Apr 2014, 04:28

Hello,

you can change that easily in the Lang_*.txt files. Advanced text editors should let you change the case of the text.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Format any string as upper case

Postby antimouse » 20 Apr 2014, 04:57

Hey Manu,

Yeah I know. I asked it because I'm making some scoreboards now, and some of them use "Break Point" in lower case, others use "BREAK POINT" etc. And I can only associate HudInfo02 with one of them. So, it would be nice to dynamically make it upper case, just like with FormatTeamName, to reduce the amount of alternative items in code. But no problem, it's perfectly doable with lang files :)

Thanks!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Format any string as upper case

Postby manutoo » 21 Apr 2014, 04:26

Maybe you could create a font whose lower case characters actually use upper case visual. Then you'd need only 2 different items, one using the normal font, and one using the all upper case font.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Format any string as upper case

Postby antimouse » 21 Apr 2014, 15:57

Hmmmmm, good idea! I'll try that later!
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05


Return to Modding - TE2013

Who is online

Users browsing this forum: Bing [Bot], Yandex [Bot] and 19 guests