made bow available in char selection

This commit is contained in:
Pfauenauge90 2019-09-17 09:18:59 +02:00 committed by timokoesters
parent b5180320fb
commit 39e5530d45
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097
3 changed files with 10 additions and 10 deletions

Binary file not shown.

View File

@ -880,18 +880,18 @@ impl CharSelectionUi {
self.imgs.icon_border
})
.middle_of(self.ids.bow)
//.hover_image(self.imgs.icon_border_mo)
//.press_image(self.imgs.icon_border_press)
//.with_tooltip(tooltip_manager, "Bow", "", &tooltip_human)
.hover_image(self.imgs.icon_border_mo)
.press_image(self.imgs.icon_border_press)
.with_tooltip(tooltip_manager, "Bow", "", &tooltip_human)
.set(self.ids.bow_button, ui_widgets)
.was_clicked()
{
//self.character_tool = Some(Tool::Bow);
self.character_tool = Some(Tool::Bow);
}
// REMOVE THIS AFTER IMPLEMENTATION
Rectangle::fill_with([67.0, 67.0], color::rgba(0.0, 0.0, 0.0, 0.8))
.middle_of(self.ids.bow)
.set(self.ids.bow_grey, ui_widgets);
/*Rectangle::fill_with([67.0, 67.0], color::rgba(0.0, 0.0, 0.0, 0.8))
.middle_of(self.ids.bow)
.set(self.ids.bow_grey, ui_widgets);*/
// Staff
Image::new(self.imgs.staff)
.w_h(70.0, 70.0)

View File

@ -357,7 +357,7 @@ pub fn mesh_main(item: Option<&Item>) -> Mesh<FigurePipeline> {
Tool::Hammer => ("weapon.hammer.rusty_2h", Vec3::new(-2.5, -5.5, -4.0)),
Tool::Daggers => ("weapon.hammer.rusty_2h", Vec3::new(-2.5, -5.5, -4.0)),
Tool::SwordShield => ("weapon.axe.rusty_2h", Vec3::new(-2.5, -6.5, -2.0)),
Tool::Bow => ("weapon.bow.simple-bow", Vec3::new(0.0, -5.5, 2.0)),
Tool::Bow => ("weapon.bow.simple-bow", Vec3::new(0.0, -2.5, 4.0)),
Tool::Staff => ("weapon.axe.rusty_2h", Vec3::new(-2.5, -6.5, -2.0)),
},
Item::Debug(_) => ("weapon.debug_wand", Vec3::new(-1.5, -9.5, -4.0)),