36 lines
514 B
Ucode
36 lines
514 B
Ucode
Class SRCustomProgressInt extends SRCustomProgress
|
|
Abstract;
|
|
|
|
var int CurrentValue;
|
|
|
|
replication
|
|
{
|
|
reliable if( Role==ROLE_Authority && bNetOwner )
|
|
CurrentValue;
|
|
}
|
|
|
|
simulated function string GetProgress()
|
|
{
|
|
return string(CurrentValue);
|
|
}
|
|
|
|
simulated function int GetProgressInt()
|
|
{
|
|
return CurrentValue;
|
|
}
|
|
|
|
function SetProgress( string S )
|
|
{
|
|
CurrentValue = int(S);
|
|
}
|
|
|
|
function IncrementProgress( int Count )
|
|
{
|
|
CurrentValue+=Count;
|
|
ValueUpdated();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
}
|