display pronouns of targets

This commit is contained in:
yuni 2024-04-20 03:07:28 +02:00
parent e6ca1c5b50
commit 7e56f1f07b
2 changed files with 13 additions and 2 deletions

View file

@ -339,6 +339,7 @@ actor -3300 10 0 pizzeria
rotationy -0.7
scale 3
chatid SubduedClippy
pronoun it
actor -45 -4 -4 suit
relativeto pizzeria
@ -374,11 +375,12 @@ actor 60 -15 -40 suit
actor -300 0 40 suit
relativeto player
id Drifter
name "Drifter"
name "梓涵"
chatid Drifter
oxygen 0.08
scale 2
collider handcrafted
pronoun she
actor 100 -18000 2000 "orb_busstop"
relativeto player
@ -399,6 +401,7 @@ actor 100 -18000 2000 "orb_busstop"
rotationy -0.5
scale 3
chatid ClippyTransSerenity
pronoun it
actor 40 10 40 "orb_busstop"
name "Light Orb"
relativeto busstopclippy
@ -424,6 +427,7 @@ actor 100 -18000 2000 "orb_busstop"
scale 2
collider capsule 1 0.5
chatid NPCinCryoStasis
pronoun he
actor -184971e3 149410e3 -134273e3 "orb_busstop"
relativeto jupiter
@ -444,6 +448,7 @@ actor -184971e3 149410e3 -134273e3 "orb_busstop"
rotationy -0.5
scale 3
chatid ClippyTransOscillation
pronoun it
actor 40 10 40 "orb_busstop"
name "Light Orb"
relativeto busstopclippy2
@ -480,6 +485,7 @@ actor 27643e3 -44e3 -124434e3 "orb_busstop"
rotationy -0.5
scale 3
chatid ClippyTransMetis
pronoun it
actor 40 10 40 "orb_busstop"
name "Light Orb"
relativeto busstopclippy3

View file

@ -491,7 +491,12 @@ fn update_hud(
};
let speed_readable = nature::readable_distance(speed);
let target_name = clickable.name.clone().unwrap_or("Unnamed".to_string());
text.sections[15].value = format!("\n\nTarget: {target_name}\nDistance: {distance}\nΔv {speed_readable}/s");
let pronoun = if let Some(pronoun) = &clickable.pronoun {
format!("Pronoun: {pronoun}\n")
} else {
"".to_string()
};
text.sections[15].value = format!("\n\nTarget: {target_name}\n{pronoun}Distance: {distance}\nΔv {speed_readable}/s");
}
else {
text.sections[15].value = "".to_string();