mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Added icon for skillbar ability of sword.
This commit is contained in:
parent
0796337a8c
commit
8ab0d5e5e0
BIN
assets/voxygen/element/icons/sword_whirlwind.png
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/icons/sword_whirlwind.png
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -267,6 +267,7 @@ image_ids! {
|
|||||||
fire_spell_1: "voxygen.element.icons.fire_spell_0",
|
fire_spell_1: "voxygen.element.icons.fire_spell_0",
|
||||||
snake_arrow_0: "voxygen.element.icons.snake",
|
snake_arrow_0: "voxygen.element.icons.snake",
|
||||||
heal_0: "voxygen.element.icons.heal_0",
|
heal_0: "voxygen.element.icons.heal_0",
|
||||||
|
sowrd_whirlwind: "voxygen.element.icons.sword_whirlwind",
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
button: "voxygen.element.buttons.button",
|
button: "voxygen.element.buttons.button",
|
||||||
|
@ -84,6 +84,7 @@ pub enum HotbarImage {
|
|||||||
Item(ItemKey),
|
Item(ItemKey),
|
||||||
Fireball,
|
Fireball,
|
||||||
SnakeArrow,
|
SnakeArrow,
|
||||||
|
SwordWhirlwind,
|
||||||
}
|
}
|
||||||
|
|
||||||
type HotbarSource<'a> = (&'a hotbar::State, &'a Inventory, &'a Loadout, &'a Energy);
|
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),
|
"Boost" => Some(HotbarImage::SnakeArrow),
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
|
ToolKind::Sword(_) => Some(HotbarImage::SwordWhirlwind),
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
_ => 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::Item(key) => item_imgs.img_id_or_not_found_img(key.clone()),
|
||||||
HotbarImage::SnakeArrow => imgs.snake_arrow_0,
|
HotbarImage::SnakeArrow => imgs.snake_arrow_0,
|
||||||
HotbarImage::Fireball => imgs.fire_spell_1,
|
HotbarImage::Fireball => imgs.fire_spell_1,
|
||||||
|
HotbarImage::SwordWhirlwind => imgs.sowrd_whirlwind,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user