1

Closed

Implement support for formattable game strings

description

By "formattable" game strings, i mean ones where one or more values can be substituted in at one or more points in the value of the GameString.
 
For example:
(XML)
<game_string id="test_string">The value of {0} is {1}</game_string>
 
(Code)
GameString gs = Game.GetGameString("test_string");
string s = gs.FormatValue("x", "10");
Console.WriteLine(s); // prints "The value of x is 10" to the console
Closed Mar 25, 2008 at 7:05 PM by WShelley
This has been implemented. Game strings can use the standard .NET format string syntax now.

comments