mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-24 01:19:22 +01:00
Add option for redraw bar.
This commit is contained in:
parent
819264045b
commit
8d48fcff42
4 changed files with 16 additions and 2 deletions
|
|
@ -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() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue