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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user