Move comments and turn on by default

This commit is contained in:
voxal 2022-01-02 15:24:11 -08:00
parent e75f569014
commit 7d07598370
3 changed files with 2 additions and 3 deletions

View File

@ -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)
{

View File

@ -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() };

View File

@ -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,