Add option for redraw bar.

This commit is contained in:
Ottermandias 2022-09-22 15:31:18 +02:00
parent 819264045b
commit 8d48fcff42
4 changed files with 16 additions and 2 deletions

View file

@ -39,6 +39,8 @@ public partial class Configuration : IPluginConfiguration
public bool PreferNamedCollectionsOverOwners { get; set; } = true; public bool PreferNamedCollectionsOverOwners { get; set; } = true;
public bool UseDefaultCollectionForRetainers { get; set; } = false; public bool UseDefaultCollectionForRetainers { get; set; } = false;
public bool HideRedrawBar { get; set; } = false;
#if DEBUG #if DEBUG
public bool DebugMode { get; set; } = true; public bool DebugMode { get; set; } = true;
#else #else

View file

@ -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 ) "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 ) .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 ) .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( .RegisterEntry(
"Added buttons for redrawing self or all as well as a tooltip to describe redraw options and a tutorial step for it." ) "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( "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 an issue with Actor 201 using Your Character collections in cutscenes." )
.RegisterEntry( "Fixed issues with and improved mod option editing." ) .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( "Backend optimizations." )
.RegisterEntry( "Changed metadata change system again.", 1 ) .RegisterEntry( "Changed metadata change system again.", 1 )
.RegisterEntry( "Improved logging efficiency.", 1 ); .RegisterEntry( "Improved logging efficiency.", 1 );

View file

@ -37,8 +37,8 @@ public partial class ConfigWindow
using var style = ImRaii.PushStyle( ImGuiStyleVar.ItemSpacing, Vector2.Zero ); using var style = ImRaii.PushStyle( ImGuiStyleVar.ItemSpacing, Vector2.Zero );
using( var child = ImRaii.Child( "##ModsTabMod", new Vector2( -1, -ImGui.GetFrameHeight() ), true, using( var child = ImRaii.Child( "##ModsTabMod", new Vector2( -1, Penumbra.Config.HideRedrawBar ? 0 : -ImGui.GetFrameHeight() ),
ImGuiWindowFlags.HorizontalScrollbar ) ) true, ImGuiWindowFlags.HorizontalScrollbar ) )
{ {
style.Pop(); style.Pop();
if( child ) if( child )
@ -68,6 +68,11 @@ public partial class ConfigWindow
private void DrawRedrawLine() private void DrawRedrawLine()
{ {
if( Penumbra.Config.HideRedrawBar )
{
return;
}
var frameHeight = new Vector2( 0, ImGui.GetFrameHeight() ); var frameHeight = new Vector2( 0, ImGui.GetFrameHeight() );
var frameColor = ImGui.GetColorU32( ImGuiCol.FrameBg ); var frameColor = ImGui.GetColorU32( ImGuiCol.FrameBg );
using( var _ = ImRaii.Group() ) using( var _ = ImRaii.Group() )

View file

@ -59,6 +59,9 @@ public partial class ConfigWindow
Dalamud.PluginInterface.UiBuilder.DisableGposeUiHide = !v; Dalamud.PluginInterface.UiBuilder.DisableGposeUiHide = !v;
} ); } );
ImGui.Dummy( _window._defaultSpace ); 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", 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.", "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 ); Penumbra.Config.UseCharacterCollectionInMainWindow, v => Penumbra.Config.UseCharacterCollectionInMainWindow = v );