Several UI enhancements
+ Added paused user field to main UI + Excluded paused users from online list + Excluded visible users from online list + Fixed an issue where remotely paused users would always show offline + Ensured paused users returns true if EITHER client OR remote paused them. + Made paused users show as Grey + Changed paired icon from check to snowflake + Fixed a bug where clients would have icons for both paired AND visible simultaneously + Fixed a bug where clients would show both online AND visible unnecessarily. + Made paused users render just above offline users. + Changed default ui icon from SS to Snowflake/Flower thingy.
This commit is contained in:
@@ -52,23 +52,24 @@ public class DrawUserPair : DrawPairBase
|
||||
{
|
||||
connectionIcon = FontAwesomeIcon.PauseCircle;
|
||||
connectionText = "Pairing status with " + _pair.UserData.AliasOrUID + " is paused";
|
||||
connectionColor = ImGuiColors.DalamudYellow;
|
||||
connectionColor = ImGuiColors.DalamudGrey;
|
||||
}
|
||||
else
|
||||
{
|
||||
connectionIcon = FontAwesomeIcon.Check;
|
||||
connectionIcon = FontAwesomeIcon.Snowflake;
|
||||
connectionText = "You are paired with " + _pair.UserData.AliasOrUID;
|
||||
connectionColor = ImGuiColors.ParsedGreen;
|
||||
connectionColor = _pair.IsOnline ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudGrey;
|
||||
}
|
||||
if (!_pair.IsVisible)
|
||||
{
|
||||
ImGui.SetCursorPosY(textPosY);
|
||||
ImGui.PushFont(UiBuilder.IconFont);
|
||||
UiSharedService.ColorText(connectionIcon.ToIconString(), connectionColor);
|
||||
ImGui.PopFont();
|
||||
UiSharedService.AttachToolTip(connectionText);
|
||||
}
|
||||
|
||||
ImGui.SetCursorPosY(textPosY);
|
||||
ImGui.PushFont(UiBuilder.IconFont);
|
||||
UiSharedService.ColorText(connectionIcon.ToIconString(), connectionColor);
|
||||
ImGui.PopFont();
|
||||
UiSharedService.AttachToolTip(connectionText);
|
||||
if (_pair is { IsOnline: true, IsVisible: true })
|
||||
{
|
||||
ImGui.SameLine();
|
||||
ImGui.SetCursorPosY(textPosY);
|
||||
ImGui.PushFont(UiBuilder.IconFont);
|
||||
UiSharedService.ColorText(FontAwesomeIcon.Eye.ToIconString(), ImGuiColors.ParsedGreen);
|
||||
|
Reference in New Issue
Block a user