private static void AddResetAvatarButton() { if (ModSettings.confirmAvatarReset) { actionMenuApi.AddPedalToCustomMenu(delegate { actionMenuApi.CreateSubMenu(delegate { //Definitely abusable to set your own quest avatar actionMenuApi.AddPedalToCustomMenu(() => ObjectPublicAbstractSealedApBoApObStBoApApUnique.Method_Public_Static_Void_ApiAvatar_String_ApiAvatar_0(API.Fetch <ApiAvatar>("avtr_c38a1615-5bf5-42b4-84eb-a8b6c37cbd11"), "fallbackAvatar", null) , "Confirm Reset Avatar", resetAvatarIcon); }); }, "Reset Avatar", resetAvatarIcon); } else { actionMenuApi.AddPedalToCustomMenu(() => ObjectPublicAbstractSealedApBoApObStBoApApUnique.Method_Public_Static_Void_ApiAvatar_String_ApiAvatar_0(API.Fetch <ApiAvatar>("avtr_c38a1615-5bf5-42b4-84eb-a8b6c37cbd11"), "fallbackAvatar", null) , "Reset Avatar", resetAvatarIcon); } }
private static void SetupButtons() { actionMenuApi.AddPedalToExistingMenu(ActionMenuAPI.ActionMenuPageType.Options, delegate { actionMenuApi.CreateSubMenu(() => { if (ModSettings.confirmRespawn) { actionMenuApi.AddPedalToCustomMenu(() => actionMenuApi.CreateSubMenu(() => actionMenuApi.AddPedalToCustomMenu(Utils.Respawn, "Confirm Respawn", respawnIcon) ), "Respawn", respawnIcon ); } else { actionMenuApi.AddPedalToCustomMenu(Utils.Respawn, "Respawn", respawnIcon); } if (ModSettings.confirmGoHome) { actionMenuApi.AddPedalToCustomMenu(() => actionMenuApi.CreateSubMenu(() => actionMenuApi.AddPedalToCustomMenu(Utils.Home, "Confirm Go Home", goHomeIcon) ), "Go Home", goHomeIcon ); } else { actionMenuApi.AddPedalToCustomMenu(Utils.Home, "Go Home", goHomeIcon); } if (ModSettings.confirmAvatarReset) { actionMenuApi.AddPedalToCustomMenu(() => actionMenuApi.CreateSubMenu(() => actionMenuApi.AddPedalToCustomMenu(Utils.ResetAvatar, "Confirm Reset Avatar", resetAvatarIcon) ), "Reset Avatar", resetAvatarIcon ); } else { actionMenuApi.AddPedalToCustomMenu(Utils.ResetAvatar, "Reset Avatar", resetAvatarIcon); } if (ModSettings.confirmInstanceRejoin) { actionMenuApi.AddPedalToCustomMenu(() => actionMenuApi.CreateSubMenu(() => actionMenuApi.AddPedalToCustomMenu(Utils.RejoinInstance, "Confirm Instance Rejoin", rejoinInstanceIcon) ), "Rejoin Instance", rejoinInstanceIcon ); } else { actionMenuApi.AddPedalToCustomMenu(Utils.RejoinInstance, "Rejoin Instance", rejoinInstanceIcon); } }); }, "Help", helpIcon); }