tree icon UI works and hover icon

This commit is contained in:
Monty 2021-03-06 15:30:28 +01:00 committed by Joshua Barretto
parent a54a3da102
commit b6ac4e46fb
5 changed files with 10 additions and 2 deletions

BIN
assets/voxygen/element/map/tree.png (Stored with Git LFS)

Binary file not shown.

BIN
assets/voxygen/element/map/tree_hover.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -365,6 +365,8 @@ image_ids! {
mmap_site_cave_hover: "voxygen.element.map.cave_hover",
mmap_site_cave: "voxygen.element.map.cave",
mmap_site_excl: "voxygen.element.map.excl",
mmap_site_tree: "voxygen.element.map.tree",
mmap_site_tree_hover: "voxygen.element.map.tree_hover",
// Window Parts
window_3: "voxygen.element.frames.window_3",

View File

@ -528,6 +528,7 @@ impl<'a> Widget for Map<'a> {
SiteKind::Dungeon { .. } => self.imgs.mmap_site_dungeon,
SiteKind::Castle => self.imgs.mmap_site_castle,
SiteKind::Cave => self.imgs.mmap_site_cave,
SiteKind::Tree => self.imgs.mmap_site_tree,
_ => self.imgs.mmap_site_excl,
})
.x_y_position_relative_to(
@ -541,6 +542,7 @@ impl<'a> Widget for Map<'a> {
SiteKind::Dungeon { .. } => self.imgs.mmap_site_dungeon_hover,
SiteKind::Castle => self.imgs.mmap_site_castle_hover,
SiteKind::Cave => self.imgs.mmap_site_cave_hover,
SiteKind::Tree => self.imgs.mmap_site_tree_hover,
_ => self.imgs.mmap_site_excl,
})
.image_color(UI_HIGHLIGHT_0)

View File

@ -303,6 +303,7 @@ impl<'a> Widget for MiniMap<'a> {
SiteKind::Dungeon { .. } => self.imgs.mmap_site_dungeon_bg,
SiteKind::Castle => self.imgs.mmap_site_castle_bg,
SiteKind::Cave => self.imgs.mmap_site_cave_bg,
SiteKind::Tree => self.imgs.mmap_site_tree,
_ => self.imgs.mmap_site_excl,
})
.x_y_position_relative_to(