summaryrefslogtreecommitdiff
path: root/assets/ui/tremulous_common_hud.h
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-14 22:33:56 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:50 +0000
commit064c6646b3d1f270422dba2caf09b6bc75a1b27d (patch)
tree5d45aa4b734afbe6eb4e8c5752e69ea765b6055a /assets/ui/tremulous_common_hud.h
parent98abaa24e6ba46aaa44a0d458a0f4f2208ace21d (diff)
* New ownerdraw for speedometer
- Controlled by cg_drawSpeed, which is a bitfield Bit 1 controls the text draw, bit 2 controls the graph, and bit 4 ignores vertical speed in the calculation.
Diffstat (limited to 'assets/ui/tremulous_common_hud.h')
-rw-r--r--assets/ui/tremulous_common_hud.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/assets/ui/tremulous_common_hud.h b/assets/ui/tremulous_common_hud.h
index a5f53356..37610ead 100644
--- a/assets/ui/tremulous_common_hud.h
+++ b/assets/ui/tremulous_common_hud.h
@@ -90,6 +90,22 @@ itemDef
ownerdraw CG_LAGOMETER
}
+//SPEEDOMETER
+itemDef
+{
+ name "speedometer"
+ rect (320-(STAT_W/2)) 350 STAT_W STAT_H
+ aspectBias ALIGN_CENTER
+ type ITEM_TYPE_OWNERDRAW
+ ownerdraw CG_SPEEDOMETER
+ style WINDOW_STYLE_EMPTY
+ visible MENU_TRUE
+ decoration
+ backColor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.2
+ foreColor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.8
+ textscale 0.3
+}
+
//CLOCK
itemDef
{