class UR_ShieldGeneratorMessage extends LocalMessage;

var color  redColor;
var color  blueColor;

/*static simulated function ClientReceive(
        PlayerController P,
        optional int Switch,
        optional PlayerReplicationInfo RelatedPRI_1,
        optional PlayerReplicationInfo RelatedPRI_2,
        optional Object OptionalObject
        )
{
        if(P.PlayerReplicationInfo.Team.TeamIndex == switch)
       super.ClientReceive(P, Switch, RelatedPRI_1, RelatedPRI_2, OptionalObject);
}  */

static function color GetColor(
        optional int Switch,
        optional PlayerReplicationInfo RelatedPRI_1,
        optional PlayerReplicationInfo RelatedPRI_2,
        optional Object OptionalObject
        )
{
        if(Switch == 0)  //red Team
         return default.redColor;
        else
         return default.blueColor;
}

static function string GetString(
        optional int Switch,
        optional bool bPRI1HUD,
        optional PlayerReplicationInfo RelatedPRI_1,
        optional PlayerReplicationInfo RelatedPRI_2,
        optional Object OptionalObject
        )
{
    local UR_ShieldGenerator UR_S;

    UR_S = UR_ShieldGenerator(OptionalObject);

        if( UR_S != None)
    {
           if(UR_S.genEnable)
           {
             return UR_S.enableMessage;
           }
           else
           {
             return UR_S.disableMessage;
           }
    }

        return "";
}


defaultproperties
{
        bIsUnique=true
        bCountInstances=true
        DrawColor=(R=255,G=255,B=128,A=255)
        redColor=(R=255,G=0,B=0,A=255)
    blueColor=(R=0,G=0,B=255,A=255)
        FontSize=2
        bIsConsoleMessage=false
}