Say, does anyone know how to colour lagometers, I want it particularly so I'll be able to create a function that puts an alerting red colour on my screen whenever ping exceeds 400 (because unlagged ceases to exist beyond that).
This is the default HUD function that's available to me, given from Meisseli's Hud for 1.1:
//LAGOMETER
itemDef
{
name "lagometer"
rect 596 25 32 20
style WINDOW_STYLE_EMPTY
visible 1
cvartest meis_infopanel
showCvar { 1 }
decoration
forecolor 0.8 0.8 1.0 1.0
textscale 0.3
textalignx 1
textaligny 0.5
ownerdraw CG_LAGOMETER
}
And What I want to do, is give it colour ranges using this function:
addColorRange <rangestart> <rangeend> <r> <g> <b> <alpha/transparency>
but it doesn't seem to work for this one if I shove it in the lagometer draw function.
The attachment below is what my hud currently looks like on an impure server*:
(Note: I'm drawing fake ping using a custom client command)
From left to right, top to bottom of the top right of the screen:
Speed [Fake Graph] FPS
Inter/Extrapolation Ping
Clock