-
Notifications
You must be signed in to change notification settings - Fork 0
MessageBox
The message boxes display text messages to the user.
There are four options for MessageBoxType
: INFORMATION, WARNING, ERROR, SUCCESS
.
They differ in the type of icon which is instantiated.
The message box 3D objects is saved as a prefab in the resource folder in order to instantiate it by code.
The attached script provides a static method Show(string message, MessageBoxType type)
in order to display the message box to the user.
The message box has a Window
component. Thus it is manipulated by the WindowManager
.
According to the type of the message box, an icon is displayed. The icons are animated 3D objects which are instantiated using the icon hook on the message box's game object. Its animation is played once and is handeled by the corresponding AnimationController. The icon 3D files are saved as prefabs in the resource folders.
- Button Template: Description of the button template which is the basis for buttons on the menus
- Buttons: Description of the different implemented buttons