tweak phonebook rendering
This commit is contained in:
parent
da956130c5
commit
6a3fa7c64c
|
@ -28,7 +28,7 @@ pub const CHATS: &[&str] = &[
|
||||||
|
|
||||||
pub const CONTACTS: &[&str] = &["icarus", "travel", "luna", "nox"];
|
pub const CONTACTS: &[&str] = &["icarus", "travel", "luna", "nox"];
|
||||||
pub const CONTACTS_PRETTY: &[&str] = &["Icarus", "FASTravel", "Luna", "Nox"];
|
pub const CONTACTS_PRETTY: &[&str] = &["Icarus", "FASTravel", "Luna", "Nox"];
|
||||||
pub const CONTACTS_UNKNOWN: &str = "[unknown]";
|
pub const CONTACTS_UNKNOWN: &str = "[Unknown]";
|
||||||
|
|
||||||
pub const TEXT_CONTINUE: &str = "Continue...";
|
pub const TEXT_CONTINUE: &str = "Continue...";
|
||||||
|
|
||||||
|
|
|
@ -508,9 +508,9 @@ pub fn update_menu(
|
||||||
let text_index = i + achievement_bools.len() + 2;
|
let text_index = i + achievement_bools.len() + 2;
|
||||||
let registered = prefs.contacts.contains(&contact.to_string());
|
let registered = prefs.contacts.contains(&contact.to_string());
|
||||||
text.sections[text_index].style.color = if registered {
|
text.sections[text_index].style.color = if registered {
|
||||||
settings.hud_color_achievement_accomplished
|
settings.hud_color_phonebook_unlocked
|
||||||
} else {
|
} else {
|
||||||
settings.hud_color_achievement
|
settings.hud_color_phonebook_locked
|
||||||
};
|
};
|
||||||
text.sections[text_index].value = if registered {
|
text.sections[text_index].value = if registered {
|
||||||
chat::CONTACTS_PRETTY[i].to_string() + "\n"
|
chat::CONTACTS_PRETTY[i].to_string() + "\n"
|
||||||
|
|
|
@ -80,6 +80,8 @@ pub struct Settings {
|
||||||
pub hud_color_achievement: Color,
|
pub hud_color_achievement: Color,
|
||||||
pub hud_color_achievement_header: Color,
|
pub hud_color_achievement_header: Color,
|
||||||
pub hud_color_achievement_accomplished: Color,
|
pub hud_color_achievement_accomplished: Color,
|
||||||
|
pub hud_color_phonebook_locked: Color,
|
||||||
|
pub hud_color_phonebook_unlocked: Color,
|
||||||
pub hud_color_death: Color,
|
pub hud_color_death: Color,
|
||||||
pub hud_color_death_achievements: Color,
|
pub hud_color_death_achievements: Color,
|
||||||
pub hud_color_keybindings: Color,
|
pub hud_color_keybindings: Color,
|
||||||
|
@ -222,6 +224,8 @@ impl Default for Settings {
|
||||||
hud_color_achievement: Srgba::hex(COLOR_DIM).unwrap().into(),
|
hud_color_achievement: Srgba::hex(COLOR_DIM).unwrap().into(),
|
||||||
hud_color_achievement_accomplished: Srgba::hex(COLOR_SUCCESS).unwrap().into(),
|
hud_color_achievement_accomplished: Srgba::hex(COLOR_SUCCESS).unwrap().into(),
|
||||||
hud_color_achievement_header: Srgba::hex(COLOR_PRIMARY).unwrap().into(),
|
hud_color_achievement_header: Srgba::hex(COLOR_PRIMARY).unwrap().into(),
|
||||||
|
hud_color_phonebook_locked: Srgba::hex(COLOR_DIM).unwrap().into(),
|
||||||
|
hud_color_phonebook_unlocked: Srgba::hex(COLOR_SECONDARY).unwrap().into(),
|
||||||
hud_color_death: Srgba::hex(COLOR_SECONDARY).unwrap().into(),
|
hud_color_death: Srgba::hex(COLOR_SECONDARY).unwrap().into(),
|
||||||
hud_color_death_achievements: Srgba::hex(COLOR_SECONDARY).unwrap().into(),
|
hud_color_death_achievements: Srgba::hex(COLOR_SECONDARY).unwrap().into(),
|
||||||
hud_color_keybindings: Srgba::hex(COLOR_DIM).unwrap().into(),
|
hud_color_keybindings: Srgba::hex(COLOR_DIM).unwrap().into(),
|
||||||
|
|
Loading…
Reference in a new issue