mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add toggle to use entire current collection for item swap.
This commit is contained in:
parent
bc3a55eded
commit
fbb8f48e49
1 changed files with 9 additions and 4 deletions
|
|
@ -312,6 +312,11 @@ public class ItemSwapWindow : IDisposable
|
||||||
CreateMod();
|
CreateMod();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ImGui.SameLine();
|
||||||
|
ImGui.SetCursorPosX( ImGui.GetCursorPosX() + 20 * ImGuiHelpers.GlobalScale );
|
||||||
|
ImGui.Checkbox( "Use File Swaps", ref _useFileSwaps );
|
||||||
|
ImGuiUtil.HoverTooltip( "Instead of writing every single non-default file to the newly created mod or option,\n"
|
||||||
|
+ "even those available from game files, use File Swaps to default game files where possible." );
|
||||||
|
|
||||||
ImGui.SetNextItemWidth( ( width - ImGui.GetStyle().ItemSpacing.X ) / 2 );
|
ImGui.SetNextItemWidth( ( width - ImGui.GetStyle().ItemSpacing.X ) / 2 );
|
||||||
if( ImGui.InputTextWithHint( "##groupName", "Group Name...", ref _newGroupName, 32 ) )
|
if( ImGui.InputTextWithHint( "##groupName", "Group Name...", ref _newGroupName, 32 ) )
|
||||||
|
|
@ -338,10 +343,10 @@ public class ItemSwapWindow : IDisposable
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
var newPos = new Vector2( ImGui.GetCursorPosX() + 10 * ImGuiHelpers.GlobalScale, ImGui.GetCursorPosY() - ( ImGui.GetFrameHeight() + ImGui.GetStyle().ItemSpacing.Y ) / 2 );
|
ImGui.SetCursorPosX( ImGui.GetCursorPosX() + 20 * ImGuiHelpers.GlobalScale );
|
||||||
ImGui.SetCursorPos( newPos );
|
_dirty |= ImGui.Checkbox( "Use Entire Collection", ref _useCurrentCollection );
|
||||||
ImGui.Checkbox( "Use File Swaps", ref _useFileSwaps );
|
ImGuiUtil.HoverTooltip( "Use all applied mods from the Selected Collection with their current settings and respecting the enabled state of mods and inheritance,\n"
|
||||||
ImGuiUtil.HoverTooltip( "Use File Swaps." );
|
+ "instead of using only the selected mod with its current settings in the Selected collection or the default settings, ignoring the enabled state and inheritance." );
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DrawSwapBar()
|
private void DrawSwapBar()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue