Update changelog

This commit is contained in:
Imbris 2020-02-07 22:26:17 -05:00
parent db91ebe9b5
commit 70eba0c30a
7 changed files with 16 additions and 29 deletions

View File

@ -71,6 +71,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Animals are more effective in combat - Animals are more effective in combat
- Pathfinding is much smoother and pets are cleverer - Pathfinding is much smoother and pets are cleverer
- Animals run/turn at different speeds - Animals run/turn at different speeds
- Updated winit 0.19 -> 0.22
### Removed ### Removed

6
Cargo.lock generated
View File

@ -581,7 +581,7 @@ dependencies = [
[[package]] [[package]]
name = "conrod_core" name = "conrod_core"
version = "0.63.0" version = "0.63.0"
source = "git+https://gitlab.com/veloren/conrod.git?branch=hide_text#92925b122dfed139169c7d7687b3ca15c0cb5a2e" source = "git+https://gitlab.com/veloren/conrod.git#971c7154f268ec52544634b5fde7383073b0a3b4"
dependencies = [ dependencies = [
"conrod_derive", "conrod_derive",
"copypasta", "copypasta",
@ -596,7 +596,7 @@ dependencies = [
[[package]] [[package]]
name = "conrod_derive" name = "conrod_derive"
version = "0.63.0" version = "0.63.0"
source = "git+https://gitlab.com/veloren/conrod.git?branch=hide_text#92925b122dfed139169c7d7687b3ca15c0cb5a2e" source = "git+https://gitlab.com/veloren/conrod.git#971c7154f268ec52544634b5fde7383073b0a3b4"
dependencies = [ dependencies = [
"proc-macro2 0.4.30", "proc-macro2 0.4.30",
"quote 0.6.13", "quote 0.6.13",
@ -606,7 +606,7 @@ dependencies = [
[[package]] [[package]]
name = "conrod_winit" name = "conrod_winit"
version = "0.63.0" version = "0.63.0"
source = "git+https://gitlab.com/veloren/conrod.git?branch=hide_text#92925b122dfed139169c7d7687b3ca15c0cb5a2e" source = "git+https://gitlab.com/veloren/conrod.git#971c7154f268ec52544634b5fde7383073b0a3b4"
[[package]] [[package]]
name = "const-random" name = "const-random"

View File

@ -28,8 +28,8 @@ gfx_device_gl = { version = "0.16.2", optional = true }
old_school_gfx_glutin_ext = { git = "https://github.com/Imberflur/old-school-gfx-glutin-ext.git" } old_school_gfx_glutin_ext = { git = "https://github.com/Imberflur/old-school-gfx-glutin-ext.git" }
glutin = "0.23.0" glutin = "0.23.0"
winit = { version = "0.21.0", features = ["serde"] } winit = { version = "0.21.0", features = ["serde"] }
conrod_core = { git = "https://gitlab.com/veloren/conrod.git", branch = "hide_text" } conrod_core = { git = "https://gitlab.com/veloren/conrod.git" }
conrod_winit = { git = "https://gitlab.com/veloren/conrod.git", branch = "hide_text" } conrod_winit = { git = "https://gitlab.com/veloren/conrod.git" }
euc = { git = "https://github.com/zesterer/euc.git" } euc = { git = "https://github.com/zesterer/euc.git" }
# ECS # ECS

View File

@ -49,7 +49,7 @@ pub struct GlobalState {
#[cfg(feature = "singleplayer")] #[cfg(feature = "singleplayer")]
pub singleplayer: Option<Singleplayer>, pub singleplayer: Option<Singleplayer>,
// TODO: redo this so that the watcher doesn't have to exist for reloading to occur // TODO: redo this so that the watcher doesn't have to exist for reloading to occur
localization_watcher: watch::ReloadIndicator, pub localization_watcher: watch::ReloadIndicator,
} }
impl GlobalState { impl GlobalState {

View File

@ -7,19 +7,19 @@ use veloren_voxygen::{
audio::{self, AudioFrontend}, audio::{self, AudioFrontend},
i18n::{self, i18n_asset_key, VoxygenLocalization}, i18n::{self, i18n_asset_key, VoxygenLocalization},
logging, logging,
menu::main::MainMenuState,
profile::Profile, profile::Profile,
run,
settings::{AudioOutput, Settings}, settings::{AudioOutput, Settings},
window::Window, window::Window,
Direction, GlobalState, PlayState, PlayStateResult, GlobalState,
}; };
use common::{ use common::{
assets::{load_watched, watch}, assets::{load_watched, watch},
clock::Clock, clock::Clock,
}; };
use std::{mem, panic}; use std::panic;
use tracing::{debug, error, warn}; use tracing::{error, warn};
fn main() { fn main() {
#[cfg(feature = "tweak")] #[cfg(feature = "tweak")]
@ -140,10 +140,10 @@ fn main() {
&mut localization_watcher, &mut localization_watcher,
) )
.unwrap_or_else(|error| { .unwrap_or_else(|error| {
let preferred_language = &global_state.settings.language.selected_language; let selected_language = &settings.language.selected_language;
warn!( warn!(
?e, ?error,
?preferred_language, ?selected_language,
"Impossible to load language: change to the default language (English) instead.", "Impossible to load language: change to the default language (English) instead.",
); );
settings.language.selected_language = i18n::REFERENCE_LANG.to_owned(); settings.language.selected_language = i18n::REFERENCE_LANG.to_owned();

View File

@ -114,20 +114,6 @@ impl PlayState for CharSelectionState {
} }
} }
let humanoid_body = self
.char_selection_ui
.get_character_list()
.and_then(|data| {
if let Some(character) = data.get(self.char_selection_ui.selected_character) {
match character.body {
comp::Body::Humanoid(body) => Some(body),
_ => None,
}
} else {
None
}
});
let humanoid_body = self.get_humanoid_body(); let humanoid_body = self.get_humanoid_body();
let loadout = self.char_selection_ui.get_loadout(); let loadout = self.char_selection_ui.get_loadout();

View File

@ -15,7 +15,6 @@ use ui::{Event as MainMenuEvent, MainMenuUi};
pub struct MainMenuState { pub struct MainMenuState {
main_menu_ui: MainMenuUi, main_menu_ui: MainMenuUi,
title_music_channel: Option<usize>,
// Used for client creation. // Used for client creation.
client_init: Option<ClientInit>, client_init: Option<ClientInit>,
} }
@ -25,7 +24,6 @@ impl MainMenuState {
pub fn new(global_state: &mut GlobalState) -> Self { pub fn new(global_state: &mut GlobalState) -> Self {
Self { Self {
main_menu_ui: MainMenuUi::new(global_state), main_menu_ui: MainMenuUi::new(global_state),
title_music_channel: None,
client_init: None, client_init: None,
} }
} }
@ -209,6 +207,8 @@ impl PlayState for MainMenuState {
MainMenuEvent::StartSingleplayer => { MainMenuEvent::StartSingleplayer => {
let (singleplayer, server_settings) = Singleplayer::new(None); // TODO: Make client and server use the same thread pool let (singleplayer, server_settings) = Singleplayer::new(None); // TODO: Make client and server use the same thread pool
global_state.singleplayer = Some(singleplayer);
attempt_login( attempt_login(
global_state, global_state,
"singleplayer".to_owned(), "singleplayer".to_owned(),