Eliminate Elements



To eliminate elements simply erase the information from the .menu file.
I recommend changing the lines to comments so that you can have them back later.

You can do that by using typing "/*" and "*/"

/*
anything between these is a comment
this means that these lines will be ignored by the program
*/



If you want to eliminate single lines just type "//" at the beginning of the comment.

// this is a comment line





This way you can get rid of any element of your HUD.
You could have no HUD at all if you wanted.
(It is possible to have an empty .menu file)


Let's imagine that you don't want to see the health bar.
You have to locate and turn the following lines into a comment.


//*****PLAYER HEALTH*****//
/*
menuDef {
name "HealthFrame"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 130 435 142 32//130 421 142 32//

itemDef {
name "healthshadow"
rect 1 8 142 33
visible 1
decoration
backcolor 0 0 0 0.4
style 1
background "ui/assets/hud/shadowl.tga"
}

//BARS SCALE TO HEALTH
itemDef {
name "healthFill200"
rect 85 0 64 32
visible 1
decoration
// backcolor 0.0 0.0 0.0 0.4
ownerdraw CG_PLAYER_HEALTH_BAR_200
style 1
background "ui/assets/hud/h200.tga"
}

itemDef {
name "healthFill100"
rect 0 27 128 16
visible 1
decoration
//backcolor 0.0 0.0 0.0 0.4
ownerdraw CG_PLAYER_HEALTH_BAR_100
style 1
background "ui/assets/hud/h100.tga"
}

//LINE OVERLAYS
itemDef {
name "healthLine200"
rect 85 0 64 32
visible 1
decoration
backcolor 0.0 0.0 0.0 1.0
ownerdraw CG_TEAM_COLORIZED
style 1
background "ui/assets/hud/h200line.tga"
}

itemDef {
name "healthLine100"
rect 0 27 128 16
visible 1
decoration
backcolor 0.0 0.0 0.0 1.0
ownerdraw CG_TEAM_COLORIZED
style 1
background "ui/assets/hud/h100line.tga"
}
//highlight
itemDef {
name "healthLine200hi"
rect 85 0 64 32
visible 1
decoration
backcolor 1 1 1 0.5
style 1
background "ui/assets/hud/h200line.tga"
}

itemDef {
name "healthLine100hi"
rect 0 27 128 16
visible 1
decoration
backcolor 1 1 1 0.5
style 1
background "ui/assets/hud/h100line.tga"
}
}

*/

0 comments: