[ManiaScript] TextLib::Compose result in chat

Moderators: w1lla, NADEO

Post Reply
kastun
Posts: 18
Joined: 28 Oct 2012, 10:05

[ManiaScript] TextLib::Compose result in chat

Post by kastun »

I noticed something when using texts created with TextLib::Compose in the chat.

Code: Select all

UIManager.UIAll.StatusMessage = TextLib::Compose("%1 : %2 -", _("TextLibCompose test"), "Text");
UIManager.UIAll.SendChat(TextLib::Compose("%1 : %2 -", _("TextLibCompose test"), "Text"));
In the status message it is displayed like you expect it: TextLibCompose test : Text -
But in the chat it is not correct: Image
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: [ManiaScript] TextLib::Compose result in chat

Post by w1lla »

Example:

Code: Select all

TextLib::Compose(
										_("$<%1$> takes the lead!"),
										Event.Shooter.Name
									)
%1 is the Event.Shooter.Name so try "test", "test"
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: [ManiaScript] TextLib::Compose result in chat

Post by steeffeen »

    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Post Reply

    Return to “Maniaplanet Reports”

    Who is online

    Users browsing this forum: No registered users and 1 guest