mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
feat: setting for buttons in system menu
This commit is contained in:
parent
287cc0b84f
commit
11938722b7
3 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue