mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 21:24:18 +01:00
Use explicit priorities for all internal communication events.
This commit is contained in:
parent
f46daf0f54
commit
fb84b43d69
36 changed files with 681 additions and 384 deletions
26
Penumbra/Communication/PreSettingsPanelDraw.cs
Normal file
26
Penumbra/Communication/PreSettingsPanelDraw.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using Penumbra.Util;
|
||||
|
||||
namespace Penumbra.Communication;
|
||||
|
||||
/// <summary>
|
||||
/// Triggered before the settings panel is drawn.
|
||||
/// <list type="number">
|
||||
/// <item>Parameter is the identifier (directory name) of the currently selected mod. </item>
|
||||
/// </list>
|
||||
/// </summary>
|
||||
public sealed class PreSettingsPanelDraw : EventWrapper<Action<string>, PreSettingsPanelDraw.Priority>
|
||||
{
|
||||
public enum Priority
|
||||
{
|
||||
/// <seealso cref="Api.PenumbraApi.PreSettingsPanelDraw"/>
|
||||
Default = 0,
|
||||
}
|
||||
|
||||
public PreSettingsPanelDraw()
|
||||
: base(nameof(PreSettingsPanelDraw))
|
||||
{ }
|
||||
|
||||
public void Invoke(string modDirectory)
|
||||
=> Invoke(this, modDirectory);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue