08-06-2012, 05:37 AM
At UE Explorer
And the original source
Why it shows J0x4f: ,also why i doesn't show with "for"?
Code:
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
local int i;
super(GUIPanel).InitComponent(MyController, MyOwner);
bClean = true;
lb_Text.SetContent(DefaultText);
lb_Text.__OnDraw__Delegate = OnLabelDraw;
i = NewsLine.Length - 1;
J0x4f:
if(i >= 0)
{
lb_Text.AddText(NewsLine[i]);
i -- );
}
lb_Text.AddText(" ");
lb_Text.MyScrollBar.GripPos = 0.00;
lb_Text.MyScrollBar.CurPos = 0;
lb_Text.MyScrollBar.MyList.SetTopItem(0);
lb_Text.MyScrollBar.AlignThumb();
__OnShow__Delegate = Shown;
}
Code:
function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
local int i;
Super.InitComponent(MyController, MyOwner);
bClean = true;
lb_Text.SetContent(DefaultText);
lb_Text.OnDraw = OnLabelDraw;
for(i=NewsLine.Length-1; i>=0; i--)
{
lb_Text.AddText(NewsLine[i]);
}
lb_Text.AddText(" ");
lb_Text.MyScrollBar.GripPos = 0;
lb_Text.MyScrollBar.CurPos = 0;
lb_Text.MyScrollBar.MyList.SetTopItem(0);
lb_Text.MyScrollBar.AlignThumb();
OnShow = Shown;
}