Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

BonusPack.MutantScoreboard


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
class MutantScoreboard extends ScoreBoardDeathMatch;

var()   Material    BottomFeederMarker;
var()   Material    MutantMarker;

function ExtraMarking(Canvas Canvas, int PlayerCount, int OwnerOffset, int XPos, int YPos, int YOffset)
{
    local int i, OwnerPos;
    local float IconScale;
    local MutantGameReplicationInfo MutantInfo;

    MutantInfo = MutantGameReplicationInfo(GRI);

    // draw mutant and BF marker
    IconScale = Canvas.ClipX/1024;
    Canvas.DrawColor = HUDClass.default.WhiteColor;
    Canvas.Style = ERenderStyle.STY_Normal; 

    for ( i=0; i<PlayerCount; i++ )
    {
        // If this is the bottom feeder
        if( MutantInfo.BottomFeederPRI == GRI.PRIArray[i] )
        {
            Canvas.SetPos(XPos - 64*IconScale, YPos*i + YOffset - 16*IconScale);
            Canvas.DrawTile( BottomFeederMarker, 64*IconScale, 64*IconScale, 0, 0, 256, 256);
        }

        // If this is the mutant (should never be able to be both!!!)
        if( MutantInfo.MutantPRI == GRI.PRIArray[i] )
        {
            Canvas.SetPos(XPos - 64*IconScale, YPos*i + YOffset);
            Canvas.DrawTile( MutantMarker, 64*IconScale, 32*IconScale, 0, 0, 256, 128);
        }
    }

    if ( OwnerOffset >= PlayerCount )
    {
        OwnerPos = YPos*PlayerCount + YOffset;

        // Mutant/Bottom Feeder marker for owner
        if( MutantInfo.BottomFeederPRI == GRI.PRIArray[OwnerOffset] )
        {
            Canvas.SetPos(XPos - 64*IconScale, OwnerPos - 16*IconScale);
            Canvas.DrawTile( BottomFeederMarker, 64*IconScale, 64*IconScale, 0, 0, 256, 256);
        }

        if( MutantInfo.MutantPRI == GRI.PRIArray[OwnerOffset] )
        {
            Canvas.SetPos(XPos - 64*IconScale, OwnerPos);
            Canvas.DrawTile( MutantMarker, 64*IconScale, 32*IconScale, 0, 0, 256, 128);
        }
    }
}

defaultproperties
{
     BottomFeederMarker=Texture'MutantSkins.HUD.BFeeder_icon'
     MutantMarker=FinalBlend'MenuEffects.ScoreBoard.ScoreboardU_FB'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Wed 2/8/2006 16:29:42.000 - Creation time: Wed 7/2/2007 19:16:44.796 - Created with UnCodeX