1
0
KF2-Dev-Scripts/KFGame/Classes/KFGFxWidget_RhythmCounter.uc

25 lines
802 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFGFxWidget_RhythmCounter
//=============================================================================
// HUD Widget that displays messages to the player
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Zane Gholson 01/14/2015
//=============================================================================
class KFGFxWidget_RhythmCounter extends GFxObject;
function SetCount( int Count, int Max )
{
SetInt("count", Min(Count, Max));
SetBonusPercentage(float(Min(Max,Count)) / float(Max));
}
function SetBonusPercentage( float NewValue )
{
SetFloat("bonusPercentage", NewValue);
}