Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Setting window element.Text and string tab  (Read 2356 times)

0 Members and 1 Guest are viewing this topic.

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Setting window element.Text and string tab
« 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  :(
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Setting window element.Text and string tab
« Reply #1 on: April 08, 2009, 04:31:15 PM »

I was a bit to hasty :P
Solved using Game.ExpandString();

Tnx anyway :)
Logged
 

Page created in 0.037 seconds with 19 queries.