Click or drag to resize

MessageWindow Class

A pre-made Window for showing general game messages.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Kit.UIWindow
            Kit.UI.MessageMessageWindow

Namespace:  Kit.UI.Message
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public class MessageWindow : Window
Request Example View Source

The MessageWindow type exposes the following members.

Properties
  NameDescription
Public propertyData (Overrides WindowData.)
Public propertyMessageInfo
Set or return the display data for this message.
Top
Methods
Fields
  NameDescription
Public fieldAlertSprite
The icon to use for alerts.
Public fieldButtons
References to three Buttons to use for message options.
Public fieldButtonTexts
References to three Texts to that go with the buttons.
Public fieldCloseButton
Reference to the Button that closes the message window.
Public fieldIconImage
The Image to use for showing the icon.
Public fieldInfoSprite
The icon to use for info-boxes.
Public fieldMessageText
The Text to use for showing the message.
Public fieldQuestionSprite
The icon to use for questions.
Public fieldSubtitleSeparator
The object associated with sub-title (optional). Gets hidden if there isn't a subtitle in the message.
Public fieldSubtitleText
The Text to use for showing sub-title (optional).
Public fieldTitleText
The Text to use for showing title.
Top
Extension Methods
  NameDescription
Public Extension MethodDestroy
Destroy the object.
(Defined by UnityObjectExtensions.)
Public Extension MethodDisable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodEnable
Set the enabled property to .
(Defined by BehaviourExtensions.)
Public Extension MethodGetBounds

Returns the bounds of the Component.

(Defined by ComponentExtensions.)
Public Extension MethodIsPrefab
Returns whether the Component is a part of a prefab.
(Defined by ComponentExtensions.)
Top
Examples
MessageWindow.Show(windowPrefab,
        "Quit?", "Are you sure you want to quit the game?",
        MessageType.Question, MessageButtons.YesNo,
        yesAction: Application.Quit);
See Also