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 |
class HUDRadarBase extends HUDContainer native; import enum EIconType from Gameplay.RadarInfo; import enum EColorType from Gameplay.RadarInfo; var() config float relativeEdgeRadius ""; var() config bool bClipMarkers "whether to clip markers at the zoom level"; var() config float defaultFlashFrequency "default frequency to flash icons at"; var() config float SmallMarkerZoomThreshold "zoom level after which the markers will becom dots"; var ClientSideCharacter currentData; var float zoomFactor; var Rotator mapRotation; var Vector mapCenter; var float mapExtent; var float componentOriginX; var float componentOriginY; var MatCoords LastRenderedMarkerCoords; // native function to render a single radar marker (for optimisation reasons) native function Vector CalcMarkerPosition(Vector position); // native function to render a single radar marker (for optimisation reasons) native function RenderRadarMarker(Canvas c, Vector position, int objectHeight, class<RadarInfo> objectRadarInfo, int state, bool isFriendly, Color TeamColor, EColorType PrefColorType, optional String InfoLabel, optional bool bFlashing, optional Material materialOverride); // Creates a HUDMaterial instance from a state. static native function HUDMaterial GetHUDMaterial(class<RadarInfo> radarInfo, int state, bool isFriendly, EIconType iconType, Color TeamColor, EColorType PrefColorType, optional bool bForceFlash); native function RenderEnemies(Canvas c); native function RenderAllies(Canvas c); native function RenderObjectives(Canvas c); CPPTEXT { FHUDMaterial GetHUDMaterial(UClass *radarInfoClass, INT state, UBOOL isFriendly, EIconType iconType, FColor TeamColor, EColorType PrefColorType, UBOOL bForceFlash); void RenderRadarMarker(UCanvas *canvas, FVector position, INT objectHeight, UClass *objectRadarInfo, INT state, UBOOL isFriendly, FColor TeamColor, EColorType PrefColorType, FString InfoLabel, UBOOL bFlashing, UMaterial *materialOverride); } function UpdateData(ClientSideCharacter c) { super.UpdateData(c); } event bool ShouldRender(class<RadarInfo> radarInfoClass) { if(radarInfoClass != None) return true; return false; } defaultproperties { bClipMarkers = true defaultFlashFrequency = 0.7 SmallMarkerZoomThreshold=0.7 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |