Move item amount text to bottom right

This commit is contained in:
Imbris 2020-04-11 21:51:36 -04:00 committed by Pfauenauge90
parent cae5313127
commit c6b5570637
2 changed files with 2 additions and 2 deletions

View File

@ -811,7 +811,7 @@ impl<'a> Widget for Skillbar<'a> {
},
selected_content_scale: 1.067,
amount_font: self.fonts.cyri.conrod_id,
amount_margins: Vec2::new(-4.0, 0.0),
amount_margins: Vec2::new(3.0, 2.0),
amount_font_size: self.fonts.cyri.scale(12),
amount_text_color: TEXT_COLOR,
content_source: &content_source,

View File

@ -537,7 +537,7 @@ where
Text::new(&amount)
.font_id(amount_font)
.font_size(amount_font_size)
.top_right_with_margins_on(
.bottom_right_with_margins_on(
state.ids.content,
amount_margins.x as f64,
amount_margins.y as f64,