mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
made bow available in char selection
This commit is contained in:
parent
b5180320fb
commit
39e5530d45
BIN
assets/voxygen/voxel/weapon/bow/simple-bow.vox
(Stored with Git LFS)
BIN
assets/voxygen/voxel/weapon/bow/simple-bow.vox
(Stored with Git LFS)
Binary file not shown.
@ -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)
|
||||
|
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user