Skip to content

Commit

Permalink
Add Page to mod group data for TT interop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Sep 8, 2024
1 parent 1b17404 commit 22cbecc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
23 changes: 15 additions & 8 deletions Penumbra/Mods/Groups/IModGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,21 @@ public interface IModGroup
{
public const int MaxMultiOptions = 32;

public Mod Mod { get; }
public string Name { get; set; }
public string Description { get; set; }
public string Image { get; set; }
public GroupType Type { get; }
public GroupDrawBehaviour Behaviour { get; }
public ModPriority Priority { get; set; }
public Setting DefaultSettings { get; set; }
public Mod Mod { get; }
public string Name { get; set; }
public string Description { get; set; }

/// <summary> Unused in Penumbra but for better TexTools interop. </summary>
public string Image { get; set; }

public GroupType Type { get; }
public GroupDrawBehaviour Behaviour { get; }
public ModPriority Priority { get; set; }

/// <summary> Unused in Penumbra but for better TexTools interop. </summary>
public int Page { get; set; }

public Setting DefaultSettings { get; set; }

public FullPath? FindBestMatch(Utf8GamePath gamePath);
public IModOption? AddOption(string name, string description = "");
Expand Down
1 change: 1 addition & 0 deletions Penumbra/Mods/Groups/ImcModGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public GroupDrawBehaviour Behaviour
=> GroupDrawBehaviour.MultiSelection;

public ModPriority Priority { get; set; } = ModPriority.Default;
public int Page { get; set; }
public Setting DefaultSettings { get; set; } = Setting.Zero;

public ImcIdentifier Identifier;
Expand Down
1 change: 1 addition & 0 deletions Penumbra/Mods/Groups/MultiModGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public GroupDrawBehaviour Behaviour
public string Description { get; set; } = string.Empty;
public string Image { get; set; } = string.Empty;
public ModPriority Priority { get; set; }
public int Page { get; set; }
public Setting DefaultSettings { get; set; }
public readonly List<MultiSubMod> OptionData = [];

Expand Down
1 change: 1 addition & 0 deletions Penumbra/Mods/Groups/SingleModGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public GroupDrawBehaviour Behaviour
public string Description { get; set; } = string.Empty;
public string Image { get; set; } = string.Empty;
public ModPriority Priority { get; set; }
public int Page { get; set; }
public Setting DefaultSettings { get; set; }

public readonly List<SingleSubMod> OptionData = [];
Expand Down

0 comments on commit 22cbecc

Please sign in to comment.