Skip to content

MessageBox

Benedikt Hensen edited this page Nov 27, 2018 · 3 revisions

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.

Icons

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.

See also

  • Button Template: Description of the button template which is the basis for buttons on the menus
  • Buttons: Description of the different implemented buttons
Clone this wiki locally