mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Add even more setting changed events and add auto-player-redraw on saving files.
This commit is contained in:
parent
883580d465
commit
7b0be25f6e
17 changed files with 221 additions and 99 deletions
28
Penumbra/Communication/ModFileChanged.cs
Normal file
28
Penumbra/Communication/ModFileChanged.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using OtterGui.Classes;
|
||||
using Penumbra.Api;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.Mods.Editor;
|
||||
|
||||
namespace Penumbra.Communication;
|
||||
|
||||
/// <summary>
|
||||
/// Triggered whenever an existing file in a mod is overwritten by Penumbra.
|
||||
/// <list type="number">
|
||||
/// <item>Parameter is the changed mod. </item>
|
||||
/// <item>Parameter file registry of the changed file. </item>
|
||||
/// </list> </summary>
|
||||
public sealed class ModFileChanged()
|
||||
: EventWrapper<Mod, FileRegistry, ModFileChanged.Priority>(nameof(ModFileChanged))
|
||||
{
|
||||
public enum Priority
|
||||
{
|
||||
/// <seealso cref="PenumbraApi.OnModFileChanged"/>
|
||||
Api = int.MinValue,
|
||||
|
||||
/// <seealso cref="Interop.Services.RedrawService.OnModFileChanged"/>
|
||||
RedrawService = -50,
|
||||
|
||||
/// <seealso cref="Collections.Manager.CollectionStorage.OnModFileChanged"/>
|
||||
CollectionStorage = 0,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue