mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Move comments and turn on by default
This commit is contained in:
parent
e75f569014
commit
7d07598370
@ -1867,6 +1867,7 @@ impl Hud {
|
||||
0.0
|
||||
},
|
||||
});
|
||||
// Only render bubble if nearby or if its me and setting is on
|
||||
let bubble = if (dist_sqr < SPEECH_BUBBLE_RANGE.powi(2) && !is_me)
|
||||
|| (is_me && global_state.settings.interface.speech_bubble_self)
|
||||
{
|
||||
|
@ -179,7 +179,6 @@ impl<'a> Widget for Overhead<'a> {
|
||||
const BARSIZE: f64 = 2.0; // Scaling
|
||||
const MANA_BAR_HEIGHT: f64 = BARSIZE * 1.5;
|
||||
const MANA_BAR_Y: f64 = MANA_BAR_HEIGHT / 2.0;
|
||||
// Only render info if not me
|
||||
if let Some(Info {
|
||||
name,
|
||||
health,
|
||||
@ -451,7 +450,6 @@ impl<'a> Widget for Overhead<'a> {
|
||||
}
|
||||
}
|
||||
// Speech bubble
|
||||
// Only render if setting or other players
|
||||
if let Some(bubble) = self.bubble {
|
||||
let dark_mode = self.settings.speech_bubble_dark_mode;
|
||||
let localizer = |s: &str, i| -> String { self.i18n.get_variation(s, i).to_string() };
|
||||
|
@ -55,7 +55,7 @@ impl Default for InterfaceSettings {
|
||||
sct: true,
|
||||
sct_player_batch: false,
|
||||
sct_damage_batch: false,
|
||||
speech_bubble_self: false,
|
||||
speech_bubble_self: true,
|
||||
speech_bubble_dark_mode: false,
|
||||
speech_bubble_icon: true,
|
||||
crosshair_opacity: 0.6,
|
||||
|
Loading…
Reference in New Issue
Block a user