1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00

More fixes

This commit is contained in:
jugeeya 2023-08-29 16:26:55 -07:00
parent 1140da469c
commit 7f5e59bbcc
2 changed files with 8 additions and 3 deletions

View file

@ -255,8 +255,8 @@ impl InputLog {
}
fn raw_binned_rstick(&self) -> (DirectionStrength, f32) {
let x = (self.raw_inputs.left_stick_x / STICK_CLAMP_MULTIPLIER) as i8;
let y = (self.raw_inputs.left_stick_y / STICK_CLAMP_MULTIPLIER) as i8;
let x = (self.raw_inputs.right_stick_x / STICK_CLAMP_MULTIPLIER) as i8;
let y = (self.raw_inputs.right_stick_y / STICK_CLAMP_MULTIPLIER) as i8;
bin_stick_values(x, y)
}
}

View file

@ -116,11 +116,16 @@ unsafe fn draw_log(root_pane: &Pane, log_idx: usize, log: &InputLog) {
.as_textbox()
.set_text_string(frame_text.as_str());
let status_text = if MENU.input_display_status.as_bool() {
status_display_name(log.fighter_kind, log.status)
} else {
"".to_string()
};
log_pane
.find_pane_by_name_recursive("StatusTxt")
.unwrap()
.as_textbox()
.set_text_string(status_display_name(log.fighter_kind, log.status).as_str());
.set_text_string(status_txt.as_str());
}
pub unsafe fn draw(root_pane: &Pane) {