Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-30 19:23:41 +0200
committerStijn Buys <ingar@osirion.org>2016-07-30 19:23:41 +0200
commitbd866bbe91241cb1e206ac06467269959757763d (patch)
treee532f4a948e2cb3c48087be3f4df2871e31a74ed
parent0840438435f3d229b1164e6f5677c3b15a0c5167 (diff)
Tweaked HUD off-screen target colors.
-rw-r--r--src/client/hud.cc15
1 files 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");