mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'songtronix/clean-hud' into 'master'
clean warnings from voxygen/hud See merge request veloren/veloren!293
This commit is contained in:
commit
2ab7c7767f
common/src/terrain
voxygen/src/hud
@ -219,8 +219,7 @@ impl WriteVol for Chonk {
|
|||||||
*/
|
*/
|
||||||
SubChunk::Heterogeneous(chunk) => {
|
SubChunk::Heterogeneous(chunk) => {
|
||||||
chunk.set(rpos, block).map_err(ChonkError::ChunkError)
|
chunk.set(rpos, block).map_err(ChonkError::ChunkError)
|
||||||
}
|
} //_ => unimplemented!(),
|
||||||
//_ => unimplemented!(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,18 +23,17 @@ pub struct Bag<'a> {
|
|||||||
inventory_space: u32,
|
inventory_space: u32,
|
||||||
|
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
common: widget::CommonBuilder,
|
common: widget::CommonBuilder,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Bag<'a> {
|
impl<'a> Bag<'a> {
|
||||||
pub fn new(inventory_space: u32, imgs: &'a Imgs, fonts: &'a Fonts) -> Self {
|
pub fn new(inventory_space: u32, imgs: &'a Imgs, _fonts: &'a Fonts) -> Self {
|
||||||
Self {
|
Self {
|
||||||
inventory_space,
|
inventory_space,
|
||||||
imgs,
|
imgs,
|
||||||
fonts,
|
_fonts,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,7 @@ pub struct Buttons<'a> {
|
|||||||
show_bag: bool,
|
show_bag: bool,
|
||||||
|
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
common: widget::CommonBuilder,
|
common: widget::CommonBuilder,
|
||||||
}
|
}
|
||||||
@ -43,14 +42,14 @@ impl<'a> Buttons<'a> {
|
|||||||
show_map: bool,
|
show_map: bool,
|
||||||
show_bag: bool,
|
show_bag: bool,
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
open_windows,
|
open_windows,
|
||||||
show_map,
|
show_map,
|
||||||
show_bag,
|
show_bag,
|
||||||
imgs,
|
imgs,
|
||||||
fonts,
|
_fonts,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,17 +21,16 @@ widget_ids! {
|
|||||||
#[derive(WidgetCommon)]
|
#[derive(WidgetCommon)]
|
||||||
pub struct EscMenu<'a> {
|
pub struct EscMenu<'a> {
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
common: widget::CommonBuilder,
|
common: widget::CommonBuilder,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> EscMenu<'a> {
|
impl<'a> EscMenu<'a> {
|
||||||
pub fn new(imgs: &'a Imgs, fonts: &'a Fonts) -> Self {
|
pub fn new(imgs: &'a Imgs, _fonts: &'a Fonts) -> Self {
|
||||||
Self {
|
Self {
|
||||||
imgs,
|
imgs,
|
||||||
fonts,
|
_fonts,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@ use conrod_core::{
|
|||||||
use super::{img_ids::Imgs, Fonts, Show, TEXT_COLOR_2};
|
use super::{img_ids::Imgs, Fonts, Show, TEXT_COLOR_2};
|
||||||
use client::{self, Client};
|
use client::{self, Client};
|
||||||
|
|
||||||
use std::{cell::RefCell, rc::Rc};
|
|
||||||
|
|
||||||
widget_ids! {
|
widget_ids! {
|
||||||
struct Ids {
|
struct Ids {
|
||||||
map_frame,
|
map_frame,
|
||||||
@ -26,23 +24,21 @@ widget_ids! {
|
|||||||
|
|
||||||
#[derive(WidgetCommon)]
|
#[derive(WidgetCommon)]
|
||||||
pub struct Map<'a> {
|
pub struct Map<'a> {
|
||||||
show: &'a Show,
|
_show: &'a Show,
|
||||||
|
|
||||||
client: &'a Client,
|
client: &'a Client,
|
||||||
|
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
common: widget::CommonBuilder,
|
common: widget::CommonBuilder,
|
||||||
}
|
}
|
||||||
impl<'a> Map<'a> {
|
impl<'a> Map<'a> {
|
||||||
pub fn new(show: &'a Show, client: &'a Client, imgs: &'a Imgs, fonts: &'a Fonts) -> Self {
|
pub fn new(show: &'a Show, client: &'a Client, imgs: &'a Imgs, fonts: &'a Fonts) -> Self {
|
||||||
Self {
|
Self {
|
||||||
show,
|
_show: show,
|
||||||
imgs,
|
imgs,
|
||||||
client,
|
client,
|
||||||
fonts,
|
_fonts: fonts,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,6 @@ use conrod_core::{
|
|||||||
use super::{img_ids::Imgs, Fonts, Show, TEXT_COLOR};
|
use super::{img_ids::Imgs, Fonts, Show, TEXT_COLOR};
|
||||||
use client::{self, Client};
|
use client::{self, Client};
|
||||||
|
|
||||||
use std::{cell::RefCell, rc::Rc};
|
|
||||||
|
|
||||||
widget_ids! {
|
widget_ids! {
|
||||||
struct Ids {
|
struct Ids {
|
||||||
mmap_frame,
|
mmap_frame,
|
||||||
@ -25,8 +23,7 @@ pub struct MiniMap<'a> {
|
|||||||
client: &'a Client,
|
client: &'a Client,
|
||||||
|
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
common: widget::CommonBuilder,
|
common: widget::CommonBuilder,
|
||||||
}
|
}
|
||||||
@ -37,7 +34,7 @@ impl<'a> MiniMap<'a> {
|
|||||||
show,
|
show,
|
||||||
client,
|
client,
|
||||||
imgs,
|
imgs,
|
||||||
fonts,
|
_fonts: fonts,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,6 @@ use conrod_core::{
|
|||||||
};
|
};
|
||||||
use specs::Join;
|
use specs::Join;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::{cell::RefCell, rc::Rc};
|
|
||||||
use vek::*;
|
use vek::*;
|
||||||
|
|
||||||
const XP_COLOR: Color = Color::Rgba(0.59, 0.41, 0.67, 1.0);
|
const XP_COLOR: Color = Color::Rgba(0.59, 0.41, 0.67, 1.0);
|
||||||
@ -367,7 +366,7 @@ impl Hud {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Render Health Bars
|
// Render Health Bars
|
||||||
for (entity, pos, stats) in (&entities, &pos, &stats)
|
for (_entity, pos, stats) in (&entities, &pos, &stats)
|
||||||
.join()
|
.join()
|
||||||
.filter(|(entity, _, stats)| {
|
.filter(|(entity, _, stats)| {
|
||||||
*entity != me
|
*entity != me
|
||||||
|
@ -29,8 +29,7 @@ widget_ids! {
|
|||||||
#[derive(WidgetCommon)]
|
#[derive(WidgetCommon)]
|
||||||
pub struct Skillbar<'a> {
|
pub struct Skillbar<'a> {
|
||||||
imgs: &'a Imgs,
|
imgs: &'a Imgs,
|
||||||
fonts: &'a Fonts,
|
_fonts: &'a Fonts,
|
||||||
|
|
||||||
stats: &'a Stats,
|
stats: &'a Stats,
|
||||||
|
|
||||||
#[conrod(common_builder)]
|
#[conrod(common_builder)]
|
||||||
@ -41,7 +40,7 @@ impl<'a> Skillbar<'a> {
|
|||||||
pub fn new(imgs: &'a Imgs, fonts: &'a Fonts, stats: &'a Stats) -> Self {
|
pub fn new(imgs: &'a Imgs, fonts: &'a Fonts, stats: &'a Stats) -> Self {
|
||||||
Self {
|
Self {
|
||||||
imgs,
|
imgs,
|
||||||
fonts,
|
_fonts: fonts,
|
||||||
stats,
|
stats,
|
||||||
common: widget::CommonBuilder::default(),
|
common: widget::CommonBuilder::default(),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user