1
0
KF2-Dev-Scripts/KFGame/Classes/KFGFxWidget_MusicNotification.uc
2020-12-13 18:01:13 +03:00

34 lines
947 B
Ucode

//=============================================================================
// KFGFxWidget_MusicNotification
//=============================================================================
// This element will display the track title and artist name of the current
// music on music change
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Zane Gholson 11/10/2014
//=============================================================================
class KFGFxWidget_MusicNotification extends GFxObject;
function InitializeHUD()
{
}
function ShowSongInfo(string SongInfoString)
{
local KFGameEngine KFEngine;
KFEngine = KFGameEngine(Class'Engine'.static.GetEngine());
if(KFEngine != none && KFEngine.MusicVolumeMultiplier > 0)
{
SetString("text", SongInfoString);
}
}
DefaultProperties
{
}