una-xiv / umbra

Umbra XIV - Adds quality of life improvements to the game and consolidates common UI elements and actions into a single uniform interface.
GNU Affero General Public License v3.0
51 stars 18 forks source link

[Feature Request] Open the Online Status window on right-click #72

Closed haroldiedema closed 1 month ago

haroldiedema commented 2 months ago

As a follow-up on #51,

Once the latest CS update is in Dalamud and is available on the stable/release branch, implement the following to execute upon right-clicking the online status widget in the toolbar:

var infoModule = InfoModule.Instance();
if (infoModule->IsInCrossWorldDuty())
    return;

var localContentId = infoModule->GetLocalContentId();
var characterData = InfoProxyParty.Instance()->InfoProxyCommonList.GetEntryByContentId(localContentId);
if (characterData == null)
    return;

var updateDataPacket = &InfoProxySearchComment.Instance()->UpdateData;
AgentDetail.Instance()->OpenForCharacterData(characterData, updateDataPacket);