From aa7a0ecd771b337400b7a7f34ff5c64f678757ea Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Wed, 21 Oct 2009 22:46:15 +0000 Subject: * Move teamoverlay out of the common_hud and into the team common huds. Prevents showing when dead (use deadspec for this) and showing in white-on-white colors * Hide teamoverlay when the scoreboard is displayed --- assets/ui/tremulous_alien_common_hud.h | 13 +++++++++++++ assets/ui/tremulous_common_hud.h | 13 ------------- assets/ui/tremulous_human_hud.menu | 13 +++++++++++++ 3 files changed, 26 insertions(+), 13 deletions(-) (limited to 'assets') diff --git a/assets/ui/tremulous_alien_common_hud.h b/assets/ui/tremulous_alien_common_hud.h index 68bc8f36..8f06a153 100644 --- a/assets/ui/tremulous_alien_common_hud.h +++ b/assets/ui/tremulous_alien_common_hud.h @@ -258,3 +258,16 @@ itemDef textStyle ITEM_TEXTSTYLE_SHADOWED ownerdraw CG_FOLLOW } + +//TEAM OVERLAY +itemDef +{ + name "teamoverlay" + rect BORDER 120 160 128 + style WINDOW_STYLE_EMPTY + visible MENU_TRUE + decoration + forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.75 + textscale 1.0 + ownerdraw CG_TEAMOVERLAY +} diff --git a/assets/ui/tremulous_common_hud.h b/assets/ui/tremulous_common_hud.h index 6208f167..4ef4dbb9 100644 --- a/assets/ui/tremulous_common_hud.h +++ b/assets/ui/tremulous_common_hud.h @@ -165,19 +165,6 @@ itemDef background "ui/assets/forwardarrow.tga" } -//TEAM OVERLAY -itemDef -{ - name "teamoverlay" - rect BORDER 120 160 128 - style WINDOW_STYLE_EMPTY - visible MENU_TRUE - decoration - forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.75 - textscale 1.0 - ownerdraw CG_TEAMOVERLAY -} - //SNAPSHOT itemDef { diff --git a/assets/ui/tremulous_human_hud.menu b/assets/ui/tremulous_human_hud.menu index e5fe27bf..707fb7b6 100644 --- a/assets/ui/tremulous_human_hud.menu +++ b/assets/ui/tremulous_human_hud.menu @@ -378,5 +378,18 @@ textStyle ITEM_TEXTSTYLE_SHADOWED ownerdraw CG_FOLLOW } + + //TEAM OVERLAY + itemDef + { + name "teamoverlay" + rect BORDER 120 160 128 + style WINDOW_STYLE_EMPTY + visible MENU_TRUE + decoration + forecolor COMMON_HUD_R COMMON_HUD_G COMMON_HUD_B 0.75 + textscale 1.0 + ownerdraw CG_TEAMOVERLAY + } } } -- cgit