mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix display of multi options in regular and edit mode.
This commit is contained in:
parent
d59869dbfe
commit
6ccbd6d918
2 changed files with 7 additions and 9 deletions
|
|
@ -64,7 +64,7 @@ namespace Penumbra.UI.Custom
|
|||
var labelMax = ImGui.GetItemRectMax();
|
||||
ImGui.SameLine();
|
||||
// Ensure height and distance to label.
|
||||
ImGui.Dummy( Vector2.UnitX * ( frameHeight + itemSpacing.Y ) );
|
||||
ImGui.Dummy( Vector2.UnitY * ( frameHeight + itemSpacing.Y ) );
|
||||
|
||||
ImGui.BeginGroup(); // Fourth Group.
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ namespace Penumbra.UI.Custom
|
|||
// Ensure right distance.
|
||||
ImGui.Dummy( halfFrameHeight );
|
||||
// Ensure bottom distance
|
||||
ImGui.Dummy( Vector2.UnitX * ( frameHeight / 2 - itemSpacing.Y ) );
|
||||
ImGui.Dummy( Vector2.UnitY * ( frameHeight / 2 - itemSpacing.Y ) );
|
||||
ImGui.EndGroup(); // Close second group
|
||||
|
||||
var itemMin = ImGui.GetItemRectMin();
|
||||
|
|
|
|||
|
|
@ -110,14 +110,12 @@ namespace Penumbra.UI
|
|||
private ImGuiRaii.EndStack DrawMultiSelectorEditBegin( OptionGroup group )
|
||||
{
|
||||
var groupName = group.GroupName;
|
||||
if( !ImGuiCustom.BeginFramedGroupEdit( ref groupName ) )
|
||||
if( ImGuiCustom.BeginFramedGroupEdit( ref groupName ) )
|
||||
{
|
||||
return new ImGuiRaii.EndStack();
|
||||
}
|
||||
|
||||
if( _modManager.ChangeModGroup( group.GroupName, groupName, Mod.Data ) && Mod.Data.Meta.RefreshHasGroupsWithConfig() )
|
||||
{
|
||||
_selector.Cache.TriggerFilterReset();
|
||||
if( _modManager.ChangeModGroup( group.GroupName, groupName, Mod.Data ) && Mod.Data.Meta.RefreshHasGroupsWithConfig() )
|
||||
{
|
||||
_selector.Cache.TriggerFilterReset();
|
||||
}
|
||||
}
|
||||
|
||||
return ImGuiRaii.DeferredEnd( ImGuiCustom.EndFramedGroup );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue