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 |
//============================================================================== // List of all PlayInfo settings and their values. // // Created by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class PlayInfoList extends GUIMultiColumnList; var PlayInfo GamePI; // GamePI has been replaced, so reinit data function Refresh() { local int i; Clear(); for (i = 0; i < GamePI.Settings.Length; i++) AddedItem(); } function InternalOnDrawItem(Canvas Canvas, int i, float X, float Y, float W, float H, bool bSelected, bool bPending) { local float CellLeft, CellWidth; GetCellLeftWidth( 0, CellLeft, CellWidth ); Style.DrawText( Canvas, MenuState, CellLeft, Y, CellWidth, H, TXTA_Left, GamePI.Settings[SortData[i].SortItem].DisplayName, FontScale ); GetCellLeftWidth( 1, CellLeft, CellWidth ); Style.DrawText( Canvas, MenuState, CellLeft, Y, CellWidth, H, TXTA_Left, GamePI.Settings[SortData[i].SortItem].Value, FontScale ); } event string GetSortString(int ItemIndex) { if (SortColumn == 0) return GamePI.Settings[SortData[ItemIndex].SortItem].DisplayName; return GamePI.Settings[SortData[ItemIndex].SortItem].Value; } DefaultProperties { OnDrawItem=InternalOnDrawItem IniOption="@Internal" SortColumn=0 ExpandLastColumn=True ColumnHeadings(0)="Setting Name" ColumnHeadings(1)="Value" } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |