Added icon for skillbar ability of sword.

This commit is contained in:
Sam 2020-09-20 21:18:45 -05:00
parent 0796337a8c
commit 8ab0d5e5e0
3 changed files with 7 additions and 0 deletions

BIN
assets/voxygen/element/icons/sword_whirlwind.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -267,6 +267,7 @@ image_ids! {
fire_spell_1: "voxygen.element.icons.fire_spell_0",
snake_arrow_0: "voxygen.element.icons.snake",
heal_0: "voxygen.element.icons.heal_0",
sowrd_whirlwind: "voxygen.element.icons.sword_whirlwind",
// Buttons
button: "voxygen.element.buttons.button",

View File

@ -84,6 +84,7 @@ pub enum HotbarImage {
Item(ItemKey),
Fireball,
SnakeArrow,
SwordWhirlwind,
}
type HotbarSource<'a> = (&'a hotbar::State, &'a Inventory, &'a Loadout, &'a Energy);
@ -113,6 +114,7 @@ impl<'a> SlotKey<HotbarSource<'a>, HotbarImageSource<'a>> for HotbarSlot {
"Boost" => Some(HotbarImage::SnakeArrow),
_ => None,
},
ToolKind::Sword(_) => Some(HotbarImage::SwordWhirlwind),
_ => None,
},
_ => None,
@ -143,6 +145,7 @@ impl<'a> SlotKey<HotbarSource<'a>, HotbarImageSource<'a>> for HotbarSlot {
HotbarImage::Item(key) => item_imgs.img_id_or_not_found_img(key.clone()),
HotbarImage::SnakeArrow => imgs.snake_arrow_0,
HotbarImage::Fireball => imgs.fire_spell_1,
HotbarImage::SwordWhirlwind => imgs.sowrd_whirlwind,
}
}
}