ConfirmPopupPanel
A class in Root.Township, Alta.Meta.UI.
Client: menu popup with a message and confirm and cancel buttons. Call Setup with the text and callbacks, then show it; it hides itself after either button.
- Listed in Menus, UI and platforms
- Inherits or implements
Panel
Constructors
| Member | What it is |
|---|---|
ConfirmPopupPanel() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private Action cancelAction | Callback run on cancel. Cleared when the cancel button is hidden. |
private Button cancelButton | The cancel button. |
private Action confirmAction | Callback run on confirm. |
private Button confirmButton | The confirm button. |
private TextRenderer messageText | Text showing the popup's message. |
Events
| Member | What it is |
|---|---|
event Action<ConfirmPopupPanel> Cancelled | Raised after the cancel button runs its callback. |
event Action<ConfirmPopupPanel> Confirmed | Raised after the confirm button runs its callback. |
Methods
2 private and internal methods
Used in
Members of other types that take, return or hold a ConfirmPopupPanel: