Rename "Default profile", hide character controls when profile is set as default
This commit is contained in:
@@ -505,6 +505,10 @@ public class ProfileManager : IDisposable
|
|||||||
|
|
||||||
bool IsProfileAppliesToCurrentActor(Profile profile)
|
bool IsProfileAppliesToCurrentActor(Profile profile)
|
||||||
{
|
{
|
||||||
|
//default profile check is done later
|
||||||
|
if (profile == DefaultProfile)
|
||||||
|
return false;
|
||||||
|
|
||||||
return profile.CharacterName.Text == name &&
|
return profile.CharacterName.Text == name &&
|
||||||
(!profile.LimitLookupToOwnedObjects ||
|
(!profile.LimitLookupToOwnedObjects ||
|
||||||
(actorIdentifier.Type == IdentifierType.Owned &&
|
(actorIdentifier.Type == IdentifierType.Owned &&
|
||||||
|
|||||||
@@ -162,8 +162,8 @@ public class ProfilePanel
|
|||||||
{
|
{
|
||||||
if (ImGui.Checkbox("##DefaultProfile", ref isDefault))
|
if (ImGui.Checkbox("##DefaultProfile", ref isDefault))
|
||||||
_manager.SetDefaultProfile(isDefault ? _selector.Selected! : null);
|
_manager.SetDefaultProfile(isDefault ? _selector.Selected! : null);
|
||||||
ImGuiUtil.LabeledHelpMarker("Default profile (Players and Retainers only)",
|
ImGuiUtil.LabeledHelpMarker("Apply to all players and retainers",
|
||||||
"Whether the templates in this profile are applied to all players and retainers without a specific profile. Only one profile can be default at the same time.");
|
"Whether the templates in this profile are applied to all players and retainers without a specific profile. This setting cannot be applied to multiple profiles.");
|
||||||
}
|
}
|
||||||
if(isDefaultOrCurrentProfilesEnabled)
|
if(isDefaultOrCurrentProfilesEnabled)
|
||||||
{
|
{
|
||||||
@@ -171,7 +171,7 @@ public class ProfilePanel
|
|||||||
ImGui.PushStyleColor(ImGuiCol.Text, Constants.Colors.Warning);
|
ImGui.PushStyleColor(ImGuiCol.Text, Constants.Colors.Warning);
|
||||||
ImGuiUtil.PrintIcon(FontAwesomeIcon.ExclamationTriangle);
|
ImGuiUtil.PrintIcon(FontAwesomeIcon.ExclamationTriangle);
|
||||||
ImGui.PopStyleColor();
|
ImGui.PopStyleColor();
|
||||||
ImGuiUtil.HoverTooltip("Can only be changed when currently selected and the default profiles are disabled.");
|
ImGuiUtil.HoverTooltip("Can only be changed when both currently selected and profile where this checkbox is checked are disabled.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -217,6 +217,8 @@ public class ProfilePanel
|
|||||||
name = _newCharacterName ?? _selector.Selected!.CharacterName;
|
name = _newCharacterName ?? _selector.Selected!.CharacterName;
|
||||||
ImGui.SetNextItemWidth(width.X);
|
ImGui.SetNextItemWidth(width.X);
|
||||||
|
|
||||||
|
if(_manager.DefaultProfile != _selector.Selected)
|
||||||
|
{
|
||||||
if (!_selector.IncognitoMode)
|
if (!_selector.IncognitoMode)
|
||||||
{
|
{
|
||||||
if (ImGui.InputText("##CharacterName", ref name, 128))
|
if (ImGui.InputText("##CharacterName", ref name, 128))
|
||||||
@@ -242,6 +244,9 @@ public class ProfilePanel
|
|||||||
ImGuiUtil.LabeledHelpMarker("Limit to my creatures",
|
ImGuiUtil.LabeledHelpMarker("Limit to my creatures",
|
||||||
"When enabled limits the character search to only your own summons, mounts and minions.\nUseful when there is possibility there will be another character with that name owned by another player.\n* For battle chocobo use \"Chocobo\" as character name.");
|
"When enabled limits the character search to only your own summons, mounts and minions.\nUseful when there is possibility there will be another character with that name owned by another player.\n* For battle chocobo use \"Chocobo\" as character name.");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
ImGui.TextUnformatted("All players and retainers");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user