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 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 |
//============================================================================== // Created on: 09/17/2003 // Base class for menus which handle custom playinfo properties // // Written by Ron Prestenback // © 2003, Epic Games, Inc. All Rights Reserved //============================================================================== class GUICustomPropertyPage extends LockedFloatingWindow; // GUIComponent associated with this custom property page // this will normally be the component that wanted this page opened // In the case of the playinfo lists, this would be the moButton responsible for tracking this property's value var() noexport GUIComponent Owner; var() noexport PlayInfo.PlayInfoData Item; // Playinfo property this item is associated with function SetOwner( GUIComponent NewOwner ) { Owner = NewOwner; } function GUIComponent GetOwner() { return Owner; } function SetReadOnly( bool bValue ); function bool GetReadOnly() { return false; } function Strip(out string Source, string Char) { if (Source != "" && Char != "") { if (Left(Source,Len(Char)) == Char) Source = Mid(Source, Len(Char)); if (Right(Source, Len(Char)) == Char) Source = Left(Source, Len(Source) - Len(Char)); } } // copied from GameInfo and modified static function bool GrabOption( string Delim, out string Options, out string Result ) { local string s; s = Options; if( Left(Options,1)==Delim ) Result = Mid(Options,1); if ( !Divide(s, Delim, Result, Options) ) Result = s; return Result != ""; } // // Break up a key=value pair into its key and value. // static function GetKeyValue( string Pair, out string Key, out string Value ) { if ( !Divide(Pair, "=", Key, Value) ) Key = Pair; } /* ParseOption() Find an option in the options string and return it. */ static function string ParseOption( string Options, string Delim, string InKey ) { local string Pair, Key, Value; while( GrabOption( Delim, Options, Pair ) ) { GetKeyValue( Pair, Key, Value ); if( Key ~= InKey ) return Value; } return ""; } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |