This commit is contained in:
Monty Marz 2020-07-12 13:10:26 +02:00
parent d856c20225
commit 9cffb61429
2 changed files with 8 additions and 4 deletions

View File

@ -111,6 +111,10 @@ const WORLD_COLOR: Color = Color::Rgba(0.95, 1.0, 0.95, 1.0);
/// Color for collected loot messages
const LOOT_COLOR: Color = Color::Rgba(0.69, 0.57, 1.0, 1.0);
//Nametags
const GROUP_MEMBER: Color = Color::Rgba(0.47, 0.84, 1.0, 1.0);
const DEFAULT_NPC: Color = Color::Rgba(1.0, 1.0, 1.0, 1.0);
// UI Color-Theme
const UI_MAIN: Color = Color::Rgba(0.61, 0.70, 0.70, 1.0); // Greenish Blue
//const UI_MAIN: Color = Color::Rgba(0.1, 0.1, 0.1, 0.97); // Dark

View File

@ -1,6 +1,6 @@
use super::{
img_ids::Imgs, FACTION_COLOR, GROUP_COLOR, HP_COLOR, LOW_HP_COLOR, MANA_COLOR, REGION_COLOR,
SAY_COLOR, TELL_COLOR, TEXT_BG, TEXT_COLOR,
img_ids::Imgs, DEFAULT_NPC, FACTION_COLOR, GROUP_COLOR, GROUP_MEMBER, HP_COLOR, LOW_HP_COLOR,
MANA_COLOR, REGION_COLOR, SAY_COLOR, TELL_COLOR, TEXT_BG, TEXT_COLOR,
};
use crate::{
i18n::VoxygenLocalization,
@ -149,9 +149,9 @@ impl<'a> Widget for Overhead<'a> {
.font_id(self.fonts.cyri.conrod_id)
.font_size(30)
.color(if self.in_group {
Color::Rgba(1.0, 0.5, 0.6, 1.0)
GROUP_MEMBER
} else {
Color::Rgba(0.61, 0.61, 0.89, 1.0)
DEFAULT_NPC
})
.x_y(0.0, MANA_BAR_Y + 50.0)
.set(state.ids.name, ui);