mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-27 20:34:03 +00:00
Fix soft-freeze on loading Quickplay lobby (#593)
* Fix soft-freeze on loading Quickplay lobby * Formatting --------- Co-authored-by: jugeeya <jugeeya@live.com>
This commit is contained in:
parent
6f1e4af332
commit
e78ab92d4b
1 changed files with 12 additions and 10 deletions
|
@ -1,15 +1,20 @@
|
||||||
use crate::common::button_config;
|
use std::cmp::Ordering;
|
||||||
use crate::common::consts::{FighterId, HitstunPlayback, OnOff, RecordTrigger};
|
|
||||||
use crate::common::input::*;
|
|
||||||
use crate::common::{get_module_accessor, is_in_hitstun, is_in_shieldstun, MENU};
|
|
||||||
use crate::training::mash;
|
|
||||||
use crate::training::ui::notifications::{clear_notifications, color_notification};
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use skyline::nn::ui2d::ResColor;
|
use skyline::nn::ui2d::ResColor;
|
||||||
use smash::app::{lua_bind::*, utility, BattleObjectModuleAccessor};
|
use smash::app::{lua_bind::*, utility, BattleObjectModuleAccessor};
|
||||||
use smash::lib::lua_const::*;
|
use smash::lib::lua_const::*;
|
||||||
use std::cmp::Ordering;
|
|
||||||
|
use InputRecordState::*;
|
||||||
|
use PossessionState::*;
|
||||||
|
|
||||||
|
use crate::common::consts::{FighterId, HitstunPlayback, OnOff, RecordTrigger};
|
||||||
|
use crate::common::input::*;
|
||||||
|
use crate::common::{button_config, is_training_mode};
|
||||||
|
use crate::common::{get_module_accessor, is_in_hitstun, is_in_shieldstun, MENU};
|
||||||
|
use crate::training::mash;
|
||||||
|
use crate::training::ui::notifications::{clear_notifications, color_notification};
|
||||||
|
|
||||||
#[derive(PartialEq, Debug)]
|
#[derive(PartialEq, Debug)]
|
||||||
pub enum InputRecordState {
|
pub enum InputRecordState {
|
||||||
|
@ -43,9 +48,6 @@ pub enum StartingStatus {
|
||||||
Other,
|
Other,
|
||||||
}
|
}
|
||||||
|
|
||||||
use InputRecordState::*;
|
|
||||||
use PossessionState::*;
|
|
||||||
|
|
||||||
const STICK_NEUTRAL: f32 = 0.2;
|
const STICK_NEUTRAL: f32 = 0.2;
|
||||||
const STICK_CLAMP_MULTIPLIER: f32 = 1.0 / 120.0; // 120.0 = CLAMP_MAX
|
const STICK_CLAMP_MULTIPLIER: f32 = 1.0 / 120.0; // 120.0 = CLAMP_MAX
|
||||||
const FINAL_RECORD_MAX: usize = 600; // Maximum length for input recording sequences (capacity)
|
const FINAL_RECORD_MAX: usize = 600; // Maximum length for input recording sequences (capacity)
|
||||||
|
|
Loading…
Reference in a new issue