Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 |
// ==================================================================== // Class: xVoting.PlayerInfoMultiColumnList // // Multi-Column list box used to display player info. // // Written by Bruce Bickar // (c) 2003, Epic Games, Inc. All Rights Reserved // ==================================================================== class PlayerInfoMultiColumnList extends GUIMultiColumnList; struct PlayerInfoData { var string Label; var string Value; }; var array<PlayerInfoData> ListData; //------------------------------------------------------------------------------------------------ function Add(string Label, string Value) { ListData.Insert(ListData.Length,1); ListData[ListData.Length-1].Label = Label; ListData[ListData.Length-1].Value = Value; AddedItem(); } //------------------------------------------------------------------------------------------------ function DrawItem(Canvas Canvas, int i, float X, float Y, float W, float H, bool bSelected, bool bPending) { local float CellLeft, CellWidth; if( i >= SortData.Length || SortData[i].SortItem >= ListData.Length ) return; GetCellLeftWidth( 0, CellLeft, CellWidth ); Style.DrawText( Canvas, MenuState, CellLeft, Y, CellWidth, H, TXTA_Left, ListData[SortData[i].SortItem].Label, FontScale ); GetCellLeftWidth( 1, CellLeft, CellWidth ); Style.DrawText( Canvas, MenuState, CellLeft, Y, CellWidth, H, TXTA_Left, ListData[SortData[i].SortItem].Value, FontScale ); } //------------------------------------------------------------------------------------------------ function string GetSortString( int i ) { return ListData[0].Label; } //------------------------------------------------------------------------------------------------ defaultproperties { ColumnHeadings(0)="-" ColumnHeadings(1)="-" InitColumnPerc(0)=0.350000 InitColumnPerc(1)=0.650000 SortDescending=Wahr SelectedStyleName="BrowserListSelection" OnDrawItem=PlayerInfoMultiColumnList.DrawItem StyleName="ServerBrowserGrid" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |