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

25 lines
802 B
Ucode

//=============================================================================
// 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);
}