Apply to current character button
This commit is contained in:
@@ -245,7 +245,8 @@ public class ProfilePanel
|
|||||||
_changedProfile = null;
|
_changedProfile = null;
|
||||||
}
|
}
|
||||||
ImGui.Separator();*/
|
ImGui.Separator();*/
|
||||||
ImGui.Text($"Character: {(_selector.Selected?.Character.ToString() ?? "Character field empty")}");
|
ImGui.Text(_selector.Selected!.Character.IsValid ? _selector.Selected?.Character.ToString() : "No valid character selected for the profile");
|
||||||
|
ImGui.Text($"Legacy: {_selector.Selected!.CharacterName.Text ?? "None"}");
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
||||||
_actorAssignmentUi.DrawWorldCombo(width.X / 2);
|
_actorAssignmentUi.DrawWorldCombo(width.X / 2);
|
||||||
@@ -267,6 +268,10 @@ public class ProfilePanel
|
|||||||
if (ImGuiUtil.DrawDisabledButton("Apply to mannequin", buttonWidth, string.Empty, !_actorAssignmentUi.CanSetMannequin))
|
if (ImGuiUtil.DrawDisabledButton("Apply to mannequin", buttonWidth, string.Empty, !_actorAssignmentUi.CanSetMannequin))
|
||||||
_manager.ChangeCharacter(_selector.Selected!, _actorAssignmentUi.MannequinIdentifier);
|
_manager.ChangeCharacter(_selector.Selected!, _actorAssignmentUi.MannequinIdentifier);
|
||||||
|
|
||||||
|
var currentPlayer = _actorManager.GetCurrentPlayer();
|
||||||
|
if (ImGuiUtil.DrawDisabledButton("Apply to current character", buttonWidth, string.Empty, !currentPlayer.IsValid))
|
||||||
|
_manager.ChangeCharacter(_selector.Selected!, currentPlayer);
|
||||||
|
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
||||||
_actorAssignmentUi.DrawObjectKindCombo(width.X / 2);
|
_actorAssignmentUi.DrawObjectKindCombo(width.X / 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user