Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Azrael on April 08, 2009, 04:21:43 PM

Title: Setting window element.Text and string tab
Post by: Azrael on April 08, 2009, 04:21:43 PM
Hi,
when i try to set the Text attribute to a window using string from string tab the text appear with the string tab id, something like that: /syseng0707/My text

This is the script:

Code: WME Script
  1. if (CurrentCat == 2)
  2.                 {
  3.                 this.Text = "/syseng0707/My text";
  4.                 }
  5.  

Obviusly in string tab there is the right line:
syseng0707    My text

There is a way to make it work propely with string tab?
I tried also with a static control but with the same results  :(
Title: Re: Setting window element.Text and string tab
Post by: Azrael on April 08, 2009, 04:31:15 PM
I was a bit to hasty :P
Solved using Game.ExpandString();

Tnx anyway :)