2020-12-13 15:01:13 +00:00
//=============================================================================
// KFGFxMoviePlayer_HUD
//=============================================================================
// This is the managing class for all scaleform HUD items.
// It will tick and update its components to keep them all up to date
// as well as hide and pause items when they are not used
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Greg Felber 5/12/2014
//=============================================================================
class KFGFxMoviePlayer _HUD extends GFxMoviePlayer
config ( UI ) ;
var KFGFxMoviePlayer _ScoreBoard GfxScoreBoardPlayer ;
var class < KFGFxMoviePlayer _ScoreBoard > ScoreBoardClass ;
var EGameMessageType LastMessageType ;
var bool bObjectiveQueued ;
var array < string > SpecialWaveIconPath ;
var array < string > SpecialWaveLocKey ;
var KFGFxHUD _SpectatorInfo SpectatorInfoWidget ;
// Container for Health & Armor widgets
var KFGFxHUD _PlayerStatus PlayerStatusContainer ;
// Container for Weapon & ammo widgets
var KFGFxHUD _PlayerBackpack PlayerBackpackContainer ;
// Container for Priority local message broadcasts.
var GfxObject PriorityMessageContainer ;
// Container for boss name and message.
var GfxObject BossNameplateContainer ;
// Container for interaction local message broadcasts.
var GfxObject InteractionMessageContainer ;
// Widget for selecting your current weapon
var KFGFxHUD _WeaponSelectWidget KeyboardWeaponSelectWidget ;
// Widget for selecting your current weapon
var KFGFxHUD _WeaponSelectWidget ControllerWeaponSelectWidget ;
// This is the holder so that we keep track of one weaponselect container depending on user input type
var KFGFxHUD _WeaponSelectWidget WeaponSelectWidget ;
// Widget for showing you were the trader is
var KFGFxHUD _TraderCompass TraderCompassWidget ;
// Widget for showing how many enemies are left in the wave and which wave you are on.
var KFGFxHUD _WaveInfo WaveInfoWidget ;
// Voip Notification Widget
var KFGFxWidget _VOIPNotification VOIPWidget ;
// Widget for in game chat messages
var KFGFxHUD _ChatBoxWidget HudChatBox ;
//Widget for displaying a level up.
var KFGFxWidget _LevelUpNotification LevelUpNotificationWidget ;
//Widget for voice actions
var KFGFxWidget _VoiceComms VoiceCommsWidget ;
//Widget for displaying song info
var KFGFxWidget _MusicNotification MusicNotification ;
// widget for displaying a current kick vote and trader vote
var KFGFxWidget _KickVote KickVoteWidget ;
// Widget that shows unimportant messages such as receiving ammo
var KFGFxWidget _NonCriticalGameMessage NonCriticalGameMessageWidget ;
// Widget that shows invite message
var KFGFxWidget _NonCriticalGameMessage InviteGameMessageWidget ;
// Widget that shows headshots for gunslinger
var KFGFxWidget _RhythmCounter RhythmCounterWidget ;
2021-06-02 20:06:18 +00:00
// Widget that shows goompa jumps.
var KFGFxWidget _GoompaCounter GoompaCounterWidget ;
2020-12-13 15:01:13 +00:00
// Widget that displays health bar
var KFGFxWidget _BossHealthBar bossHealthBar ;
2020-12-13 15:09:05 +00:00
// Widget that displays map texts
var KFGFxWidget _MapText MapTextWidget ;
// Widget that displays map texts
var KFGFxWidget _MapCounterText MapCounterTextWidget ;
2020-12-13 15:01:13 +00:00
var KFPlayerController KFPC ;
var config float HUDScale ;
var GFxObject KFGXHUDManager ;
var bool bIsSkipTraderVoteActive ;
var bool bIsKickVoteActive ;
var bool bUserAlreadyStartASkipTraderVote ;
2021-12-09 16:33:06 +00:00
var bool bIsPauseGameVoteActive ;
2020-12-13 15:01:13 +00:00
var bool bIsSpectating ;
var bool bIsVisible ;
var bool bUsingGamepad ;
var int CurrentInteractionIndex ;
var const string ControllerStringPrefix ;
var const string HoldCommandDelimiter ;
var const string ZEDTeamTextColor ;
var const string HumanTeamTextColor ;
// Interval between updates. Higher values mean less frequent updates.
var const float UpdateInterval ;
// Last time we performed an update.
var Protected float LastUpdateTime ;
// The name of the player currently being voted on to kick
var string PendingKickPlayerName ;
/** On creation of the HUD */
function Init ( optional LocalPlayer LocPlay )
{
KFPC = KFPlayerController ( GetPC ( ) ) ;
KFPC . SetGFxHUD ( self ) ;
super . Init ( LocPlay ) ;
KFGXHUDManager = GetVariableObject ( "root" ) ;
UpdateRatio ( ) ;
UpdateScale ( ) ;
// Let the HUD Manager know if we are in a console build of the game.
KFGXHUDManager . SetBool ( "bConsoleBuild" , class 'WorldInfo' . static . IsConsoleBuild ( ) ) ;
}
function CreateScoreboard ( )
{
if ( GfxScoreBoardPlayer == none )
{
GfxScoreBoardPlayer = new ScoreBoardClass ;
GfxScoreBoardPlayer . SetTimingMode ( TM _Real ) ;
GfxScoreBoardPlayer . Init ( class 'Engine' . static . GetEngine ( ) . GamePlayers [ GfxScoreBoardPlayer . LocalPlayerOwnerIndex ] ) ;
}
}
function ClearScoreboard ( )
{
if ( GfxScoreBoardPlayer != none )
{
GfxScoreBoardPlayer . Close ( true ) ;
GfxScoreBoardPlayer = None ;
}
}
function UpdateRatio ( optional float fScale = 1. f )
{
local GfxObject GFxStage ;
local float ScaleStage ;
if ( class 'WorldInfo' . static . IsConsoleBuild ( ) )
{
ScaleStage = class 'Engine' . static . GetEngine ( ) . GetTitleSafeArea ( ) ;
}
else
{
ScaleStage = fScale ;
}
GFxStage = KFGXHUDManager != none ? KFGXHUDManager . GetObject ( "stage" ) : none ;
if ( GFxStage != none )
{
GFxStage . SetFloat ( "x" , ( GFxStage . GetFloat ( "width" ) * ( 1.0 f - ScaleStage ) ) / 2 ) ;
GFxStage . SetFloat ( "y" , ( GFxStage . GetFloat ( "height" ) * ( 1.0 f - ScaleStage ) ) / 2 ) ;
GFxStage . SetFloat ( "scaleX" , ScaleStage ) ;
GFxStage . SetFloat ( "scaleY" , ScaleStage ) ;
}
}
/** Ties the GFxClikWidget variables to the .swf components and handles events */
event bool WidgetInitialized ( name WidgetName , name WidgetPath , GFxObject Widget )
{
switch ( WidgetName )
{
case 'ObjectiveContainer' :
if ( WaveInfoWidget != none && WaveInfoWidget . ObjectiveContainer == none )
{
WaveInfoWidget . ObjectiveContainer = KFGFxHUD _ObjectiveConatiner ( Widget ) ;
WaveInfoWidget . ObjectiveContainer . InitializeHUD ( ) ;
UpdateObjectiveActive ( ) ;
}
break ;
case 'bossHealthBar' :
if ( BossHealthBar == none )
{
BossHealthBar = KFGFxWidget _BossHealthBar ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
BossHealthBar . InitializeHUD ( ) ;
}
break ;
2020-12-13 15:09:05 +00:00
case 'mapTextWidget' :
if ( MapTextWidget == none )
{
MapTextWidget = KFGFxWidget _MapText ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
MapTextWidget . InitializeHUD ( ) ;
}
break ;
case 'counterMapTextWidget' :
if ( MapCounterTextWidget == none )
{
MapCounterTextWidget = KFGFxWidget _MapCounterText ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
MapCounterTextWidget . InitializeHUD ( ) ;
}
break ;
2020-12-13 15:01:13 +00:00
case 'KickVoteWidget' :
if ( KickVoteWidget == none )
{
KickVoteWidget = KFGFxWidget _KickVote ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
KickVoteWidget . InitializeHUD ( ) ;
}
break ;
case 'SpectatorInfoWidget' :
if ( SpectatorInfoWidget == none )
{
SpectatorInfoWidget = KFGFxHUD _SpectatorInfo ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
SpectatorInfoWidget . InitializeHUD ( ) ;
}
break ;
case 'PlayerStatWidgetMC' :
if ( PlayerStatusContainer == none )
{
PlayerStatusContainer = KFGFxHUD _PlayerStatus ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
PlayerStatusContainer . InitializeHUD ( ) ;
}
break ;
case 'PlayerBackpackWidget' :
if ( PlayerBackpackContainer == none )
{
PlayerBackpackContainer = KFGFxHUD _PlayerBackpack ( Widget ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
PlayerBackpackContainer . InitializeHUD ( ) ;
}
break ;
case 'PriorityMsgWidget' :
if ( PriorityMessageContainer == none )
{
PriorityMessageContainer = Widget ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
}
break ;
case 'BossNamePlate' :
if ( BossNameplateContainer == none )
{
BossNameplateContainer = Widget ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
}
break ;
case 'interactionMsgWidget' :
if ( InteractionMessageContainer == none )
{
InteractionMessageContainer = Widget ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
}
break ;
case 'WeaponSelectContainer' :
if ( KeyboardWeaponSelectWidget == none )
{
KeyboardWeaponSelectWidget = KFGFxHUD _WeaponSelectWidget ( Widget ) ;
KeyboardWeaponSelectWidget . RefreshWeaponSelect ( ) ;
KeyboardWeaponSelectWidget . InitializeObject ( ) ;
if ( ! bUsingGamepad )
{
WeaponSelectWidget = KeyboardWeaponSelectWidget ;
}
}
break ;
case 'ControllerWeaponSelectContainer' :
if ( ControllerWeaponSelectWidget == none )
{
ControllerWeaponSelectWidget = KFGFxHUD _WeaponSelectWidget ( Widget ) ;
ControllerWeaponSelectWidget . RefreshWeaponSelect ( ) ;
ControllerWeaponSelectWidget . InitializeObject ( ) ;
if ( bUsingGamepad )
{
WeaponSelectWidget = ControllerWeaponSelectWidget ;
}
}
break ;
case 'CompassContainer' :
if ( TraderCompassWidget == none )
{
TraderCompassWidget = KFGFxHUD _TraderCompass ( Widget ) ;
TraderCompassWidget . InitializeHUD ( ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
}
break ;
case 'WaveInfoContainer' :
if ( WaveInfoWidget == none )
{
WaveInfoWidget = KFGFxHUD _WaveInfo ( Widget ) ;
WaveInfoWidget . InitializeHUD ( ) ;
SetWidgetPathBinding ( Widget , WidgetPath ) ;
}
break ;
case 'ChatBoxWidget' :
if ( ! ( class 'WorldInfo' . static . IsPlayInEditor ( ) ) )
{
if ( HudChatBox == none )
{
HudChatBox = KFGFxHUD _ChatBoxWidget ( Widget ) ;
}
}
break ;
case 'voipWidget' :
if ( VOIPWidget == none )
{
VOIPWidget = KFGFxWidget _VOIPNotification ( Widget ) ;
}
break ;
case 'LevelUpNotificationWidget' :
if ( LevelUpNotificationWidget == none )
{
LevelUpNotificationWidget = KFGFxWidget _LevelUpNotification ( Widget ) ;
LevelUpNotificationWidget . InitializeHUD ( ) ;
}
break ;
case 'VoiceCommsWidget' :
if ( VoiceCommsWidget == none )
{
VoiceCommsWidget = KFGFxWidget _VoiceComms ( Widget ) ;
VoiceCommsWidget . InitializeHUD ( ) ;
}
break ;
case 'MusicNotification' :
if ( MusicNotification == none )
{
MusicNotification = KFGFxWidget _MusicNotification ( Widget ) ;
MusicNotification . InitializeHUD ( ) ;
}
break ;
case 'NonCriticalMessageWidget' :
if ( NonCriticalGameMessageWidget == none )
{
NonCriticalGameMessageWidget = KFGFxWidget _NonCriticalGameMessage ( Widget ) ;
}
break ;
case 'InviteMessageWidget' :
if ( InviteGameMessageWidget == none )
{
InviteGameMessageWidget = KFGFxWidget _NonCriticalGameMessage ( Widget ) ;
}
break ;
case 'RhythmCounter' :
if ( RhythmCounterWidget == none )
2021-06-02 20:06:18 +00:00
{
2020-12-13 15:01:13 +00:00
RhythmCounterWidget = KFGFxWidget _RhythmCounter ( Widget ) ;
2021-06-02 20:06:18 +00:00
}
break ;
case 'GoompaCounter' :
if ( GoompaCounterWidget == none )
{
GoompaCounterWidget = KFGFxWidget _GoompaCounter ( Widget ) ;
}
2020-12-13 15:01:13 +00:00
break ;
}
2021-06-02 20:06:18 +00:00
2020-12-13 15:01:13 +00:00
return true ;
}
function UpdateWeaponSelect ( )
{
if ( bUsingGamepad )
{
WeaponSelectWidget = ControllerWeaponSelectWidget ;
if ( KeyboardWeaponSelectWidget != none )
{
KeyboardWeaponSelectWidget . Hide ( ) ;
}
}
else
{
WeaponSelectWidget = KeyboardWeaponSelectWidget ;
if ( ControllerWeaponSelectWidget != none )
{
ControllerWeaponSelectWidget . Hide ( ) ;
}
}
}
/** Update all the unique HUD pieces */
function TickHud ( float DeltaTime )
{
if ( KFPC == none || KFPC . WorldInfo . TimeSeconds - LastUpdateTime < UpdateInterval )
{
return ;
}
2020-12-13 15:09:05 +00:00
2020-12-13 15:01:13 +00:00
if ( WaveInfoWidget != none )
{
WaveInfoWidget . TickHUD ( DeltaTime ) ;
}
if ( ! KFPC . MyHUD . bShowHUD )
{
return ;
}
LastUpdateTime = KFPC . WorldInfo . TimeSeconds ; // throttle the updates so we're not spamming Actionscript with data.
// Update current input
if ( bUsingGamepad != KFPC . PlayerInput . bUsingGamepad )
{
bUsingGamepad = KFPC . PlayerInput . bUsingGamepad ;
UpdateUsingGamepad ( ) ;
UpdateWeaponSelect ( ) ;
}
if ( BossHealthBar != none )
{
BossHealthBar . TickHud ( DeltaTime ) ;
}
2020-12-13 15:09:05 +00:00
if ( MapTextWidget != none )
{
MapTextWidget . TickHud ( UpdateInterval ) ;
}
if ( MapCounterTextWidget != none )
{
MapCounterTextWidget . TickHud ( UpdateInterval ) ;
}
2020-12-13 15:01:13 +00:00
if ( SpectatorInfoWidget != none )
{
SpectatorInfoWidget . TickHud ( DeltaTime ) ;
}
if ( ! bIsSpectating )
{
// Update Health / Armor
if ( PlayerStatusContainer != none )
{
PlayerStatusContainer . TickHud ( DeltaTime ) ;
}
// Update Ammo
if ( PlayerBackpackContainer != none )
{
PlayerBackpackContainer . TickHud ( DeltaTime ) ;
}
}
if ( TraderCompassWidget != none )
{
TraderCompassWidget . TickHUD ( DeltaTime ) ;
}
if ( GfxScoreBoardPlayer != none )
{
GfxScoreBoardPlayer . TickHud ( DeltaTime ) ;
}
}
function UpdateObjectiveActive ( )
{
local KFGameReplicationInfo KFGRI ;
local KFInterface _MapObjective ObjectiveInterface ;
KFPC = KFPlayerController ( GetPC ( ) ) ;
if ( KFPC == none )
{
return ;
}
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( WaveInfoWidget != none && WaveInfoWidget . ObjectiveContainer != none )
{
if ( KFGRI . CurrentObjective == none )
{
WaveInfoWidget . ObjectiveContainer . SetActive ( false ) ;
}
else
{
ObjectiveInterface = KFInterface _MapObjective ( KFGRI . CurrentObjective ) ;
WaveInfoWidget . ObjectiveContainer . SetActive ( ObjectiveInterface . IsActive ( ) ) ;
}
}
}
function UpdateWaveCount ( )
{
if ( GfxScoreBoardPlayer != none )
{
GfxScoreBoardPlayer . UpdateWaveCount ( ) ;
}
if ( WaveInfoWidget != none )
{
WaveInfoWidget . UpdateWaveCount ( ) ;
}
}
//==============================================================
// @name States
//==============================================================
/** Show or hide the HUD */
function NotifyVisibilityChange ( bool bValue )
{
if ( bIsVisible != bValue )
{
bIsVisible = bValue ;
if ( KFPC != none )
{
//Clear focus on next frame
KFPC . SetTimer ( 0.01 , false , nameOf ( UpdateVisibilityState ) , self ) ;
}
}
}
/** Make sure the chat box is closed if we've just opened a menu */
function UpdateVisibilityState ( )
{
if ( bIsVisible )
{
if ( HudChatBox != none )
{
HudChatBox . ClearAndCloseChat ( ) ;
}
}
else
{
Callback _ChatBoxClosed ( ) ;
}
}
/** Hide the HUD elements and only display the spectating part of the HUD */
function SetHUDSpectating ( bool bSpectate )
{
bIsSpectating = bSpectate ;
KFGXHUDManager . SetBool ( "bSpectating" , bIsSpectating ) ;
}
/** Display the scoreboard on screen */
function ShowScoreboard ( bool newShowScoreboard )
{
if ( GfxScoreBoardPlayer == none )
{
CreateScoreboard ( ) ;
}
if ( GfxScoreBoardPlayer != none )
{
GfxScoreBoardPlayer . ShowScoreboard ( newShowScoreboard ) ;
}
}
/** Display the voicecoms on screen */
function ShowVoiceComms ( bool bShowComms )
{
if ( VoiceCommsWidget != none && ! bIsSpectating )
{
if ( bShowComms )
{
VoiceCommsWidget . EnableComm ( ) ;
ShowScoreboard ( false ) ;
if ( WeaponSelectWidget != none )
{
WeaponSelectWidget . Hide ( ) ;
}
}
else
{
VoiceCommsWidget . DisableComm ( ) ;
}
SetMovieCanReceiveFocus ( bShowComms ) ;
SetMovieCanReceiveInput ( bShowComms ) ;
}
}
//==============================================================
// @name Died / Clean up
//==============================================================
function PlayerOwnerDied ( )
{
if ( VoiceCommsWidget != none )
{
VoiceCommsWidget . DisableComm ( ) ;
}
if ( WeaponSelectWidget != none )
{
WeaponSelectWidget . Hide ( ) ;
}
}
function CleanUp ( )
{
//remove score board movie player
ClearScoreboard ( ) ;
//Remove the delegate off of the VoiceComms so the game doesn't crash. Crashes are bad. They make me sad.
if ( GetGameViewportClient ( ) != none )
{
GetGameViewportClient ( ) . HandleInputAxis = none ;
}
}
function NotifyHUDofPRIDestroyed ( KFPlayerReplicationInfo KFPRI )
{
if ( VOIPWidget != none )
{
VOIPWidget . VOIPEventTriggered ( KFPRI , false ) ;
}
}
//==============================================================
// Localized Message rendering
//==============================================================
function ShowKillMessage ( PlayerReplicationInfo PRI1 , PlayerReplicationInfo PRI2 , optional bool bDeathMessage = false , optional Object OptionalObject )
{
local GFxObject DataObject ;
local bool bHumanDeath ;
local string KilledName , KillerName , KilledIconpath , KillerIconPath ;
local string KillerTextColor , KilledTextColor ;
local class < KFPawn _Monster > KFPM ;
if ( KFPC == none )
{
return ;
}
KFPM = class < KFPawn _Monster > ( OptionalObject ) ;
if ( KFGXHUDManager != none )
{
if ( bDeathMessage )
{
if ( KFPM != none )
{
KillerName = KFPM . static . GetLocalizedName ( ) ;
KillerTextColor = ZEDTeamTextColor ;
KillerIconpath = "img://" $class 'KFPerk_Monster' . static . GetPerkIconPath ( ) ;
}
}
else
{
if ( KFPM != none )
{
KilledName = KFPM . static . GetLocalizedName ( ) ;
bHumanDeath = false ;
}
else if ( PRI1 != none )
{
if ( PRI1 . GetTeamNum ( ) == 255 )
{
KillerTextColor = ZEDTeamTextColor ;
KillerIconpath = "img://" $class 'KFPerk_Monster' . static . GetPerkIconPath ( ) ;
}
else
{
KillerTextColor = HumanTeamTextColor ;
KillerIconpath = "img://" $KFPlayerReplicationInfo ( PRI1 ) . CurrentPerkClass . static . GetPerkIconPath ( ) ;
}
KillerName = PRI1 . PlayerName ;
}
}
if ( PRI2 != none )
{
if ( PRI2 . GetTeamNum ( ) == class 'KFTeamInfo_Human' . default . TeamIndex )
{
bHumanDeath = true ;
KilledTextColor = HumanTeamTextColor ;
}
else
{
KilledTextColor = ZEDTeamTextColor ;
bHumanDeath = false ;
}
KilledName = PRI2 . PlayerName ;
KilledIconpath = "img://" $KFPlayerReplicationInfo ( PRI2 ) . CurrentPerkClass . static . GetPerkIconPath ( ) ;
}
DataObject = CreateObject ( "Object" ) ;
DataObject . SetBool ( "humanDeath" , bHumanDeath ) ;
DataObject . SetString ( "killedName" , KilledName ) ;
DataObject . SetString ( "killedTextColor" , KilledTextColor ) ;
DataObject . SetString ( "killedIcon" , KilledIconpath ) ;
DataObject . SetString ( "killerName" , KillerName ) ;
DataObject . SetString ( "killerTextColor" , KillerTextColor ) ;
DataObject . SetString ( "killerIcon" , KillerIconpath ) ;
//temp remove when rest of design catches up
DataObject . SetString ( "text" , KillerName @ KilledName ) ;
KFGXHUDManager . SetObject ( "newBark" , DataObject ) ;
}
}
function ShowBossNameplate ( string BossName , string InSecondaryMessageString )
{
local GFxObject TempObject ;
ShowVoiceComms ( false ) ;
if ( BossNameplateContainer != none && BossName != "" )
{
TempObject = CreateObject ( "Object" ) ;
TempObject . SetString ( "bossName" , BossName ) ;
TempObject . SetString ( "subString" , InSecondaryMessageString ) ;
KFGXHUDManager . SetObject ( "bossData" , TempObject ) ;
}
}
function HideBossNamePlate ( )
{
if ( BossNameplateContainer != none )
{
KFGXHUDManager . ActionScriptVoid ( "hideBossNamePlate" ) ;
}
if ( BossHealthBar != none )
{
BossHealthBar . OnNamePlateHidden ( ) ;
}
}
2020-12-13 15:09:05 +00:00
function DisplayMapText ( string MessageText , float DisplayTime , bool bWaitForTheNextMessageToFinish )
{
if ( MapTextWidget != none )
{
MapTextWidget . DisplayMapText ( MessageText , DisplayTime , bWaitForTheNextMessageToFinish ) ;
}
}
function DisplayMapCounterText ( string MessageText , float DisplayTime )
{
if ( MapCounterTextWidget != none )
{
MapCounterTextWidget . DisplayMapText ( MessageText , DisplayTime ) ;
}
}
2020-12-13 15:01:13 +00:00
function DisplayPriorityMessage ( string InPrimaryMessageString , string InSecondaryMessageString , int LifeTime , optional EGameMessageType MessageType )
{
local GFxObject PriorityMessageObject ;
if ( PriorityMessageContainer != none && InPrimaryMessageString != "" )
{
LastMessageType = MessageType ;
PriorityMessageObject = CreateObject ( "Object" ) ;
PriorityMessageObject . SetString ( "priorityTextPrimaryString" , InPrimaryMessageString ) ;
PriorityMessageObject . SetString ( "priorityTextSecondaryString" , InSecondaryMessageString ) ;
PriorityMessageObject . SetInt ( "priorityTextDisplayTime" , LifeTime ) ;
PriorityMessageContainer . SetObject ( "priorityMessage" , PriorityMessageObject ) ;
}
}
function DisplayExpandedWaveInfo ( )
{
local KFGameReplicationInfo KFGRI ;
local KFWeeklyOutbreakInformation WeeklyInfo ;
local GFxObject PriorityMessageObject ;
local int ModifierIndex ;
switch ( LastMessageType )
{
case GMT _WaveStart :
case GMT _WaveStartWeekly :
case GMT _WaveStartSpecial :
case GMT _WaveSBoss :
break ;
default :
return ;
}
PriorityMessageObject = CreateObject ( "Object" ) ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( PriorityMessageContainer != none )
{
PriorityMessageObject = CreateObject ( "Object" ) ;
if ( KFGRI . default . bEndlessMode )
{
PriorityMessageObject . SetString ( "waveNum" , String ( KFGRI . WaveNum ) ) ;
}
else
{
if ( KFGRI . IsBossWave ( ) )
{
PriorityMessageObject . SetString ( "waveNum" , class 'KFGFxHUD_WaveInfo' . default . BossWaveString ) ;
}
else
{
if ( KFGRI . IsFinalWave ( ) )
{
PriorityMessageObject . SetString ( "waveNum" , class 'KFGFxHUD_WaveInfo' . default . FinalWaveString ) ;
}
else
{
PriorityMessageObject . SetString ( "waveNum" , KFGRI . WaveNum $ "/" @ KFGRI . GetFinalWaveNum ( ) ) ;
}
}
}
PriorityMessageObject . SetString ( "waveString" , class 'KFGFxHUD_WaveInfo' . default . WaveString ) ;
PriorityMessageObject . SetInt ( "waveTier" , GetWaveTier ( ) ) ;
if ( KFGRI . IsWeeklyWave ( ModifierIndex ) )
{
WeeklyInfo = class 'KFMission_LocalizedStrings' . static . GetWeeklyOutbreakInfoByIndex ( ModifierIndex ) ;
PriorityMessageObject . SetString ( "waveType" , WeeklyInfo . FriendlyName ) ;
PriorityMessageObject . SetString ( "waveImage" , "img://" $WeeklyInfo . IconPath ) ;
}
else if ( KFGRI . IsSpecialWave ( ModifierIndex ) )
{
//Something for zed waves
PriorityMessageObject . SetString ( "waveType" , Localize ( "Zeds" , SpecialWaveLocKey [ ModifierIndex ] , "KFGame" ) ) ;
PriorityMessageObject . SetString ( "waveImage" , "img://" $SpecialWaveIconPath [ ModifierIndex ] ) ;
}
else
{
//PriorityMessageObject.SetString("waveType", "Survival");
}
PriorityMessageContainer . SetObject ( "waveNumberMessage" , PriorityMessageObject ) ;
}
}
function int GetWaveTier ( )
{
local KFGameReplicationInfo KFGRI ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( KFGRI . default . bEndlessMode )
{
//calculate it
if ( KFGRI . WaveNum > 20 )
{
return 5 ;
}
else if ( KFGRI . WaveNum > 15 )
{
return 4 ;
}
if ( KFGRI . WaveNum > 10 )
{
return 3 ;
}
if ( KFGRI . WaveNum > 5 )
{
return 2 ;
}
}
else
{
if ( KFGRI . IsFinalWave ( ) )
{
return 3 ;
}
else if ( KFGRI . IsBossWave ( ) )
{
return 5 ;
}
}
return 1 ;
}
function bool ShouldCheckForObjective ( EGameMessageType MessageType )
{
local KFGameReplicationInfo KFGRI ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( KFGRI . GetNumPlayersAlive ( ) <= 0 )
{
return false ;
}
switch ( MessageType )
{
case GMT _WaveStart :
case GMT _WaveStartWeekly :
case GMT _WaveStartSpecial :
case GMT _WaveSBoss :
case GMT _WaveEnd :
return true ;
}
return false ;
}
simulated function PlayObjectiveAudio ( )
{
local KFGameReplicationInfo KFGRI ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( KFGRI . PreviousObjectiveResult > 0 )
{
class 'KFMusicStingerHelper' . static . PlayObjectiveWonStinger ( GetPC ( ) ) ;
}
else
{
class 'KFMusicStingerHelper' . static . PlayNewObjectiveStinger ( GetPC ( ) ) ;
}
}
simulated function DisplayObjectiveResults ( )
{
local KFGameReplicationInfo KFGRI ;
local GFxObject ObjectiveObject ;
local KFInterface _MapObjective ObjectiveInterface ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
ObjectiveInterface = KFInterface _MapObjective ( KFGRI . PreviousObjective ) ;
if ( KFGRI . PreviousObjectiveResult > 0 )
{
ObjectiveObject = CreateObject ( "Object" ) ;
//do not show lost because this is optional
ObjectiveObject . SetString ( "titleString" , class 'KFLocalMessage_Priority' . default . ObjectiveWonMessage ) ;
ObjectiveObject . SetString ( "nameString" , class 'KFCommon_LocalizedStrings' . default . BonusDoshString ) ;
ObjectiveObject . SetString ( "descString" , " " ) ;
ObjectiveObject . SetString ( "requireString" , " " ) ;
ObjectiveObject . SetString ( "rewardNum" , string ( KFGRI . PreviousObjectiveResult ) ) ;
ObjectiveObject . SetString ( "xpBonus" , string ( KFGRI . PreviousObjectiveXPResult ) ) ;
ObjectiveObject . SetString ( "voshBonus" , string ( KFGRI . PreviousObjectiveVoshResult ) ) ;
ObjectiveObject . SetString ( "iconPath" , "img://" $PathName ( ObjectiveInterface . GetIcon ( ) ) ) ;
ObjectiveObject . SetBool ( "isBonus" , true ) ;
PriorityMessageContainer . SetObject ( "objectiveMessage" , ObjectiveObject ) ;
LastMessageType = GMT _Null ;
}
}
simulated function DisplayNewObjective ( )
{
local KFGameReplicationInfo KFGRI ;
local GFxObject ObjectiveObject ;
local KFInterface _MapObjective ObjectiveInterface ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
ObjectiveInterface = KFGRI . ObjectiveInterface ;
if ( ObjectiveInterface != none )
{
ObjectiveObject = CreateObject ( "Object" ) ;
ObjectiveObject . SetString ( "titleString" , class 'KFLocalMessage_Priority' . default . ObjectiveStartMessage ) ;
ObjectiveObject . SetString ( "nameString" , ObjectiveInterface . GetLocalizedName ( ) ) ;
ObjectiveObject . SetString ( "descString" , ObjectiveInterface . GetLocalizedDescription ( ) ) ;
ObjectiveObject . SetString ( "requireString" , ObjectiveInterface . GetLocalizedRequirements ( ) ) ;
ObjectiveObject . SetString ( "rewardNum" , string ( ObjectiveInterface . GetMaxDoshReward ( ) ) ) ;
ObjectiveObject . SetString ( "xpBonus" , string ( ObjectiveInterface . GetMaxXPReward ( ) ) ) ;
ObjectiveObject . SetString ( "voshBonus" , string ( ObjectiveInterface . GetMaxVoshReward ( ) ) ) ;
ObjectiveObject . SetString ( "iconPath" , "img://" $PathName ( ObjectiveInterface . GetIcon ( ) ) ) ;
ObjectiveObject . SetBool ( "isBonus" , false ) ;
KFGRI . PreviousObjectiveResult = INDEX _NONE ;
PriorityMessageContainer . SetObject ( "objectiveMessage" , ObjectiveObject ) ;
LastMessageType = GMT _Null ;
}
}
/** Display a message that corresponds to input */
function DisplayInteractionMessage ( string MessageString , int MessageIndex , optional string ButtonName = "" , optional float Duration )
{
if ( InteractionMessageContainer != none )
{
if ( MessageIndex == IMT _None || KFPC . IsBossCameraMode ( ) )
{
HideInteractionMessage ( ) ;
}
// allow messages of the same priority to replace each other (unless it's the same message)
else if ( MessageIndex != CurrentInteractionIndex && GetInteractionMessagePriority ( MessageIndex ) >= GetInteractionMessagePriority ( CurrentInteractionIndex ) )
{
MessageString = Caps ( MessageString ) ;
if ( KFPC != None )
{
KFPC . ClearTimer ( nameOf ( HideInteractionMessage ) , self ) ;
if ( Duration > 0. f )
{
KFPC . SetTimer ( Duration , false , nameOf ( HideInteractionMessage ) , self ) ;
}
}
//Check to see if removing the controller prefix will result in a single character. If we send a single character
// bad things will happen.
if ( class 'Actor' . static . Len ( ButtonName ) - class 'Actor' . static . Len ( ControllerStringPrefix ) > 1 )
{
//Image Replacing a string in AS3 cannot take a substring larger than 15 characters. We remove the prefix for controllers
//because these are common accross all controller inputs.
class 'Actor' . static . ReplaceText ( ButtonName , ControllerStringPrefix , "" ) ;
}
// Put the command into the string so that it can be replaced Scaleform will not try to image replace a keyboard command unless
// we actually put an icon and object for it.
//class'Actor'.static.ReplaceText(MessageString, "<%X%>", ButtonName );
SendInteractionMessageToGFX ( MessageString , ButtonName ) ;
CurrentInteractionIndex = MessageIndex ;
}
}
}
/** Allows client to group message indices together in the same priority (e.g. all usable trigger messages get same priority even though enum id is different) */
function int GetInteractionMessagePriority ( int MessageIndex )
{
// for now, make all usable messages the same priority
if ( MessageIndex < IMT _GamepadWeaponSelectHint )
{
return IMT _GamepadWeaponSelectHint - 1 ;
}
return MessageIndex ;
}
/** Display a message that corresponds to input */
function SendInteractionMessageToGFX ( string MessageString , string ButtonName )
{
local GFxObject TextObject ;
local array < String > StringArray ;
TextObject = CreateObject ( "Object" ) ;
StringArray = SplitString ( MessageString , HoldCommandDelimiter ) ;
if ( StringArray . length > 1 )
{
TextObject . SetString ( "holdMessage" , StringArray [ 1 ] ) ;
TextObject . SetBool ( "bHoldCommand" , true ) ;
}
else
{
TextObject . SetBool ( "bHoldCommand" , false ) ;
}
TextObject . SetString ( "message" , StringArray [ 0 ] ) ;
TextObject . SetString ( "buttonName" , ButtonName ) ;
TextObject . SetString ( "holdString" , class 'KFGFxControlsContainer_ControllerPresets' . default . HoldString ) ;
TextObject . SetString ( "tapString" , class 'KFGFxControlsContainer_ControllerPresets' . default . TapString ) ;
InteractionMessageContainer . SetObject ( "interactionMessageData" , TextObject ) ;
}
/ * *
* Close the interaction message
* /
function HideInteractionMessage ( )
{
CurrentInteractionIndex = IMT _None ;
InteractionMessageContainer . ActionScriptVoid ( "outInteractionMessage" ) ;
}
/** Show less important messages */
function ShowNonCriticalMessage ( string LocalizedMessage )
{
if ( NonCriticalGameMessageWidget != none )
{
NonCriticalGameMessageWidget . ShowMessage ( LocalizedMessage ) ;
}
}
/** Show invite text message */
function ShowInviteMessage ( string FriendName )
{
if ( InviteGameMessageWidget != none )
{
if ( FriendName == "" )
{
InviteGameMessageWidget . ShowMessage ( FriendName ) ;
}
else
{
InviteGameMessageWidget . ShowMessage ( FriendName$Class 'KFCommon_LocalizedStrings' . default . InvitePopupTextString ) ;
}
}
}
function UpdateRhythmCounterWidget ( int value , int max )
{
if ( RhythmCounterWidget != none )
{
RhythmCounterWidget . SetCount ( value , max ) ;
}
}
2021-06-02 20:06:18 +00:00
function UpdateGoompaCounterWidget ( int value , int max )
{
if ( GoompaCounterWidget != none )
{
GoompaCounterWidget . SetCount ( value , max ) ;
}
}
2020-12-13 15:01:13 +00:00
//==============================================================
// Input
//==============================================================
/** Set whether the HUD should eat all button input */
function EatMyInput ( bool bValue )
{
local byte HUDPriority ;
if ( bValue )
{
GetPC ( ) . PlayerInput . ResetInput ( ) ;
}
// Set whether the HUD should eat the input
SetMovieCanReceiveFocus ( bValue ) ;
SetMovieCanReceiveInput ( bValue ) ;
// Set the HUD as the movie player with the highest priority
HUDPriority = ( bValue ) ? 255 : 1 ;
SetPriority ( HUDPriority ) ;
}
/** Update icons with either mouse / keyboard or gamepad */
function UpdateUsingGamepad ( )
{
if ( SpectatorInfoWidget != none )
{
SpectatorInfoWidget . UpdateUsingGamepad ( bUsingGamepad ) ;
}
if ( KickVoteWidget != none )
{
KickVoteWidget . UpdateUsingGamepad ( bUsingGamepad ) ;
}
}
//==============================================================
// In-Game Chat Box.
//==============================================================
// A player pressed the 'Talk' key. Open the Gfx chat box.
function OpenChatBox ( )
{
if ( HudChatBox != none )
{
HudChatBox . OpenInputField ( ) ;
// Give focus to the GfxMovie so player can type in the box.
EatMyInput ( true ) ;
bIgnoreMouseInput = false ;
}
}
//==============================================================
2021-12-09 16:33:06 +00:00
// Kick, Skip Trader and Pause Game Vote
2020-12-13 15:01:13 +00:00
//==============================================================
function ShowKickVote ( PlayerReplicationInfo PRI , byte VoteDuration , bool bShowChoices )
{
if ( KickVoteWidget != none )
{
bIsSkipTraderVoteActive = false ;
2021-12-09 16:33:06 +00:00
bIsPauseGameVoteActive = false ;
bIsKickVoteActive = true ;
KickVoteWidget . ShowVote ( PRI , VoteDuration , bShowChoices , VT _KICK ) ;
2020-12-13 15:01:13 +00:00
}
}
simulated function HideKickVote ( )
{
if ( KickVoteWidget != none )
{
bIsSkipTraderVoteActive = false ;
bIsKickVoteActive = false ;
2021-12-09 16:33:06 +00:00
bIsPauseGameVoteActive = false ;
2020-12-13 15:01:13 +00:00
KickVoteWidget . VoteClosed ( ) ;
}
}
function UpdateKickVoteCount ( byte YesVotes , byte NoVotes )
{
if ( KickVoteWidget != none )
{
KickVoteWidget . UpdateVoteCount ( YesVotes , NoVotes ) ;
}
}
function ShowSkipTraderVote ( PlayerReplicationInfo PRI , byte VoteDuration , bool bShowChoices )
{
if ( KickVoteWidget != none )
{
bIsSkipTraderVoteActive = true ;
bIsKickVoteActive = false ;
2021-12-09 16:33:06 +00:00
bIsPauseGameVoteActive = false ;
KickVoteWidget . ShowVote ( PRI , VoteDuration , bShowChoices , VT _SKIP _TRADER ) ;
2020-12-13 15:01:13 +00:00
}
}
function UpdateSkipTraderTime ( byte VoteDuration )
{
if ( KickVoteWidget != none )
{
KickVoteWidget . UpdateVoteDuration ( VoteDuration ) ;
}
}
simulated function HideSkipTraderVote ( )
{
if ( KickVoteWidget != none )
{
bIsSkipTraderVoteActive = false ;
bIsKickVoteActive = false ;
2021-12-09 16:33:06 +00:00
bIsPauseGameVoteActive = false ;
2020-12-13 15:01:13 +00:00
KickVoteWidget . VoteClosed ( ) ;
}
}
function UpdateSkipTraderVoteCount ( byte YesVotes , byte NoVotes )
{
if ( KickVoteWidget != none )
{
KickVoteWidget . UpdateVoteCount ( YesVotes , NoVotes ) ;
}
}
2021-12-09 16:33:06 +00:00
function ShowPauseGameVote ( PlayerReplicationInfo PRI , byte VoteDuration , bool bShowChoices )
{
local KFGameReplicationInfo KFGRI ;
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
if ( KickVoteWidget != none )
{
bIsPauseGameVoteActive = true ;
bIsKickVoteActive = false ;
bIsSkipTraderVoteActive = false ;
KickVoteWidget . ShowVote ( PRI , VoteDuration , bShowChoices , ( KFGRI != none && KFGRI . bIsEndlessPaused ) ? VT _RESUME _GAME : VT _PAUSE _GAME ) ;
}
}
function UpdatePauseGameTime ( byte VoteDuration )
{
if ( KickVoteWidget != none )
{
KickVoteWidget . UpdateVoteDuration ( VoteDuration ) ;
}
}
simulated function HidePauseGameVote ( )
{
if ( KickVoteWidget != none )
{
bIsPauseGameVoteActive = false ;
bIsKickVoteActive = false ;
bIsSkipTraderVoteActive = false ;
KickVoteWidget . VoteClosed ( ) ;
}
}
function UpdatePauseGameVoteCount ( byte YesVotes , byte NoVotes )
{
if ( KickVoteWidget != none )
{
` Log("UPDATING PAUSE GAME VOTE COUNT - YES: " $ YesVotes);
` Log("UPDATING PAUSE GAME VOTE COUNT - NO: " $ NoVotes);
KickVoteWidget . UpdateVoteCount ( YesVotes , NoVotes ) ;
}
}
2020-12-13 15:01:13 +00:00
//==============================================================
// Updates
//==============================================================
/* currently only set in the INI file due to Relow issues with layouts. */
function UpdateScale ( )
{
if ( KFGXHUDManager != none )
{
KFGXHUDManager . SetFloat ( "HUDScale" , HUDScale * class 'WorldInfo' . static . GetResolutionBasedHUDScale ( ) ) ;
}
}
/** Refresh the weapon HUD upon obtaining a new one */
function NotifyHUDofWeapon ( )
{
if ( WeaponSelectWidget != none )
{
WeaponSelectWidget . RefreshWeaponSelect ( ) ;
}
}
function ClearBuffIcons ( )
{
if ( PlayerStatusContainer != none )
{
PlayerStatusContainer . ClearBuffIcons ( ) ;
}
}
function PawnDied ( )
{
ClearBuffIcons ( ) ;
}
function ReceivePawn ( KFPawn NewPawn ) ;
//==============================================================
// ActionScript Callbacks
//==============================================================
function Callback _ObjMessageFired ( )
{
PlayObjectiveAudio ( ) ;
}
function Callback _PriorityMessageComplete ( )
{
local KFInterface _MapObjective ObjectiveInterface ;
local KFGameReplicationInfo KFGRI ;
DisplayExpandedWaveInfo ( ) ;
if ( ShouldCheckForObjective ( LastMessageType ) )
{
KFGRI = KFGameReplicationInfo ( KFPC . WorldInfo . GRI ) ;
ObjectiveInterface = KFGRI . ObjectiveInterface ;
if ( ObjectiveInterface != none )
{
DisplayNewObjective ( ) ;
}
else if ( KFGRI . PreviousObjective != none )
{
DisplayObjectiveResults ( ) ;
}
UpdateObjectiveActive ( ) ;
LastMessageType = GMT _Null ;
}
else
{
bObjectiveQueued = true ;
}
}
function Callback _BroadcastChatMessage ( string NewMessage )
{
if ( ! IsPendingKill ( ) )
{
if ( NewMessage != "" )
{
if ( KFPC . CurrentTextChatChannel == ETCC _TEAM )
{
GetPC ( ) . TeamSay ( NewMessage ) ;
}
else
{
GetPC ( ) . Say ( NewMessage ) ;
}
}
}
}
function Callback _ChatBoxClosed ( )
{
EatMyInput ( false ) ;
bIgnoreMouseInput = true ;
}
function Callback _SelectWeapon ( int GroupIndex , int WeaponIndex )
{
local KFInventoryManager KFIM ;
if ( GetPC ( ) . Pawn != none )
{
KFIM = KFInventoryManager ( GetPC ( ) . Pawn . InvManager ) ;
if ( KFIM != none )
{
KFIM . SelectCurrentWeapon ( GroupIndex , WeaponIndex ) ;
}
}
}
function Callback _WeaponSelectFadedOut ( )
{
if ( WeaponSelectWidget != none )
{
WeaponSelectWidget . bChangingWeapons = false ;
}
}
function Callback _VoiceCommsSay ( int CommsIndex )
{
if ( VoiceCommsWidget != none )
{
VoiceCommsWidget . SayVoiceCommms ( CommsIndex ) ;
}
}
function Callback _VoiceCommsSelection ( int CommsIndex )
{
if ( VoiceCommsWidget != none )
{
VoiceCommsWidget . SaveVoiceCommSelection ( CommsIndex ) ;
}
}
2021-12-09 16:33:06 +00:00
function Callback _VoteKick ( bool Vote )
2020-12-13 15:01:13 +00:00
{
local KFPlayerReplicationInfo KFPRI ;
KFPRI = KFPlayerReplicationInfo ( GetPC ( ) . PlayerReplicationInfo ) ;
if ( bIsSkipTraderVoteActive )
{
2021-12-09 16:33:06 +00:00
KFPRI . CastSkipTraderVote ( KFPRI , Vote ) ;
2020-12-13 15:01:13 +00:00
}
2021-12-09 16:33:06 +00:00
else if ( bIsPauseGameVoteActive )
{
KFPRI . CastPauseGameVote ( KFPRI , Vote ) ;
}
2020-12-13 15:01:13 +00:00
else
{
2021-12-09 16:33:06 +00:00
KFPRI . CastKickVote ( KFPRI , Vote ) ;
2020-12-13 15:01:13 +00:00
}
if ( KickVoteWidget != none )
{
KickVoteWidget . ResetVote ( ) ;
}
}
DefaultProperties
{
SoundThemes . Add ( ( ThemeName = "UI" , Theme = UISoundTheme 'SoundsShared_UI.SoundTheme_UI' ) )
ZEDTeamTextColor = "0xBE0600"
HumanTeamTextColor = "0xBAFFFF"
ScoreBoardClass = class 'KFGFxMoviePlayer_ScoreBoard'
MovieInfo = SwfMovie 'UI_HUD.InGameHUD_SWF'
ControllerStringPrefix = "XboxTypeS_"
HoldCommandDelimiter = "<%HOLD%>"
Priority = 1
UpdateInterval = . 1 f
bAllowFocus = true
bCaptureInput = true
bAllowInput = true
bDisplayWithHudOff = false
bAutoPlay = true
bIsSpectating = false
WidgetBindings . Add ( ( WidgetName = "ObjectiveContainer" , WidgetClass = class 'KFGFxHUD_ObjectiveConatiner' ) )
WidgetBindings . Add ( ( WidgetName = "SpectatorInfoWidget" , WidgetClass = class 'KFGFxHUD_SpectatorInfo' ) )
WidgetBindings . Add ( ( WidgetName = "PlayerStatWidgetMC" , WidgetClass = class 'KFGFxHUD_PlayerStatus' ) )
WidgetBindings . Add ( ( WidgetName = "PlayerBackpackWidget" , WidgetClass = class 'KFGFxHUD_PlayerBackpack' ) )
WidgetBindings . Add ( ( WidgetName = "PriorityMsgWidget" , WidgetClass = class 'GfxObject' ) )
WidgetBindings . Add ( ( WidgetName = "BossNamePlate" , WidgetClass = class 'GfxObject' ) )
WidgetBindings . Add ( ( WidgetName = "interactionMsgWidget" , WidgetClass = class 'GfxObject' ) )
WidgetBindings . Add ( ( WidgetName = "ControllerWeaponSelectContainer" , WidgetClass = class 'KFGFxHUD_WeaponSelectWidget' ) )
WidgetBindings . Add ( ( WidgetName = "WeaponSelectContainer" , WidgetClass = class 'KFGFxHUD_WeaponSelectWidget' ) )
WidgetBindings . Add ( ( WidgetName = "CompassContainer" , WidgetClass = class 'KFGFxHUD_TraderCompass' ) )
WidgetBindings . Add ( ( WidgetName = "WaveInfoContainer" , WidgetClass = class 'KFGFxHUD_WaveInfo' ) )
WidgetBindings . Add ( ( WidgetName = "ChatBoxWidget" , WidgetClass = class 'KFGFxHUD_ChatBoxWidget' ) )
WidgetBindings . Add ( ( WidgetName = "voipWidget" , WidgetClass = class 'KFGFxWidget_VOIPNotification' ) )
WidgetBindings . Add ( ( WidgetName = "LevelUpNotificationWidget" , WidgetClass = class 'KFGFxWidget_LevelUpNotification' ) )
WidgetBindings . Add ( ( WidgetName = "VoiceCommsWidget" , WidgetClass = class 'KFGFxWidget_VoiceComms' ) )
WidgetBindings . Add ( ( WidgetName = "KickVoteWidget" , WidgetClass = class 'KFGFxWidget_KickVote' ) )
WidgetBindings . Add ( ( WidgetName = "MusicNotification" , WidgetClass = class 'KFGFxWidget_MusicNotification' ) )
WidgetBindings . Add ( ( WidgetName = "NonCriticalMessageWidget" , WidgetClass = class 'KFGFxWidget_NonCriticalGameMessage' ) )
WidgetBindings . Add ( ( WidgetName = "InviteMessageWidget" , WidgetClass = class 'KFGFxWidget_NonCriticalGameMessage' ) )
WidgetBindings . Add ( ( WidgetName = "RhythmCounter" , WidgetClass = class 'KFGFxWidget_RhythmCounter' ) )
2021-06-02 20:06:18 +00:00
WidgetBindings . ADD ( ( WidgetName = "GoompaCounter" , WidgetClass = class 'KFGFxWidget_GoompaCounter' ) ) ;
2020-12-13 15:01:13 +00:00
WidgetBindings . Add ( ( WidgetName = "bossHealthBar" , WidgetClass = class 'KFGFxWidget_BossHealthBar' ) )
2020-12-13 15:09:05 +00:00
WidgetBindings . Add ( ( WidgetName = "mapTextWidget" , WidgetClass = class 'KFGFxWidget_MapText' ) )
WidgetBindings . Add ( ( WidgetName = "counterMapTextWidget" , WidgetClass = class 'KFGFxWidget_MapCounterText' ) )
2020-12-13 15:01:13 +00:00
SpecialWaveIconPath ( AT _Clot ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Cyst"
SpecialWaveIconPath ( AT _SlasherClot ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Slasher"
SpecialWaveIconPath ( AT _AlphaClot ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Clot"
SpecialWaveIconPath ( AT _Crawler ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Crawler"
SpecialWaveIconPath ( AT _GoreFast ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Gorefast"
SpecialWaveIconPath ( AT _Stalker ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Stalker"
SpecialWaveIconPath ( AT _Scrake ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Scrake"
SpecialWaveIconPath ( AT _FleshPound ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_FP"
SpecialWaveIconPath ( AT _FleshpoundMini ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_FP"
SpecialWaveIconPath ( AT _Bloat ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Bloat"
SpecialWaveIconPath ( AT _Siren ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Siren"
SpecialWaveIconPath ( AT _Husk ) = "UI_Endless_TEX.ZEDs.UI_ZED_Endless_Husk"
SpecialWaveLocKey ( AT _SlasherClot ) = "KFPawn_ZedClot_Slasher"
SpecialWaveLocKey ( AT _Clot ) = "KFPawn_ZedClot_Cyst"
SpecialWaveLocKey ( AT _Crawler ) = "KFPawn_ZedCrawler"
SpecialWaveLocKey ( AT _Stalker ) = "KFPawn_ZedStalker"
SpecialWaveLocKey ( AT _Siren ) = "KFPawn_ZedSiren"
SpecialWaveLocKey ( AT _Husk ) = "KFPawn_ZedHusk"
SpecialWaveLocKey ( AT _Scrake ) = "KFPawn_ZedScrake"
SpecialWaveLocKey ( AT _AlphaClot ) = "KFPawn_ZedClot_Alpha"
SpecialWaveLocKey ( AT _GoreFast ) = "KFPawn_ZedGorefast"
SpecialWaveLocKey ( AT _Bloat ) = "KFPawn_ZedBloat"
SpecialWaveLocKey ( AT _FleshPound ) = "KFPawn_ZedFleshpound"
}