1
Technical forum / Window static objects
« on: December 01, 2008, 08:52:55 PM »
I have a window that I load and at the point of loading I change the text display of one static object and the image display of another static object. Except that the image doesn't change but the text does, which confuses me, somewhat.
Can someone please tell me why the text works and not the image?
Code: [Select]
var ShowInfo = Game.LoadWindow("interface\system\InfoWin.window");
var InfoImage = ShowInfo.GetControl("ImageDisplay");
InfoImage.Image = "interface\Info_Stuff\Info_test.png";
var InfoText = ShowInfo.GetControl("TextDisplay");
InfoText.Text = "This is a test of the info window text.";
ShowInfo.Center();
ShowInfo.GoSystemExclusive();
Game.UnloadObject(ShowInfo);
Can someone please tell me why the text works and not the image?