Code:
menudef{
name "warmUp"
fullScreen MENU_FALSE
visible 1
ownerdrawflag CG_SHOW_IF_WARMUP
rect 5 425 150 60
itemdef{
name "infosBackground"
rect -175 -15 350 65
style 2
visible 1
backcolor 0 0 0 1
}
itemDef {
name "gametype"
rect 108 8 40 40
visible 1
ownerdraw CG_GAME_TYPE_ICON
}
itemDef {
name "localTime"
rect 5 15 50 50
ownerdraw CG_LOCALTIME
textscale 0.25
textstyle 3
style WINDOW_STYLE_FILLED
decoration
visible 1
}
itemDef {
name "warmupInfo"
rect 5 0 25 50
visible 1
textstyle 3
textscale 0.25
forecolor 1 1 1 1
text "^4Warmup ^4Info"
}
// Display Server location + flag
itemDef {
name "srvLocationRU"
rect 5 30 25 50
visible 1
textstyle 3
textscale 0.25
forecolor 1 1 1 1
text "Russia"
cvarTest sv_location
showCvar {"RU #"}
}
itemDef {
name "srvLocationDE"
rect 5 30 25 50
visible 1
textstyle 2
textscale 0.25
forecolor 1 1 1 1
text "Germany"
cvarTest sv_location
showCvar {"DE"}
}
itemDef {
name "srvLocationSE"
rect 5 30 25 50
visible 1
textstyle 2
textscale 0.25
forecolor 1 1 1 1
text "Sweden"
cvarTest sv_location
showCvar {"SE"}
}
itemDef {
name "srvLocationNL"
rect 5 30 25 50
visible 1
textstyle 2
textscale 0.25
forecolor 1 1 1 1
text "Netherlands"
cvarTest sv_location
showCvar {"NL"}
}
itemDef {
name "srvLocationOther"
rect 5 30 25 50
visible 1
textstyle 2
textscale 0.25
forecolor 1 1 1 1
text "Other"
cvarTest sv_location
hideCvar {"RU #"; "DE"; "SE"; "NL"}
}
itemDef {
name "srvFlagRU"
rect 62 16 28 20
visible 1
style 3
background "ui/assets/flags/ru.tga"
cvarTest sv_location
showCvar {"RU #";}
}
itemDef {
name "srvFlagDE"
rect 72 16 28 20
visible 1
style 3
background "ui/assets/flags/de.tga"
cvarTest sv_location
showCvar {"DE"}
}
itemDef {
name "srvFlagSE"
rect 72 16 28 20
visible 1
style 3
background "ui/assets/flags/se.tga"
cvarTest sv_location
showCvar {"SE"}
}
itemDef {
name "srvFlagNL"
rect 85 16 28 20
visible 1
style 3
background "ui/assets/flags/nl.tga"
cvarTest sv_location
showCvar {"NL"}
}
itemDef {
name "srvFlagOther"
rect 72 16 28 20
visible 1
style 3
background "ui/assets/flags/none.tga"
cvarTest sv_location
hideCvar {"RU #"; "DE"; "SE"; "NL"}
}
itemDef {
name "Location"
rect 0 44 72 20
textscale .18
forecolor 1 1 1 1
visible 1
type ITEM_TYPE_NUMERICFIELD
text "Loc:"
cvar "sv_location"
cvarTest "sv_location"
ownerdrawflag CG_SHOW_IF_WARMUP
}
}
So it works on any server (de, nl, swe), but not on ru