Icons



code:
menuDef {
visible 1
rect 100 240 200 50

// weapon icon

itemDef {
rect 0 0 24 24
visible 1
ownerdraw CG_PLAYER_AMMO_ICON2D
}

// weapon icon 3D
itemDef {
rect 0 50 24 24
visible 1
ownerdraw CG_PLAYER_AMMO_ICON
}

// health icon shadow
itemDef {
backcolor 0 0 0 .8
rect 51 1 22 22
visible 1
style WINDOW_STYLE_FILLED
background "ui/assets/hud/health.tga"
}

// health icon
itemDef {
rect 50 0 22 22
// this command makes it red, blue or yellow depending
// on the game type
ownerdraw CG_TEAM_COLORIZED
visible 1
style WINDOW_STYLE_FILLED
background "ui/assets/hud/health.tga"
}


// armor icon shadow
itemDef {
backcolor 0 0 0 .8
rect 101 1 22 22
visible 1
style WINDOW_STYLE_FILLED
background "ui/assets/hud/armor.tga"
}

//armor icon
itemDef {
ownerdraw CG_TEAM_COLORIZED
rect 100 0 22 22
visible 1
style WINDOW_STYLE_FILLED
background "ui/assets/hud/armor.tga"
}

//armor icon 3D
itemDef {
rect 150 0 22 22
visible 1
ownerdraw CG_PLAYER_ARMOR_ICON
}

//simple yellow armor icon
itemDef {
rect 200 -15 22 22
visible 1
ownerdraw CG_PLAYER_ARMOR_ICON2D
}

// game type icon
itemDef {
rect 250 0 22 22
visible 1
ownerdraw CG_GAME_TYPE_ICON
}

// captured flag
itemDef {
rect 300 0 22 22
visible 1
ownerdraw CG_PLAYER_HASFLAG
}

// captured flag 2D
itemDef {
rect 350 0 22 22
visible 1
ownerdraw CG_PLAYER_HASFLAG2D
}
// player head
itemDef {
rect 400 0 22 22
visible 1
ownerdraw CG_PLAYER_HEAD
}

}


Powerups
quad-damage, regeneration, etc.
ownerdraw CG_AREA_POWERUP


Capture the Flag Powerups
scout, guard, etc.
ownerdraw CG_CTF_POWERUP


Useable Pickups
kamikaze, Invulnerability, etc.
ownerdraw CG_PLAYER_ITEM

0 comments: