From bd866bbe91241cb1e206ac06467269959757763d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 30 Jul 2016 19:23:41 +0200 Subject: Tweaked HUD off-screen target colors. --- src/client/hud.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/client/hud.cc b/src/client/hud.cc index de36a17..425bd80 100644 --- a/src/client/hud.cc +++ b/src/client/hud.cc @@ -145,9 +145,12 @@ void HUD::draw_offscreen_target(core::Entity *entity, bool is_active_target) } else if (reputation <= core::range::reputation_hostile) { bitmap_color.assign(1.0f, 0.0f, 0.0f); // red } else { - bitmap_color.assign(1.0f, 1.0f, 1.0f); // white + if (controlable->owner()) { + bitmap_color.assign(1.0f); // white + } else { + bitmap_color.assign(0.75f); // gray + } } - } else if (entity->has_flag(core::Entity::Dockable)) { bitmap_material.assign("bitmaps/hud/offscreen_dockable"); @@ -157,7 +160,7 @@ void HUD::draw_offscreen_target(core::Entity *entity, bool is_active_target) } else if (reputation <= core::range::reputation_hostile) { bitmap_color.assign(1.0f, 0.0f, 0.0f); // red } else { - bitmap_color.assign(1.0f, 1.0f, 1.0f); // white + bitmap_color.assign(0.75f); // gray } } else { @@ -253,14 +256,16 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target) if (controlable) { if (controlable->owner()) { bitmap_material.assign("bitmaps/hud/target_controlable"); + bitmap_color.assign(1.0f); // white } else { bitmap_material.assign("bitmaps/hud/target_default"); + bitmap_color.assign(0.75f); // gray } - bitmap_color.assign(1.0f, 1.0f, 1.0f); // white + } else if (entity->has_flag(core::Entity::Dockable)) { bitmap_material.assign("bitmaps/hud/target_dockable"); - bitmap_color.assign(1.0f, 1.0f, 1.0f); // white + bitmap_color.assign(0.75f); // gray } else { bitmap_material.assign("bitmaps/hud/target_default"); -- cgit v1.2.3