fix gpose world stuff

This commit is contained in:
Stanley Dimant
2025-04-10 20:17:58 +02:00
committed by Loporrit
parent 27bbe96618
commit 4acf78b0df
3 changed files with 45 additions and 26 deletions

View File

@@ -161,7 +161,7 @@ internal sealed partial class CharaDataHubUi : WindowMediatorSubscriberBase
UpdateFilteredFavorites();
}
_hasValidGposeTarget = _charaDataManager.CanApplyInGpose(out _gposeTarget);
(_hasValidGposeTarget, _gposeTarget) = _charaDataManager.CanApplyInGpose().GetAwaiter().GetResult();
if (!_charaDataManager.BrioAvailable)
{
@@ -369,7 +369,7 @@ internal sealed partial class CharaDataHubUi : WindowMediatorSubscriberBase
UiSharedService.AttachToolTip($"Target the GPose Character {CharaName(actor.Name.TextValue)}");
ImGui.AlignTextToFramePadding();
var pos = ImGui.GetCursorPosX();
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen, actor.Address == (_dalamudUtilService.GposeTargetGameObject?.Address ?? nint.Zero)))
using (ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.HealerGreen, actor.Address == (_dalamudUtilService.GetGposeTargetGameObjectAsync().GetAwaiter().GetResult()?.Address ?? nint.Zero)))
{
ImGui.TextUnformatted(CharaName(actor.Name.TextValue));
}
@@ -818,7 +818,7 @@ internal sealed partial class CharaDataHubUi : WindowMediatorSubscriberBase
{
if (_uiSharedService.IconTextButton(FontAwesomeIcon.ArrowRight, "Apply"))
{
_charaDataManager.McdfApplyToGposeTarget();
_ = _charaDataManager.McdfApplyToGposeTarget();
}
UiSharedService.AttachToolTip($"Apply to {_gposeTarget}");
ImGui.SameLine();