Add blocking options to syncshell ui user menu as well

This commit is contained in:
Loporrit
2025-08-23 09:44:52 +00:00
parent 1768d68df2
commit 7a2d4a5978
2 changed files with 104 additions and 43 deletions

View File

@@ -344,6 +344,7 @@ public class DrawGroupPair : DrawPairBase
ImGui.CloseCurrentPopup();
}
}
if (!_pair.IsPaused)
{
if (_uiSharedService.IconTextButton(FontAwesomeIcon.User, "Open Profile"))
@@ -352,6 +353,22 @@ public class DrawGroupPair : DrawPairBase
ImGui.CloseCurrentPopup();
}
}
bool isBlocked = _pair.IsApplicationBlocked;
bool isBlacklisted = _pair.IsBlacklisted;
bool isWhitelisted = _pair.IsWhitelisted;
if (!isBlocked && !isBlacklisted)
{
if (_uiSharedService.IconTextButton(FontAwesomeIcon.EyeSlash, "Block Modded Appearance"))
_pair.IsBlacklisted = true;
}
else if (isBlacklisted)
{
if (_uiSharedService.IconTextButton(FontAwesomeIcon.ThumbsUp, "Remove from Blacklist"))
_pair.IsBlacklisted = false;
}
if (_pair.IsVisible)
{
#if DEBUG