feat: setting for buttons in system menu

This commit is contained in:
Aireil 2021-04-30 17:17:30 +02:00
parent 287cc0b84f
commit 11938722b7
3 changed files with 17 additions and 0 deletions

View file

@ -71,6 +71,12 @@ namespace Dalamud.Game.Addon
private void AgentHudOpenSystemMenuDetour(void* thisPtr, AtkValue* atkValueArgs, uint menuSize)
{
if (!this.dalamud.Configuration.DoButtonsSystemMenu)
{
this.hookAgentHudOpenSystemMenu.Original(thisPtr, atkValueArgs, menuSize);
return;
}
// the max size (hardcoded) is 0xE/15, but the system menu currently uses 0xC/12
// this is a just in case that doesnt really matter
// see if we can add 2 entries