From 8d48fcff423a031b667cb600c2c0ade4b2d2e6e9 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Thu, 22 Sep 2022 15:31:18 +0200 Subject: [PATCH] Add option for redraw bar. --- Penumbra/Configuration.cs | 2 ++ Penumbra/UI/ConfigWindow.Changelog.cs | 4 ++++ Penumbra/UI/ConfigWindow.ModsTab.cs | 9 +++++++-- Penumbra/UI/ConfigWindow.SettingsTab.General.cs | 3 +++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Penumbra/Configuration.cs b/Penumbra/Configuration.cs index bd4231b9..0da4ca5e 100644 --- a/Penumbra/Configuration.cs +++ b/Penumbra/Configuration.cs @@ -39,6 +39,8 @@ public partial class Configuration : IPluginConfiguration public bool PreferNamedCollectionsOverOwners { get; set; } = true; public bool UseDefaultCollectionForRetainers { get; set; } = false; + public bool HideRedrawBar { get; set; } = false; + #if DEBUG public bool DebugMode { get; set; } = true; #else diff --git a/Penumbra/UI/ConfigWindow.Changelog.cs b/Penumbra/UI/ConfigWindow.Changelog.cs index 013e7357..5805cb30 100644 --- a/Penumbra/UI/ConfigWindow.Changelog.cs +++ b/Penumbra/UI/ConfigWindow.Changelog.cs @@ -33,11 +33,15 @@ public partial class ConfigWindow "Migration should have set your currently assigned Base Collection to the Interface Collection, please verify that.", 1 ) .RegisterEntry( "New API / IPC for the Interface Collection added.", 1 ) .RegisterHighlight( "API / IPC consumers should verify whether they need to change resolving to the new collection.", 1 ) + .RegisterEntry( "Files that the game loads super early should now be replaceable correctly via base or interface collection." ) + .RegisterEntry( "The 1.0 neck tattoo file should now be replaceable, even in character collections. You can also replace the transparent texture used instead. (This was ugly.)" ) .RegisterEntry( "Added buttons for redrawing self or all as well as a tooltip to describe redraw options and a tutorial step for it." ) .RegisterEntry( "Collection Selectors now display None at the top if available." ) + .RegisterEntry( "Adding mods via API/IPC will now cause them to incorporate and then delete TexTools .meta and .rgsp files automatically." ) .RegisterEntry( "Fixed an issue with Actor 201 using Your Character collections in cutscenes." ) .RegisterEntry( "Fixed issues with and improved mod option editing." ) + .RegisterEntry( "Fixed some issues with and improved file redirection editing - you are now informed if you can not add a game path (because it is invalid or already in use)." ) .RegisterEntry( "Backend optimizations." ) .RegisterEntry( "Changed metadata change system again.", 1 ) .RegisterEntry( "Improved logging efficiency.", 1 ); diff --git a/Penumbra/UI/ConfigWindow.ModsTab.cs b/Penumbra/UI/ConfigWindow.ModsTab.cs index 2a0e193e..35b01d19 100644 --- a/Penumbra/UI/ConfigWindow.ModsTab.cs +++ b/Penumbra/UI/ConfigWindow.ModsTab.cs @@ -37,8 +37,8 @@ public partial class ConfigWindow using var style = ImRaii.PushStyle( ImGuiStyleVar.ItemSpacing, Vector2.Zero ); - using( var child = ImRaii.Child( "##ModsTabMod", new Vector2( -1, -ImGui.GetFrameHeight() ), true, - ImGuiWindowFlags.HorizontalScrollbar ) ) + using( var child = ImRaii.Child( "##ModsTabMod", new Vector2( -1, Penumbra.Config.HideRedrawBar ? 0 : -ImGui.GetFrameHeight() ), + true, ImGuiWindowFlags.HorizontalScrollbar ) ) { style.Pop(); if( child ) @@ -68,6 +68,11 @@ public partial class ConfigWindow private void DrawRedrawLine() { + if( Penumbra.Config.HideRedrawBar ) + { + return; + } + var frameHeight = new Vector2( 0, ImGui.GetFrameHeight() ); var frameColor = ImGui.GetColorU32( ImGuiCol.FrameBg ); using( var _ = ImRaii.Group() ) diff --git a/Penumbra/UI/ConfigWindow.SettingsTab.General.cs b/Penumbra/UI/ConfigWindow.SettingsTab.General.cs index fe9983a6..1e0e0c50 100644 --- a/Penumbra/UI/ConfigWindow.SettingsTab.General.cs +++ b/Penumbra/UI/ConfigWindow.SettingsTab.General.cs @@ -59,6 +59,9 @@ public partial class ConfigWindow Dalamud.PluginInterface.UiBuilder.DisableGposeUiHide = !v; } ); ImGui.Dummy( _window._defaultSpace ); + Checkbox( "Hide Redraw Bar in Mod Panel", "Hides the lower redraw buttons in the mod panel in your Mods tab.", + Penumbra.Config.HideRedrawBar, v => Penumbra.Config.HideRedrawBar = v ); + ImGui.Dummy( _window._defaultSpace ); Checkbox( $"Use {AssignedCollections} in Character Window", "Use the character collection for your characters name or the Your Character collection in your main character window, if it is set.", Penumbra.Config.UseCharacterCollectionInMainWindow, v => Penumbra.Config.UseCharacterCollectionInMainWindow = v );