Core.Object | +--Engine.Actor | +--Engine.Effects | +--XIII.CWndBase
int
CWndAppearFX
color
CWndBorderColor
CWndSoundType
FilterColor
Material
FilterTexture
float
HighLight
XIIIBaseHud
MyHudForFX
sound
hCWndSound
Color
myColor
void
AddWnd(float XPos, float YPos, float DXSize, float DYSize, BitmapMaterial Mat, float X, float Y, float XSize, float YSize, float Lifetime, bool bLowPrio)
//_____________________________________________________________________________
HideUnwanted()
//_____________________________________________________________________________ // Hide everything not wanted for display on CWnds
RestoreUnWanted()
//_____________________________________________________________________________ // Restore everything not wanted for display on CWnds
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class CWndBase extends Effects; 00005 00006 var XIIIBaseHUD MyHudForFX; 00007 var sound hCWndSound; 00008 var color CWndBorderColor; 00009 var color FilterColor; 00010 var float HighLight; 00011 var Material FilterTexture; 00012 var int CWndAppearFX; 00013 var int CWndSoundType; 00014 00015 CONST bDBCWnd=false; 00016 00017 var Color myColor; 00018 00019 //_____________________________________________________________________________ 00020 event PostBeginPlay() 00021 { 00022 DebugLog(self@"PostBeginPlay"); 00023 Super.PostBeginPlay(); 00024 } 00025 00026 //_____________________________________________________________________________ 00027 function AddWnd(float XPos, float YPos, float DXSize, float DYSize, BitMapMaterial Mat, float X, float Y, float XSize, float YSize, float Lifetime, bool bLowPrio) 00028 { 00029 DebugLog(self@"AddWnd High Priority="$!bLowPrio); 00030 MyHudForFX.AddHudCartoonWindow(XPos, YPos, DXSize, DYSize, Mat, X, Y, XSize, YSize, Lifetime, CWndBorderColor, CWndAppearFX, bLowPrio); 00031 } 00032 00033 //_____________________________________________________________________________ 00034 // Hide everything not wanted for display on CWnds 00035 Function HideUnwanted() 00036 { 00037 MyHudForFX.PlayerOwner.Pawn.bOwnerNoSee = false; 00038 if ( MyHudForFX.PlayerOwner.Pawn.weapon != none ) 00039 MyHudForFX.PlayerOwner.Pawn.weapon.bOwnerNoSee = true; 00040 if ( MyHudForFX.PlayerOwner.Pawn.SelectedItem != none ) 00041 MyHudForFX.PlayerOwner.Pawn.SelectedItem.bOwnerNoSee = true; 00042 if ( XIIIPawn(MyHudForFX.PlayerOwner.Pawn).LHand != none ) 00043 XIIIPawn(MyHudForFX.PlayerOwner.Pawn).LHand.bOwnerNoSee = true; 00044 } 00045 00046 //_____________________________________________________________________________ 00047 // Restore everything not wanted for display on CWnds 00048 function RestoreUnWanted() 00049 { 00050 MyHudForFX.PlayerOwner.Pawn.bOwnerNoSee = true; 00051 if ( MyHudForFX.PlayerOwner.Pawn.weapon != none ) 00052 MyHudForFX.PlayerOwner.Pawn.weapon.bOwnerNoSee = false; 00053 if ( MyHudForFX.PlayerOwner.Pawn.SelectedItem != none ) 00054 MyHudForFX.PlayerOwner.Pawn.SelectedItem.bOwnerNoSee = false; 00055 if ( XIIIPawn(MyHudForFX.PlayerOwner.Pawn).LHand != none ) 00056 XIIIPawn(MyHudForFX.PlayerOwner.Pawn).LHand.bOwnerNoSee = false; 00057 } 00058 00059 00060 defaultproperties 00061 { 00062 hCWndSound=Sound'XIIIsound.Interface__VignettesFx.VignettesFx__hVignette' 00063 CWndBorderColor=(B=255,G=255,R=255,A=255) 00064 FilterColor=(B=255,G=255,R=255) 00065 CWndSoundType=2 00066 bHidden=True 00067 }