mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +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();
|
var labelMax = ImGui.GetItemRectMax();
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
// Ensure height and distance to label.
|
// Ensure height and distance to label.
|
||||||
ImGui.Dummy( Vector2.UnitX * ( frameHeight + itemSpacing.Y ) );
|
ImGui.Dummy( Vector2.UnitY * ( frameHeight + itemSpacing.Y ) );
|
||||||
|
|
||||||
ImGui.BeginGroup(); // Fourth Group.
|
ImGui.BeginGroup(); // Fourth Group.
|
||||||
|
|
||||||
|
|
@ -106,7 +106,7 @@ namespace Penumbra.UI.Custom
|
||||||
// Ensure right distance.
|
// Ensure right distance.
|
||||||
ImGui.Dummy( halfFrameHeight );
|
ImGui.Dummy( halfFrameHeight );
|
||||||
// Ensure bottom distance
|
// Ensure bottom distance
|
||||||
ImGui.Dummy( Vector2.UnitX * ( frameHeight / 2 - itemSpacing.Y ) );
|
ImGui.Dummy( Vector2.UnitY * ( frameHeight / 2 - itemSpacing.Y ) );
|
||||||
ImGui.EndGroup(); // Close second group
|
ImGui.EndGroup(); // Close second group
|
||||||
|
|
||||||
var itemMin = ImGui.GetItemRectMin();
|
var itemMin = ImGui.GetItemRectMin();
|
||||||
|
|
|
||||||
|
|
@ -110,14 +110,12 @@ namespace Penumbra.UI
|
||||||
private ImGuiRaii.EndStack DrawMultiSelectorEditBegin( OptionGroup group )
|
private ImGuiRaii.EndStack DrawMultiSelectorEditBegin( OptionGroup group )
|
||||||
{
|
{
|
||||||
var groupName = group.GroupName;
|
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 );
|
return ImGuiRaii.DeferredEnd( ImGuiCustom.EndFramedGroup );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue