mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
crosshair correction
This commit is contained in:
parent
de1cf1371c
commit
3be2951029
BIN
assets/voxygen/element/misc_bg/crosshair_inner.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/misc_bg/crosshair_inner.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
assets/voxygen/element/misc_bg/crosshair_outer.vox
(Stored with Git LFS)
Normal file
BIN
assets/voxygen/element/misc_bg/crosshair_outer.vox
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -55,10 +55,14 @@ image_ids! {
|
||||
|
||||
// Crosshair
|
||||
crosshair: "voxygen/element/misc_bg/crosshair.vox",
|
||||
//crosshair_outer: "voxygen/element/misc_bg/crosshair_outer.vox",
|
||||
crosshair_inner: "voxygen/element/misc_bg/crosshair_inner.vox",
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
<VoxelMs9Graphic>
|
||||
|
||||
crosshair_outer: "voxygen/element/misc_bg/crosshair_outer.vox",
|
||||
|
||||
// Buttons
|
||||
mmap_closed: "voxygen/element/buttons/button_mmap_closed.vox",
|
||||
mmap_closed_hover: "voxygen/element/buttons/button_mmap_closed_hover.vox",
|
||||
|
@ -50,7 +50,8 @@ const MANA_COLOR: Color = Color::Rgba(0.42, 0.41, 0.66, 1.0);
|
||||
widget_ids! {
|
||||
struct Ids {
|
||||
// Crosshair
|
||||
crosshair,
|
||||
crosshair_inner,
|
||||
crosshair_outer,
|
||||
|
||||
// Character Names
|
||||
name_tags[],
|
||||
@ -339,11 +340,16 @@ impl Hud {
|
||||
let mut health_back_id_walker = self.ids.health_bar_backs.walk();
|
||||
|
||||
// Crosshair
|
||||
Image::new(self.imgs.crosshair)
|
||||
.w_h(21.0 * 2.0, 21.0 * 2.0)
|
||||
Image::new(self.imgs.crosshair_outer)
|
||||
.w_h(21.0 * 1.5, 21.0 * 1.5)
|
||||
.middle_of(ui_widgets.window)
|
||||
.color(Some(Color::Rgba(1.0, 1.0, 1.0, 0.1)))
|
||||
.set(self.ids.crosshair, ui_widgets);
|
||||
.color(Some(Color::Rgba(1.0, 1.0, 1.0, 0.2)))
|
||||
.set(self.ids.crosshair_outer, ui_widgets);
|
||||
Image::new(self.imgs.crosshair_inner)
|
||||
.w_h(21.0 * 2.0, 21.0 * 2.0)
|
||||
.middle_of(self.ids.crosshair_outer)
|
||||
.color(Some(Color::Rgba(1.0, 1.0, 1.0, 0.6)))
|
||||
.set(self.ids.crosshair_inner, ui_widgets);
|
||||
|
||||
// Render Name Tags
|
||||
for (pos, name) in (&entities, &pos, &stats, player.maybe())
|
||||
|
Loading…
Reference in New Issue
Block a user