Add a configuration to disable showing mods in the lobby and at the aesthetician.

This commit is contained in:
Ottermandias 2024-06-11 16:32:29 +02:00
parent c8ea33f8dd
commit 447735f609
3 changed files with 17 additions and 0 deletions

View file

@ -1,6 +1,7 @@
using Dalamud.Plugin.Services;
using FFXIVClientStructs.FFXIV.Client.Graphics.Scene;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using Microsoft.VisualBasic;
using OtterGui.Services;
using Penumbra.Collections;
using Penumbra.Collections.Manager;
@ -110,6 +111,12 @@ public sealed unsafe class CollectionResolver(
return false;
}
if (!config.ShowModsInLobby)
{
ret = ModCollection.Empty.ToResolveData(gameObject);
return true;
}
var notYetReady = false;
var lobby = AgentLobby.Instance();
if (lobby != null)
@ -148,6 +155,12 @@ public sealed unsafe class CollectionResolver(
return false;
}
if (!config.ShowModsInLobby)
{
ret = ModCollection.Empty.ToResolveData(gameObject);
return true;
}
var player = actors.GetCurrentPlayer();
var notYetReady = false;
var collection = (player.IsValid ? CollectionByIdentifier(player) : null)