mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-25 07:46:11 +00:00
More fixes
This commit is contained in:
parent
f142dfad04
commit
c6239946e4
2 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
#![feature(const_mut_refs)]
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![feature(c_variadic)]
|
||||
#![feature(pointer_byte_offsets)]
|
||||
#![allow(
|
||||
clippy::borrow_interior_mutable_const,
|
||||
clippy::declare_interior_mutable_const,
|
||||
|
|
|
@ -583,7 +583,7 @@ pub unsafe fn draw(root_pane: &Pane) {
|
|||
|
||||
// Left/Right tabs have keys
|
||||
if let Some(key) = key {
|
||||
set_icon_text(icon_pane, &vec![**key]);
|
||||
set_icon_text(icon_pane, &[**key]);
|
||||
}
|
||||
|
||||
if *name == "CurrentTab" {
|
||||
|
@ -604,7 +604,7 @@ pub unsafe fn draw(root_pane: &Pane) {
|
|||
.find_pane_by_name_recursive("set_txt_icon")
|
||||
.unwrap()
|
||||
.as_textbox();
|
||||
set_icon_text(icon_pane, &vec![*key.unwrap()]);
|
||||
set_icon_text(icon_pane, &[*key.unwrap()]);
|
||||
key_help_pane
|
||||
.find_pane_by_name_recursive("set_txt_help")
|
||||
.unwrap()
|
||||
|
@ -627,7 +627,7 @@ pub unsafe fn draw(root_pane: &Pane) {
|
|||
.find_pane_by_name_recursive("set_txt_icon")
|
||||
.unwrap()
|
||||
.as_textbox();
|
||||
set_icon_text(icon_pane, &vec![*key.unwrap()]);
|
||||
set_icon_text(icon_pane, &[*key.unwrap()]);
|
||||
key_help_pane
|
||||
.find_pane_by_name_recursive("set_txt_help")
|
||||
.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
|
||||
let key = clear_toggle_key;
|
||||
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
|
||||
.find_pane_by_name_recursive("set_txt_help")
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Reference in a new issue