Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

XInterface.Browser_BuddyList


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
class Browser_BuddyList extends GUIMultiColumnList;

var Browser_ServerListPageBuddy MyBuddyPage;
var GUIStyles SelStyle;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
    Super.InitComponent(MyController, MyOwner);

    OnDrawItem = MyOnDrawItem;

    SelStyle = Controller.GetStyle("SquareButton",FontScale);
}


function MyOnDrawItem(Canvas Canvas, int i, float X, float Y, float W, float H, bool bSelected, bool bPending)
{
    local float CellLeft, CellWidth;

    if( bSelected )
        SelStyle.Draw(Canvas, MSAT_Pressed, X, Y-2, W, H+2 );

    GetCellLeftWidth( 0, CellLeft, CellWidth );
    Style.DrawText( Canvas, MenuState, CellLeft, Y, CellWidth, H, TXTA_Left, MyBuddyPage.Buddies[i], FontScale );
}

defaultproperties
{
    ColumnHeadings(0)="Buddy Name"
    InitColumnPerc(0)=1
    ExpandLastColumn=True
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:36:28.000 - Creation time: Do 14.8.2014 09:58:35.499 - Created with UnCodeX