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
idstringThe popup's ImGui identifier, as passed to OpenPopup(string).
messagestringThe message shown above the buttons.
acceptLabelstringThe accept button's label.
declineLabelstringThe decline button's label.
Returns
- ModalChoice
The button chosen this frame, or Pending.