rework creation of popout windows into factory and some refactoring in general
This commit is contained in:
@@ -99,10 +99,7 @@ public abstract class DrawFolderBase : IDrawFolder
|
||||
}
|
||||
if (ImGui.BeginPopup("User Flyout Menu"))
|
||||
{
|
||||
UiSharedService.DrawWithID($"buttons-{_id}", () =>
|
||||
{
|
||||
DrawMenu(_menuWidth);
|
||||
});
|
||||
using (ImRaii.PushId($"buttons-{_id}")) DrawMenu(_menuWidth);
|
||||
_menuWidth = ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X;
|
||||
ImGui.EndPopup();
|
||||
}
|
||||
|
||||
@@ -408,7 +408,7 @@ public class DrawUserPair
|
||||
}
|
||||
if (ImGui.BeginPopup("User Flyout Menu"))
|
||||
{
|
||||
UiSharedService.DrawWithID($"buttons-{_pair.UserData.UID}", () =>
|
||||
using (ImRaii.PushId($"buttons-{_pair.UserData.UID}"))
|
||||
{
|
||||
ImGui.TextUnformatted("Common Pair Functions");
|
||||
DrawCommonClientMenu();
|
||||
@@ -418,7 +418,7 @@ public class DrawUserPair
|
||||
{
|
||||
_menuRenderWidth = ImGui.GetWindowContentRegionMax().X - ImGui.GetWindowContentRegionMin().X;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ImGui.EndPopup();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Interface.Components;
|
||||
using Dalamud.Interface.Utility;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using Dalamud.Utility;
|
||||
using ImGuiNET;
|
||||
using MareSynchronos.PlayerData.Pairs;
|
||||
@@ -66,7 +67,7 @@ public class SelectTagForPairUi
|
||||
{
|
||||
foreach (var tag in tags)
|
||||
{
|
||||
UiSharedService.DrawWithID($"groups-pair-{_pair.UserData.UID}-{tag}", () => DrawGroupName(_pair, tag));
|
||||
using (ImRaii.PushId($"groups-pair-{_pair.UserData.UID}-{tag}")) DrawGroupName(_pair, tag);
|
||||
}
|
||||
ImGui.EndChild();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user