Pixel art for axe and flying rod, shadow for zone names and death message

This commit is contained in:
Monty Marz 2019-09-05 17:28:33 +00:00 committed by Joshua Barretto
parent 4577511c39
commit 943495c0c5
9 changed files with 50 additions and 9 deletions

BIN
assets/voxygen/element/icons/2haxe_m1.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/element/icons/2haxe_m2.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/element/icons/debug_wand_m1.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/element/icons/debug_wand_m2.vox (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

View File

@ -80,7 +80,10 @@ image_ids! {
twohsword_m2: "voxygen.element.icons.2hsword_m2",
twohhammer_m1: "voxygen.element.icons.2hhammer_m1",
twohhammer_m2: "voxygen.element.icons.2hhammer_m2",
twohaxe_m1: "voxygen.element.icons.2haxe_m1",
twohaxe_m2: "voxygen.element.icons.2haxe_m2",
flyingrod_m1: "voxygen.element.icons.debug_wand_m1",
flyingrod_m2: "voxygen.element.icons.debug_wand_m2",
////////////////////////////////////////////////////////////////////////
<VoxelMs9Graphic>

View File

@ -15,6 +15,7 @@ widget_ids! {
mmap_frame_bg,
mmap_location,
mmap_button,
zone_display_bg,
zone_display,
}
}
@ -149,6 +150,11 @@ impl<'a> Widget for MiniMap<'a> {
Text::new(state.last_region_name.as_ref().unwrap_or(&"".to_owned()))
.mid_top_with_margin_on(ui.window, 200.0)
.font_size(80)
.color(Color::Rgba(0.0, 0.0, 0.0, fade))
.set(state.ids.zone_display_bg, ui);
Text::new(state.last_region_name.as_ref().unwrap_or(&"".to_owned()))
.top_left_with_margins_on(state.ids.zone_display_bg, -2.5, -2.5)
.font_size(80)
.color(Color::Rgba(1.0, 1.0, 1.0, fade))
.set(state.ids.zone_display, ui);
}

View File

@ -15,6 +15,8 @@ widget_ids! {
struct Ids {
death_message_1,
death_message_2,
death_message_1_bg,
death_message_2_bg,
level_text,
next_level_text,
xp_bar_mid,
@ -215,13 +217,27 @@ impl<'a> Widget for Skillbar<'a> {
Text::new("You Died")
.mid_top_with_margin_on(ui.window, 60.0)
.font_size(40)
.color(Color::Rgba(0.0, 0.0, 0.0, 1.0))
.set(state.ids.death_message_1_bg, ui);
Text::new(&format!(
"Press {:?} to respawn.",
self.global_state.settings.controls.respawn
))
.mid_bottom_with_margin_on(state.ids.death_message_1, -30.0)
.font_size(15)
.color(Color::Rgba(0.0, 0.0, 0.0, 1.0))
.set(state.ids.death_message_2_bg, ui);
Text::new("You Died")
.top_left_with_margins_on(state.ids.death_message_1_bg, -2.0, -2.0)
.font_size(40)
.color(CRITICAL_HP_COLOR)
.set(state.ids.death_message_1, ui);
Text::new(&format!(
"Press {:?} to respawn.",
self.global_state.settings.controls.respawn
))
.mid_bottom_with_margin_on(state.ids.death_message_1, -30.0)
.top_left_with_margins_on(state.ids.death_message_2_bg, -1.5, -1.5)
.font_size(15)
.color(CRITICAL_HP_COLOR)
.set(state.ids.death_message_2, ui);
@ -354,9 +370,11 @@ impl<'a> Widget for Skillbar<'a> {
Button::image(match self.stats.equipment.main {
Some(Item::Tool { kind, .. }) => match kind {
Tool::Sword => self.imgs.twohsword_m1,
_ => self.imgs.twohhammer_m1,
Tool::Hammer => self.imgs.twohhammer_m1,
Tool::Axe => self.imgs.twohaxe_m1,
_ => self.imgs.flyingrod_m1,
},
_ => self.imgs.twohhammer_m1,
_ => self.imgs.flyingrod_m1,
}) // Insert Icon here
.w_h(38.0 * scale, 38.0 * scale)
.middle_of(state.ids.m1_slot_bg)
@ -374,9 +392,11 @@ impl<'a> Widget for Skillbar<'a> {
Button::image(match self.stats.equipment.main {
Some(Item::Tool { kind, .. }) => match kind {
Tool::Sword => self.imgs.twohsword_m2,
_ => self.imgs.twohhammer_m2,
Tool::Hammer => self.imgs.twohhammer_m2,
Tool::Axe => self.imgs.twohaxe_m2,
_ => self.imgs.flyingrod_m2,
},
_ => self.imgs.twohhammer_m2,
_ => self.imgs.flyingrod_m2,
}) // Insert Icon here
.w_h(38.0 * scale, 38.0 * scale)
.middle_of(state.ids.m2_slot_bg)

View File

@ -499,7 +499,7 @@ impl Terrain {
(
(BlockKind::ShortGrass, 3),
make_model(
"voxygen.voxel.sprite.grass.grass_short_3",
"voxygen.voxel.sprite.grass.grass_short_4",
Vec3::new(-6.0, -6.0, 0.0),
),
),