mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 20:24:17 +01:00
Allow re-duplicating/normalizing even with no duplicates by hotkey.
This commit is contained in:
parent
3391a8ce71
commit
4435bb035a
1 changed files with 6 additions and 1 deletions
|
|
@ -293,7 +293,12 @@ public partial class ModEditWindow : Window, IDisposable
|
||||||
const string desc = "Tries to create a unique copy of a file for every game path manipulated and put them in [Groupname]/[Optionname]/[GamePath] order.\n"
|
const string desc = "Tries to create a unique copy of a file for every game path manipulated and put them in [Groupname]/[Optionname]/[GamePath] order.\n"
|
||||||
+ "This will also delete all unused files and directories if it succeeds.\n"
|
+ "This will also delete all unused files and directories if it succeeds.\n"
|
||||||
+ "Care was taken that a failure should not destroy the mod but revert to its original state, but you use this at your own risk anyway.";
|
+ "Care was taken that a failure should not destroy the mod but revert to its original state, but you use this at your own risk anyway.";
|
||||||
if( ImGuiUtil.DrawDisabledButton( "Re-Duplicate and Normalize Mod", Vector2.Zero, desc, !_allowReduplicate ) )
|
|
||||||
|
var modifier = Penumbra.Config.DeleteModModifier.IsActive();
|
||||||
|
|
||||||
|
var tt = _allowReduplicate ? desc : modifier ? desc : desc + $"\n\nNo duplicates detected! Hold {Penumbra.Config.DeleteModModifier} to force normalization anyway.";
|
||||||
|
|
||||||
|
if( ImGuiUtil.DrawDisabledButton( "Re-Duplicate and Normalize Mod", Vector2.Zero, tt, !_allowReduplicate && !modifier ) )
|
||||||
{
|
{
|
||||||
_mod!.Normalize( Penumbra.ModManager );
|
_mod!.Normalize( Penumbra.ModManager );
|
||||||
_editor.RevertFiles();
|
_editor.RevertFiles();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue