1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-31 02:32:44 +00:00

More fixes

This commit is contained in:
jugeeya 2023-12-13 17:15:49 -08:00 committed by GitHub
parent f142dfad04
commit c6239946e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions
src
lib.rs
training/ui

View file

@ -3,6 +3,7 @@
#![feature(const_mut_refs)] #![feature(const_mut_refs)]
#![feature(exclusive_range_pattern)] #![feature(exclusive_range_pattern)]
#![feature(c_variadic)] #![feature(c_variadic)]
#![feature(pointer_byte_offsets)]
#![allow( #![allow(
clippy::borrow_interior_mutable_const, clippy::borrow_interior_mutable_const,
clippy::declare_interior_mutable_const, clippy::declare_interior_mutable_const,

View file

@ -583,7 +583,7 @@ pub unsafe fn draw(root_pane: &Pane) {
// Left/Right tabs have keys // Left/Right tabs have keys
if let Some(key) = key { if let Some(key) = key {
set_icon_text(icon_pane, &vec![**key]); set_icon_text(icon_pane, &[**key]);
} }
if *name == "CurrentTab" { if *name == "CurrentTab" {
@ -604,7 +604,7 @@ pub unsafe fn draw(root_pane: &Pane) {
.find_pane_by_name_recursive("set_txt_icon") .find_pane_by_name_recursive("set_txt_icon")
.unwrap() .unwrap()
.as_textbox(); .as_textbox();
set_icon_text(icon_pane, &vec![*key.unwrap()]); set_icon_text(icon_pane, &[*key.unwrap()]);
key_help_pane key_help_pane
.find_pane_by_name_recursive("set_txt_help") .find_pane_by_name_recursive("set_txt_help")
.unwrap() .unwrap()
@ -627,7 +627,7 @@ pub unsafe fn draw(root_pane: &Pane) {
.find_pane_by_name_recursive("set_txt_icon") .find_pane_by_name_recursive("set_txt_icon")
.unwrap() .unwrap()
.as_textbox(); .as_textbox();
set_icon_text(icon_pane, &vec![*key.unwrap()]); set_icon_text(icon_pane, &[*key.unwrap()]);
key_help_pane key_help_pane
.find_pane_by_name_recursive("set_txt_help") .find_pane_by_name_recursive("set_txt_help")
.unwrap() .unwrap()
@ -645,7 +645,7 @@ pub unsafe fn draw(root_pane: &Pane) {
// This is only displayed when you're in a multiple selection toggle menu w/ toggle.max > 1 // This is only displayed when you're in a multiple selection toggle menu w/ toggle.max > 1
let key = clear_toggle_key; let key = clear_toggle_key;
let title = "Clear Toggle"; let title = "Clear Toggle";
set_icon_text(icon_pane.as_textbox(), &vec![*key.unwrap()]); set_icon_text(icon_pane.as_textbox(), &[*key.unwrap()]);
key_help_pane key_help_pane
.find_pane_by_name_recursive("set_txt_help") .find_pane_by_name_recursive("set_txt_help")
.unwrap() .unwrap()