| 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 |
/** * Writen by Brian 'Snake' Alexander. Copyright(c) 2007-2010 All Rights Reserved. */ Class DOMMessage extends UTLocalMessage; var(Message) localized String ControlPointStr; var(Message) localized String ControlledByTeam[4]; static function color GetColor( optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject ) { return class'UTTeamInfo'.Default.BaseTeamColor[Switch]; } // <summary> // We use the switch to pass in the TeamIndex // </summary> // <param name="Switch" type="int">TeamIndex</param> // <param name="RelatedPRI_1"></param> // <param name="RelatedPRI_2"></param> // <param name="OptionalObject"></param> // <returns>localized string message to display what team is the current controller of what control point.</returns> static function string GetString( optional int Switch, optional bool bPRI1HUD, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject ) { local string txt; txt = Default.ControlPointStr@"["$ControlPoint(OptionalObject).GetHumanReadableName()$"]"@Default.ControlledByTeam[Switch]; return txt; } defaultproperties { Lifetime=2 MessageArea=0 bIsUnique=True bIsConsoleMessage=False DrawColor=(B=255,G=255,R=255,A=255) FontSize=1 } |
| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||