Abstract alert message controls. More...
Public Member Functions | |
abstract void | SetMessage (string message, float duration) |
Sets the message text of an alert. More... | |
virtual void | ShowMessage (string message, float duration) |
Sets the GUI controls and shows a message. More... | |
Public Member Functions inherited from PixelCrushers.DialogueSystem.AbstractUIControls | |
abstract void | SetActive (bool value) |
Sets the controls active/inactive. More... | |
void | Show () |
Shows the controls by setting them active. More... | |
void | Hide () |
Hides the controls by setting them inactive. More... | |
Protected Attributes | |
float | alertDoneTime = 0 |
Properties | |
abstract bool | IsVisible [get] |
Gets a value indicating whether an alert is visible. More... | |
virtual bool | IsDone [get] |
Has the duration passed for the currently-showing alert? More... | |
Abstract alert message controls.
Each GUI system implementation derives its own subclass from this.
|
pure virtual |
Sets the message text of an alert.
message | Message. |
duration | Duration that message will be shown. Used by subclasses to set up fade durations. |
Implemented in PixelCrushers.DialogueSystem.UnityUIAlertControls, PixelCrushers.DialogueSystem.TextMeshPro.TextMeshProAlertControls, PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeAlertControls, PixelCrushers.DialogueSystem.TK2D.TK2DAlertControls, PixelCrushers.DialogueSystem.NGUI.NGUIAlertControls, and PixelCrushers.DialogueSystem.UnityGUI.UnityAlertControls.
|
virtual |
Sets the GUI controls and shows a message.
message | Message to show. |
duration | Duration in seconds. |
|
protected |
|
get |
Has the duration passed for the currently-showing alert?
true
if done; otherwise, false
.
|
get |
Gets a value indicating whether an alert is visible.
true
if visible; otherwise, false
.