KF2-YetAnotherScoreboard/ScoreboardExt/Classes/KF1HUD_MusicNotification.uc

27 lines
625 B
Ucode
Raw Normal View History

2021-05-16 03:37:39 +00:00
class KF1HUD_MusicNotification extends KFGFxWidget_MusicNotification
dependson(ScoreboardExtHUD);
2020-01-10 13:14:11 +00:00
function ShowSongInfo(string SongInfoString)
{
local KFGameEngine KFEngine;
2021-05-16 03:37:39 +00:00
local ScoreboardExtHUD HUD;
2020-01-10 13:14:11 +00:00
local PopupMessage Msg;
2021-05-16 03:37:39 +00:00
HUD = ScoreboardExtHUD(GetPC().MyHUD);
2020-01-10 13:14:11 +00:00
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
{
}