Hey,
I'm trying to change and update the TextColor of a GUILabel (instead of an image) but my code makes the label invisible altogether. Is there a setting i'm missing? This is my code.
Thanks for any help, ideas or suggestions!Code:class MyConfig extends GUICustomPropertyPage; //various colour variables, mosliders etc... function bool InternalDraw(Canvas Canvas) { local color TestColor; //initially I only set currentColour.TextColor but i've since added the other code in a vain attempt to get the colour working. //I've also tried setting the style to STY_Normal. if(Canvas != None) { TestColor.R = currentColourR.GetValue(); TestColor.G = currentColourG.GetValue(); TestColor.B = currentColourB.GetValue(); TestColor.A = 255; Canvas.Reset(); Canvas.DrawColor = TestColor; currentColour.TextColor = TestColor; } return true; } defaultproperties { Begin Object Class=GUILabel Name=MyColour StyleName="TextLabel" Caption="My Color:" WinWidth=0.181976 WinHeight=0.033333 WinLeft=0.334867 WinTop=0.255355 RenderWeight=0.200000 OnDraw=InternalDraw End Object currentColour=MyColour }



Reply With Quote



Bookmarks