The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall
UE3:UTUIScene_MessageBox (UDK)
Object >> UIRoot >> UIScreenObject >> UIScene >> UTUIScene >> UTUIScene_MessageBox |
Contents
- 1 Constants
- 2 Properties
- 2.1 Property group 'UTUIScene_MessageBox'
- 2.2 Internal variables
- 2.2.1 BackgroundImage
- 2.2.2 bFullyVisible
- 2.2.3 bHideOnNextTick
- 2.2.4 bRepositionButtons
- 2.2.5 ButtonBar
- 2.2.6 DefaultOptionIdx
- 2.2.7 DisplayTime
- 2.2.8 FadeDirection
- 2.2.9 FadeDuration
- 2.2.10 FadeStartTime
- 2.2.11 MessageLabel
- 2.2.12 MinimumDisplayTime
- 2.2.13 PotentialOptionKeyMappings
- 2.2.14 PotentialOptions
- 2.2.15 PreviouslySelectedOption
- 2.2.16 ScrollWindow
- 2.2.17 SelectingPlayer
- 2.2.18 TitleLabel
- 2.3 Default values
- 2.4 Subobjects
- 3 Structs
- 4 Delegates
- 5 Functions
- 5.1 Native functions
- 5.2 Events
- 5.3 Other instance functions
- 5.3.1 Close
- 5.3.2 Display
- 5.3.3 DisplayAcceptBox
- 5.3.4 DisplayAcceptCancelBox
- 5.3.5 DisplayCancelBox
- 5.3.6 DisplayModalBox
- 5.3.7 FindCancelButtonIndex
- 5.3.8 HandleInputKey
- 5.3.9 OnOptionButton_Clicked
- 5.3.10 OnResolutionChanged
- 5.3.11 OptionSelected
- 5.3.12 SetMessage
- 5.3.13 SetPotentialOptionKeyMappings
- 5.3.14 SetPotentialOptions
- 5.3.15 SetSelectionDelegate
- 5.3.16 SetTitle
- 5.3.17 SetupButtonBar
- Package:
- UTGame
- Direct subclasses:
- UTUIScene_ConnectionStatus, UTUIScene_InputBox
- This class in other games:
- UT3
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Generic Message Box Scene for UT3
Constants
MESSAGEBOX_MAX_POSSIBLE_OPTIONS
Value: 4
CANCEL_BUTTON_MARKUP_STRING
Value: "<Strings:UTGameUI.Generic.Cancel>"
Properties
Property group 'UTUIScene_MessageBox'
bRepositionMessageToCenter
Type: bool
Whether you want the message box's dialog and title to position itself to the center of the screen or not.
Default value: True
Internal variables
BackgroundImage
Type: UIObject
Modifiers: transient
Reference to the owning widget that has all of the content of the message box scene.
bFullyVisible
Type: bool
Modifiers: transient
Whether or not the message box is fully visible.
bHideOnNextTick
Type: bool
Modifiers: transient
Flag that lets the dialog know it should hide itself.
bRepositionButtons
Type: bool
Flag which is used natively to recalculate the dialog button positions
ButtonBar
Type: UTUIButtonBar
Modifiers: transient
References to the scene's buttonbar.
DefaultOptionIdx
Type: int
Modifiers: transient
Index of the option that is selected by default, valid for PC only.
DisplayTime
Type: float
Modifiers: transient
The time the message box was fully displayed.
FadeDirection
Type: int
Modifiers: transient
Direction we are currently fading, positive is fade in, negative is fade out, 0 is not fading.
FadeDuration
Type: float
Modifiers: transient
How long to take to display/hide the message box.
FadeStartTime
Type: float
Modifiers: transient
Time fading started.
MessageLabel
Type: UILabel
Modifiers: transient
Message box message.
MinimumDisplayTime
Type: float
Modifiers: transient
The minimum amount of time to display modal message boxes for.
PotentialOptionKeyMappings
Type: array<PotentialOptionKeys>
Modifiers: transient
PotentialOptions
Modifiers: transient
Array of potential options markup.
PreviouslySelectedOption
Type: int
Modifiers: transient
Stores which option the user selected.
ScrollWindow
Type: UIObject
Modifiers: transient
Reference to the scroll window that holds the message label.
SelectingPlayer
Type: int
Modifiers: transient
Index of the player that selected the option.
TitleLabel
Type: UILabel
Modifiers: transient
Message box title markup.
Default values
Subobjects
WidgetEventComponent
Class: Engine.UIComp_Event
Property | Value |
---|---|
DisabledEventAliases[0] | 'CloseScene' |
Structs
PotentialOptionKeys
Modifiers: native
Arrays of key's that trigger each potential option.
Delegates
OnClosed
Delegate called after the message box has been competely closed.
OnMBInputKey
Delegate to trap any input to the message box.
OnSelection
The user has made a selection of the choices available to them.
Functions
Native functions
BeginHide
Starts hiding the message box.
BeginShow
Starts showing the message box.
Events
Initialized
Overrides: UIScreenObject.Initialized
Called once this screen object has been completely initialized, before it has activated its InitialState or called Initialize on its children. This event is only called the first time a widget is initialized. If reparented, for example, the widget would already be initialized so the Initialized event would not be called.
OnHideComplete
Called when the dialog is finished hiding itself.
OnShowComplete
Called when the dialog has finished showing itself.
PostInitialize
Overrides: UIScreenObject.PostInitialize
Sets delegates for the scene.
Other instance functions
Close
Closes the message box, used for modal message boxes.
Parameters:
- bSimulateCancel - specify TRUE to generate a cancel button press event; otherwise, whichever button is in the last slot (e.g. PotentialOptions[0]) will appear to have been pressed).
- PlayerIndex - the index of the player that generated the close event.
Display
Displays the message box.
Parameters:
- Message - Message for the message box. Should be datastore markup.
- Title - Title for the message box. Should be datastore markup.
- InSelectionDelegate - Delegate to call when the user dismisses the message box.
DisplayAcceptBox
Displays a message box that has the default button layout; useful when you may be reusing the same scene instance
Parameters:
- Message - Message for the message box. Should be datastore markup.
- Title - Title for the message box. Should be datastore markup.
- InSelectionDelegate - Delegate to call when the user dismisses the message box.
DisplayAcceptCancelBox
Displays a message box that has an accept and cancel button.
Parameters:
- Message - Message for the message box. Should be datastore markup.
- Title - Title for the message box. Should be datastore markup.
- InSelectionDelegate - Delegate to call when the user dismisses the message box.
DisplayCancelBox
Displays a message box that has a cancel button only.
Parameters:
- Message - Message for the message box. Should be datastore markup.
- Title - Title for the message box. Should be datastore markup.
- InSelectionDelegate - Delegate to call when the user dismisses the message box.
DisplayModalBox
Displays a message box that has no buttons and must be closed by the scene that opened it.
FindCancelButtonIndex
Determines the index of the button corresponding to the cancel button.
Parameters:
- CancelButtonMarkupString - if a custom markup string was used for the cancel button, it can be specified here; otherwise the default markup string for the cancel button is used.
Returns:
- the index of the button used to cancel this dialog, or INDEX_NONE if a cancel button wasn't found.
HandleInputKey
Provides a hook for unrealscript to respond to input using actual input key names (i.e. Left, Tab, etc.)
Called when an input key event is received which this widget responds to and is in the correct state to process. The keys and states widgets receive input for is managed through the UI editor's key binding dialog (F8).
This delegate is called BEFORE kismet is given a chance to process the input.
Parameters:
- EventParms - information about the input event.
Returns:
- TRUE to indicate that this input key was processed; no further processing will occur on this input key event.
OnOptionButton_Clicked
Callback for the OnClicked event.
Parameters:
- EventObject - Object that issued the event.
- PlayerIndex - Player that performed the action that issued the event.
Returns:
- return TRUE to prevent the kismet OnClick event from firing.
OnResolutionChanged
OptionSelected
Called when a user has chosen one of the possible options available to them. Begins hiding the dialog and calls the On
Parameters:
- OptionIdx - Index of the selection option.
- PlayerIndex - Index of the player that selected the option.
SetMessage
Sets the current message for this messagebox.
Parameters:
- NewMessage - New message for the messagebox.
SetPotentialOptionKeyMappings
Sets the potential option key mappings for a message box, usually this can be left to defaults.
Parameters:
- InPotentialOptions - Potential options the user has to choose from.
- InPotentialOptionsKeyMappings - Button keys that map to the options specified, usually this can be left to defaults.
SetPotentialOptions
Sets the potential options for a message box.
Parameters:
- InPotentialOptions - Potential options the user has to choose from.
- InPotentialOptionsKeyMappings - Button keys that map to the options specified, usually this can be left to defaults.
SetSelectionDelegate
Wrapper for setting the OnSelection delegate.
SetTitle
Changes the title for this messagebox.
Parameters:
- NewTitle - the new title for the message box
SetupButtonBar
Overrides: UTUIScene.SetupButtonBar
Sets up the buttons that should be visible in the bar across the bottom of the scene.