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

30 lines
848 B
Ucode
Raw Normal View History

2021-06-02 20:06:18 +00:00
//=============================================================================
// KFGFxWidget_GoompaCounter
//=============================================================================
// HUD Widget that displays messages to the player
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Zane Gholson 01/14/2015
//=============================================================================
class KFGFxWidget_GoompaCounter extends GFxObject;
function SetCount( int Count, int Max )
{
SetInt("count", Count);
SetBonusPercentage(float(Min(Max,Count)) / float(Max));
if (Count > 0)
{
SetBool("hidden", false);
}
}
function SetBonusPercentage( float NewValue )
{
SetFloat("bonusPercentage", NewValue);
}