mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-22 07:47:48 +01:00
Add a configuration to disable showing mods in the lobby and at the aesthetician.
This commit is contained in:
parent
c8ea33f8dd
commit
447735f609
3 changed files with 17 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue