Table of Contents

Method ConfirmModal

Namespace
OpenEphys.EphysVisualization.Design
Assembly
OpenEphys.EphysVisualization.Design.dll

ConfirmModal(string, string, string, string)

Draws the modal popup identified by id if it's currently open (via OpenPopup(string)), showing message above an accept/decline button pair. Call every frame regardless of whether the popup is open; it draws nothing otherwise.

public static ModalChoice ConfirmModal(string id, string message, string acceptLabel = "Continue", string declineLabel = "Cancel")

Parameters

id string

The popup's ImGui identifier, as passed to OpenPopup(string).

message string

The message shown above the buttons.

acceptLabel string

The accept button's label.

declineLabel string

The decline button's label.

Returns

ModalChoice

The button chosen this frame, or Pending.