KF2-YetAnotherScoreboard/Src/KFClassicHUD/Classes/KF1HUD_MusicNotification.uc
2020-01-10 07:14:11 -06:00

26 lines
588 B
Ucode

class KF1HUD_MusicNotification extends KFGFxWidget_MusicNotification;
function ShowSongInfo(string SongInfoString)
{
local KFGameEngine KFEngine;
local ClassicKFHUD HUD;
local PopupMessage Msg;
HUD = ClassicKFHUD(GetPC().MyHUD);
KFEngine = KFGameEngine(Class'Engine'.static.GetEngine());
if(KFEngine != none && KFEngine.MusicVolumeMultiplier > 0)
{
Msg.Body = SongInfoString;
Msg.Image = Texture2D'UI_HUD.InGameHUD_SWF_IBC';
Msg.MsgPosition = PP_TOP_CENTER;
HUD.AddPopupMessage(Msg);
}
}
DefaultProperties
{
}