From 58903527dbf5fc7d8035ac2349174fe5f58ba2ac Mon Sep 17 00:00:00 2001 From: enneract Date: Sat, 6 Dec 2014 23:34:48 +0100 Subject: Add total BP counters to HUD. --- assets/ui/assets/bp-bg.tga | Bin 0 -> 10989 bytes assets/ui/menudef.h | 2 + assets/ui/tremulous_common_hud.h | 92 +++++++++++++++++++++++++++++---------- 3 files changed, 70 insertions(+), 24 deletions(-) create mode 100644 assets/ui/assets/bp-bg.tga (limited to 'assets') diff --git a/assets/ui/assets/bp-bg.tga b/assets/ui/assets/bp-bg.tga new file mode 100644 index 0000000..04b71bf Binary files /dev/null and b/assets/ui/assets/bp-bg.tga differ diff --git a/assets/ui/menudef.h b/assets/ui/menudef.h index 3e7796f..30ce6a2 100644 --- a/assets/ui/menudef.h +++ b/assets/ui/menudef.h @@ -196,6 +196,8 @@ enum CG_SPEEDOMETER, CG_PLAYER_CROSSHAIRNAMES, CG_STAGE_REPORT_TEXT, + CG_ALIEN_BUILD_POOL, + CG_HUMAN_BUILD_POOL, CG_ALIENS_SCORE_LABEL, CG_HUMANS_SCORE_LABEL, CG_DEMO_PLAYBACK, diff --git a/assets/ui/tremulous_common_hud.h b/assets/ui/tremulous_common_hud.h index 57427b1..f3e8218 100644 --- a/assets/ui/tremulous_common_hud.h +++ b/assets/ui/tremulous_common_hud.h @@ -205,28 +205,72 @@ itemDef ownerdraw CG_FOLLOW } - itemDef - { - name "stage_add" - style WINDOW_STYLE_SHADER - rect 253 -1 140 35 - visible 1 - background "scripts/stage_add" - decoration - } - - itemDef - { - name "stagereport" - rect 200 2 240 25 - foreColor 1 1 1 1 - aspectBias ALIGN_CENTER - textalign ALIGN_CENTER - textvalign VALIGN_TOP - visible 1 - decoration - textScale .22 - textStyle ITEM_TEXTSTYLE_NORMAL - ownerdraw CG_STAGE_REPORT_TEXT - } +itemDef +{ + name "stage_add" + style WINDOW_STYLE_SHADER + rect 343 -1 160 35 + aspectBias ALIGN_CENTER + visible 1 + background "scripts/stage_add" + decoration +} + +itemDef +{ + name "stagereport" + rect 300 2 240 25 + foreColor 1 1 1 1 + aspectBias ALIGN_CENTER + textalign ALIGN_CENTER + textvalign VALIGN_TOP + visible 1 + decoration + textScale .22 + textStyle ITEM_TEXTSTYLE_NORMAL + ownerdraw CG_STAGE_REPORT_TEXT +} + +itemDef +{ + name "bpbackground" + style WINDOW_STYLE_SHADER + rect 140 -5 160 40 + aspectBias ALIGN_CENTER + visible 1 + foreColor 1 1 1 0.5 + background "ui/assets/bp-bg.tga" + decoration +} + +itemDef +{ + name "bpalien" + rect 184 8.5 20 25 + foreColor 1 0 0 1 + aspectBias ALIGN_CENTER + textalign ALIGN_RIGHT + textvalign VALIGN_TOP + visible 1 + decoration + textScale .4 + textStyle ITEM_TEXTSTYLE_NORMAL + ownerdraw CG_ALIEN_BUILD_POOL +} + + +itemDef +{ + name "bphuman" + rect 238 8.5 20 25 + foreColor 0 0.8 1 1 + aspectBias ALIGN_CENTER + textalign ALIGN_LEFT + textvalign VALIGN_TOP + visible 1 + decoration + textScale .4 + textStyle ITEM_TEXTSTYLE_NORMAL + ownerdraw CG_HUMAN_BUILD_POOL +} -- cgit