mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix
This commit is contained in:
committed by
Forest Anderson
parent
3ed646b512
commit
a204072e78
@ -254,15 +254,20 @@ impl<'a> Widget for Overhead<'a> {
|
|||||||
.bottom_right_with_margin_on(state.ids.speech_bubble_text, -20.0)
|
.bottom_right_with_margin_on(state.ids.speech_bubble_text, -20.0)
|
||||||
.parent(id)
|
.parent(id)
|
||||||
.set(state.ids.speech_bubble_bottom_right, ui);
|
.set(state.ids.speech_bubble_bottom_right, ui);
|
||||||
Image::new(if dark_mode {
|
let tail = Image::new(if dark_mode {
|
||||||
self.imgs.dark_bubble_tail
|
self.imgs.dark_bubble_tail
|
||||||
} else {
|
} else {
|
||||||
self.imgs.speech_bubble_tail
|
self.imgs.speech_bubble_tail
|
||||||
})
|
})
|
||||||
.w_h(22.0, 13.0)
|
|
||||||
.mid_bottom_with_margin_on(state.ids.speech_bubble_text, -32.0)
|
|
||||||
.parent(id)
|
.parent(id)
|
||||||
.set(state.ids.speech_bubble_tail, ui);
|
.mid_bottom_with_margin_on(state.ids.speech_bubble_text, -32.0);
|
||||||
|
|
||||||
|
if dark_mode {
|
||||||
|
tail.w_h(22.0, 13.0).set(state.ids.speech_bubble_tail, ui)
|
||||||
|
} else {
|
||||||
|
tail.w_h(22.0, 28.0).set(state.ids.speech_bubble_tail, ui)
|
||||||
|
};
|
||||||
|
|
||||||
let mut text_shadow = Text::new(&bubble_contents)
|
let mut text_shadow = Text::new(&bubble_contents)
|
||||||
.color(shadow_color)
|
.color(shadow_color)
|
||||||
.font_id(self.fonts.cyri.conrod_id)
|
.font_id(self.fonts.cyri.conrod_id)
|
||||||
|
Reference in New Issue
Block a user