30 lines
848 B
Ucode
30 lines
848 B
Ucode
|
|
|
|
//=============================================================================
|
|
// 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);
|
|
}
|