add show notes instead of names
This commit is contained in:
@@ -27,6 +27,7 @@ public class MareConfig : IMareConfiguration
|
|||||||
public bool ProfilesShow { get; set; } = true;
|
public bool ProfilesShow { get; set; } = true;
|
||||||
public bool ReverseUserSort { get; set; } = false;
|
public bool ReverseUserSort { get; set; } = false;
|
||||||
public bool ShowCharacterNameInsteadOfNotesForVisible { get; set; } = false;
|
public bool ShowCharacterNameInsteadOfNotesForVisible { get; set; } = false;
|
||||||
|
public bool PreferNotesOverNamesForVisible { get; set; } = false;
|
||||||
public bool ShowOfflineUsersSeparately { get; set; } = true;
|
public bool ShowOfflineUsersSeparately { get; set; } = true;
|
||||||
public bool ShowOnlineNotifications { get; set; } = false;
|
public bool ShowOnlineNotifications { get; set; } = false;
|
||||||
public bool ShowOnlineNotificationsOnlyForIndividualPairs { get; set; } = true;
|
public bool ShowOnlineNotificationsOnlyForIndividualPairs { get; set; } = true;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.8.25</Version>
|
<Version>0.8.26</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ public class CompactUi : WindowMediatorSubscriberBase
|
|||||||
var users = GetFilteredUsers()
|
var users = GetFilteredUsers()
|
||||||
.OrderBy(
|
.OrderBy(
|
||||||
u => _configService.Current.ShowCharacterNameInsteadOfNotesForVisible && !string.IsNullOrEmpty(u.PlayerName)
|
u => _configService.Current.ShowCharacterNameInsteadOfNotesForVisible && !string.IsNullOrEmpty(u.PlayerName)
|
||||||
? u.PlayerName
|
? (_configService.Current.PreferNotesOverNamesForVisible ? u.GetNote() : u.PlayerName)
|
||||||
: (u.GetNote() ?? u.UserData.AliasOrUID), StringComparer.OrdinalIgnoreCase).ToList();
|
: (u.GetNote() ?? u.UserData.AliasOrUID), StringComparer.OrdinalIgnoreCase).ToList();
|
||||||
|
|
||||||
if (_configService.Current.ReverseUserSort)
|
if (_configService.Current.ReverseUserSort)
|
||||||
|
|||||||
@@ -142,6 +142,14 @@ public class UidDisplayHandler
|
|||||||
{
|
{
|
||||||
playerText = pair.PlayerName;
|
playerText = pair.PlayerName;
|
||||||
textIsUid = false;
|
textIsUid = false;
|
||||||
|
if (_mareConfigService.Current.PreferNotesOverNamesForVisible)
|
||||||
|
{
|
||||||
|
var note = pair.GetNote();
|
||||||
|
if (note != null)
|
||||||
|
{
|
||||||
|
playerText = note;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (textIsUid, playerText!);
|
return (textIsUid, playerText!);
|
||||||
|
|||||||
@@ -516,6 +516,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
var profileDelay = _configService.Current.ProfileDelay;
|
var profileDelay = _configService.Current.ProfileDelay;
|
||||||
var profileOnRight = _configService.Current.ProfilePopoutRight;
|
var profileOnRight = _configService.Current.ProfilePopoutRight;
|
||||||
var enableRightClickMenu = _configService.Current.EnableRightClickMenus;
|
var enableRightClickMenu = _configService.Current.EnableRightClickMenus;
|
||||||
|
var preferNotesInsteadOfName = _configService.Current.PreferNotesOverNamesForVisible;
|
||||||
|
|
||||||
if (ImGui.Checkbox("Enable Game Right Click Menu Entries", ref enableRightClickMenu))
|
if (ImGui.Checkbox("Enable Game Right Click Menu Entries", ref enableRightClickMenu))
|
||||||
{
|
{
|
||||||
@@ -538,13 +539,24 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||||||
}
|
}
|
||||||
UiSharedService.DrawHelpText("This will show all currently offline users in a special 'Offline' group in the main UI.");
|
UiSharedService.DrawHelpText("This will show all currently offline users in a special 'Offline' group in the main UI.");
|
||||||
|
|
||||||
if (ImGui.Checkbox("Show player name instead of note for visible players", ref showNameInsteadOfNotes))
|
if (ImGui.Checkbox("Show player name for visible players", ref showNameInsteadOfNotes))
|
||||||
{
|
{
|
||||||
_configService.Current.ShowCharacterNameInsteadOfNotesForVisible = showNameInsteadOfNotes;
|
_configService.Current.ShowCharacterNameInsteadOfNotesForVisible = showNameInsteadOfNotes;
|
||||||
_configService.Save();
|
_configService.Save();
|
||||||
}
|
}
|
||||||
UiSharedService.DrawHelpText("This will show the character name instead of custom set note when a character is visible");
|
UiSharedService.DrawHelpText("This will show the character name instead of custom set note when a character is visible");
|
||||||
|
|
||||||
|
ImGui.Indent();
|
||||||
|
if (!_configService.Current.ShowCharacterNameInsteadOfNotesForVisible) ImGui.BeginDisabled();
|
||||||
|
if (ImGui.Checkbox("Prefer notes over player names for visible players", ref preferNotesInsteadOfName))
|
||||||
|
{
|
||||||
|
_configService.Current.PreferNotesOverNamesForVisible = preferNotesInsteadOfName;
|
||||||
|
_configService.Save();
|
||||||
|
}
|
||||||
|
UiSharedService.DrawHelpText("If you set a note for a player it will be shown instead of the player name");
|
||||||
|
if (!_configService.Current.ShowCharacterNameInsteadOfNotesForVisible) ImGui.EndDisabled();
|
||||||
|
ImGui.Unindent();
|
||||||
|
|
||||||
if (ImGui.Checkbox("Show Mare Profiles on Hover", ref showProfiles))
|
if (ImGui.Checkbox("Show Mare Profiles on Hover", ref showProfiles))
|
||||||
{
|
{
|
||||||
Mediator.Publish(new ClearProfileDataMessage());
|
Mediator.Publish(new ClearProfileDataMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user