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

Update menu.rs

This commit is contained in:
jugeeya 2023-08-13 17:15:32 -07:00 committed by GitHub
parent 5cb17ca9b5
commit b14322faf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,12 +372,12 @@ pub unsafe fn draw(root_pane: &Pane) {
let menu_button_row = root_pane
.find_pane_by_name_recursive(format!("TrModMenuButtonRow{row_idx}").as_str())
.unwrap_or_else(|| panic!("Unable to find TrModMenuButtonRow{row_idx}").as_str());
.unwrap();
menu_button_row.set_visible(false);
let menu_button = menu_button_row
.find_pane_by_name_recursive(format!("Button{col_idx}").as_str())
.unwrap_or_else(|| panic!("Unable to find Button{col_idx}").as_str());
.unwrap();
menu_button.set_visible(false);
menu_button