Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: 2.0 on April 20, 2012, 02:09:37 PM

Title: String tables bug?
Post by: 2.0 on April 20, 2012, 02:09:37 PM
Hello!

The bug(?) is next.

In the string.tab file I have a string

Code: [Select]
SYSENG0200 Some text
When I insert "\syseng0200\" (without quotes) at the Text field of the some static control, it works fine. Dispaying text is "Some text".
When I use a script, that makes something like

Code: [Select]
someStaticControl.Text = "\syseng0200\";
Displaying text is "\syseng0200\".

What wrong do I do?
Title: Re: String tables bug?
Post by: Azrael on April 20, 2012, 02:30:53 PM
You need to use:

Code: WME Script
  1. someStaticControl.Text = Game.ExpandString("/syseng0200/");
Title: Re: String tables bug?
Post by: 2.0 on April 20, 2012, 03:08:09 PM
Thanks very much! Now it works :)

You need to use:

Code: WME Script
  1. someStaticControl.Text = Game.ExpandString("/syseng0200/");