1
0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2026-02-07 18:02:26 +00:00

Fix Quick Menu selection (failed to r/w hitbox vis + quick menu previously)

This commit is contained in:
jugeeya
2022-10-04 01:23:55 -07:00
parent afb8427c0d
commit 3f5e8398d7
4 changed files with 39 additions and 27 deletions

View File

@@ -1497,7 +1497,10 @@ pub unsafe fn get_menu() -> UiMenu<'static> {
);
overall_menu.tabs.push(misc_tab);
let non_ui_menu = serde_json::to_string(&MENU).unwrap().replace("\"", "");
let non_ui_menu = serde_json::to_string(&MENU).unwrap()
.replace("\"", "")
.replace("{", "")
.replace("}", "");
let toggle_values_all = non_ui_menu.split(',').collect::<Vec<&str>>();
let mut sub_menu_id_to_vals: HashMap<&str, u32> = HashMap::new();
for toggle_values in toggle_values_all {