mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Move item amount text to bottom right
This commit is contained in:
parent
cae5313127
commit
c6b5570637
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user