Moving stuff around in the UI
This commit is contained in:
@@ -163,25 +163,6 @@ public class ProfilePanel
|
|||||||
ImGuiUtil.LabeledHelpMarker("Enabled",
|
ImGuiUtil.LabeledHelpMarker("Enabled",
|
||||||
"Whether the templates in this profile should be applied at all. Only one profile can be enabled for a character at the same time.");
|
"Whether the templates in this profile should be applied at all. Only one profile can be enabled for a character at the same time.");
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.SameLine();
|
|
||||||
var isDefault = _manager.DefaultProfile == _selector.Selected;
|
|
||||||
var isDefaultOrCurrentProfilesEnabled = _manager.DefaultProfile?.Enabled ?? false || enabled;
|
|
||||||
using (ImRaii.Disabled(isDefaultOrCurrentProfilesEnabled))
|
|
||||||
{
|
|
||||||
if (ImGui.Checkbox("##DefaultProfile", ref isDefault))
|
|
||||||
_manager.SetDefaultProfile(isDefault ? _selector.Selected! : null);
|
|
||||||
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. This setting cannot be applied to multiple profiles.");
|
|
||||||
}
|
|
||||||
if(isDefaultOrCurrentProfilesEnabled)
|
|
||||||
{
|
|
||||||
ImGui.SameLine();
|
|
||||||
ImGui.PushStyleColor(ImGuiCol.Text, Constants.Colors.Warning);
|
|
||||||
ImGuiUtil.PrintIcon(FontAwesomeIcon.ExclamationTriangle);
|
|
||||||
ImGui.PopStyleColor();
|
|
||||||
ImGuiUtil.HoverTooltip("Can only be changed when both currently selected and profile where this checkbox is checked are disabled.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,9 +207,10 @@ 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)
|
||||||
|
{
|
||||||
|
bool showMultipleMessage = false;
|
||||||
|
if (_manager.DefaultProfile != _selector.Selected)
|
||||||
{
|
{
|
||||||
if (!_selector.Selected!.ApplyToCurrentlyActiveCharacter)
|
if (!_selector.Selected!.ApplyToCurrentlyActiveCharacter)
|
||||||
{
|
{
|
||||||
@@ -245,7 +227,7 @@ public class ProfilePanel
|
|||||||
_changedProfile = null;
|
_changedProfile = null;
|
||||||
}
|
}
|
||||||
ImGui.Separator();*/
|
ImGui.Separator();*/
|
||||||
ImGui.Text(_selector.Selected!.Character.IsValid ? _selector.Selected?.Character.ToString() : "No valid character selected for the profile");
|
ImGui.Text(_selector.Selected!.Character.IsValid ? $"Applies to {_selector.Selected?.Character.ToString()}" : "No valid character selected for the profile");
|
||||||
ImGui.Text($"Legacy: {_selector.Selected!.CharacterName.Text ?? "None"}");
|
ImGui.Text($"Legacy: {_selector.Selected!.CharacterName.Text ?? "None"}");
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
||||||
@@ -284,18 +266,42 @@ public class ProfilePanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
showMultipleMessage = true;
|
||||||
ImGui.TextUnformatted("Any character you are logged in with");
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
showMultipleMessage = true;
|
||||||
|
|
||||||
|
if(showMultipleMessage)
|
||||||
|
ImGui.TextUnformatted("Applies to multiple targets");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
ImGui.TextUnformatted("Incognito active");
|
ImGui.TextUnformatted("Incognito active");
|
||||||
|
|
||||||
|
ImGui.Separator();
|
||||||
|
|
||||||
var anyActiveCharaBool = _selector.Selected?.ApplyToCurrentlyActiveCharacter ?? false;
|
var anyActiveCharaBool = _selector.Selected?.ApplyToCurrentlyActiveCharacter ?? false;
|
||||||
if (ImGui.Checkbox("##ApplyToCurrentlyActiveCharacter", ref anyActiveCharaBool))
|
if (ImGui.Checkbox("##ApplyToCurrentlyActiveCharacter", ref anyActiveCharaBool))
|
||||||
_manager.SetApplyToCurrentlyActiveCharacter(_selector.Selected!, anyActiveCharaBool);
|
_manager.SetApplyToCurrentlyActiveCharacter(_selector.Selected!, anyActiveCharaBool);
|
||||||
ImGuiUtil.LabeledHelpMarker("Apply to any character you are logged in with",
|
ImGuiUtil.LabeledHelpMarker("Apply to any character you are logged in with",
|
||||||
"When enabled applies this profile to any character you are currently logged in with.");
|
"Whether the templates in this profile should be applied to any character you are currently logged in with.");
|
||||||
|
|
||||||
|
var isDefault = _manager.DefaultProfile == _selector.Selected;
|
||||||
|
var isDefaultOrCurrentProfilesEnabled = (_manager.DefaultProfile?.Enabled ?? false) || (_selector.Selected?.Enabled ?? false);
|
||||||
|
using (ImRaii.Disabled(isDefaultOrCurrentProfilesEnabled))
|
||||||
|
{
|
||||||
|
if (ImGui.Checkbox("##DefaultProfile", ref isDefault))
|
||||||
|
_manager.SetDefaultProfile(isDefault ? _selector.Selected! : null);
|
||||||
|
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. This setting cannot be applied to multiple profiles.");
|
||||||
|
}
|
||||||
|
if (isDefaultOrCurrentProfilesEnabled)
|
||||||
|
{
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.PushStyleColor(ImGuiCol.Text, Constants.Colors.Warning);
|
||||||
|
ImGuiUtil.PrintIcon(FontAwesomeIcon.ExclamationTriangle);
|
||||||
|
ImGui.PopStyleColor();
|
||||||
|
ImGuiUtil.HoverTooltip("Can only be changed when both currently selected and profile where this checkbox is checked are disabled.");
|
||||||
|
}
|
||||||
|
|
||||||
//ImGui.SameLine();
|
//ImGui.SameLine();
|
||||||
var enabled = _selector.Selected?.LimitLookupToOwnedObjects ?? false;
|
var enabled = _selector.Selected?.LimitLookupToOwnedObjects ?? false;
|
||||||
@@ -304,9 +310,6 @@ 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