Eliot's Forum

Full Version: Killing floor (native_2004) strange issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
At UE Explorer
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;
}
And the original source
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;
}
Why it shows J0x4f: ,also why i doesn't show with "for"?
Update to version 1.1 and use the UT2004 nativestablelist when decompiling Killing Floor packages.

The J0x4f: is a label named to its byte position, if you do the above then it should also output a goto ' J0x4f' code statement.