Exemplo n.º 1
0
        public unsafe bool Draw()
        {
            ImGui.OpenPopup(Name);

            if (ImGuiExtension.BeginPopupModalNullableOpen(Name, ref Open, ImGuiWindowFlags.AlwaysAutoResize))
            {
                DrawContents();

                ImGui.EndPopup();
            }

            if ((Open != null) && !(bool)Open)
            {
                Default();
            }

            return(ImGui.IsPopupOpen(Name));
        }