There is no spoon
Difference between revisions of "UE3:UTUIScene MessageBox (UDK)"
(Talk) |
m (1 revision: class descriptions for UDK January update (part 8)) |
(No difference)
|
Latest revision as of 06:02, 17 January 2010
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[edit]
MESSAGEBOX_MAX_POSSIBLE_OPTIONS[edit]
Value: 4
CANCEL_BUTTON_MARKUP_STRING[edit]
Value: "<Strings:UTGameUI.Generic.Cancel>"
Properties[edit]
Property group 'UTUIScene_MessageBox'[edit]
bRepositionMessageToCenter[edit]
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[edit]
BackgroundImage[edit]
Type: UIObject
Modifiers: transient
Reference to the owning widget that has all of the content of the message box scene.
bFullyVisible[edit]
Type: bool
Modifiers: transient
Whether or not the message box is fully visible.
bHideOnNextTick[edit]
Type: bool
Modifiers: transient
Flag that lets the dialog know it should hide itself.
bRepositionButtons[edit]
Type: bool
Flag which is used natively to recalculate the dialog button positions
ButtonBar[edit]
Type: UTUIButtonBar
Modifiers: transient
References to the scene's buttonbar.
DefaultOptionIdx[edit]
Type: int
Modifiers: transient
Index of the option that is selected by default, valid for PC only.
DisplayTime[edit]
Type: float
Modifiers: transient
The time the message box was fully displayed.
FadeDirection[edit]
Type: int
Modifiers: transient
Direction we are currently fading, positive is fade in, negative is fade out, 0 is not fading.
FadeDuration[edit]
Type: float
Modifiers: transient
How long to take to display/hide the message box.
FadeStartTime[edit]
Type: float
Modifiers: transient
Time fading started.
MessageLabel[edit]
Type: UILabel
Modifiers: transient
Message box message.
MinimumDisplayTime[edit]
Type: float
Modifiers: transient
The minimum amount of time to display modal message boxes for.
PotentialOptionKeyMappings[edit]
Type: array<PotentialOptionKeys>
Modifiers: transient
PotentialOptions[edit]
Modifiers: transient
Array of potential options markup.
PreviouslySelectedOption[edit]
Type: int
Modifiers: transient
Stores which option the user selected.
ScrollWindow[edit]
Type: UIObject
Modifiers: transient
Reference to the scroll window that holds the message label.
SelectingPlayer[edit]
Type: int
Modifiers: transient
Index of the player that selected the option.
TitleLabel[edit]
Type: UILabel
Modifiers: transient
Message box title markup.
Default values[edit]
Subobjects[edit]
WidgetEventComponent[edit]
Class: Engine.UIComp_Event
Property | Value |
---|---|
DisabledEventAliases[0] | 'CloseScene' |
Structs[edit]
PotentialOptionKeys[edit]
Modifiers: native
Arrays of key's that trigger each potential option.
Delegates[edit]
OnClosed[edit]
Delegate called after the message box has been competely closed.
OnMBInputKey[edit]
Delegate to trap any input to the message box.
OnSelection[edit]
The user has made a selection of the choices available to them.
Functions[edit]
Native functions[edit]
BeginHide[edit]
Starts hiding the message box.
BeginShow[edit]
Starts showing the message box.
Events[edit]
Initialized[edit]
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[edit]
Called when the dialog is finished hiding itself.
OnShowComplete[edit]
Called when the dialog has finished showing itself.
PostInitialize[edit]
Overrides: UIScreenObject.PostInitialize
Sets delegates for the scene.
Other instance functions[edit]
Close[edit]
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[edit]
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[edit]
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[edit]
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[edit]
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[edit]
Displays a message box that has no buttons and must be closed by the scene that opened it.
FindCancelButtonIndex[edit]
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[edit]
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[edit]
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[edit]
OptionSelected[edit]
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[edit]
Sets the current message for this messagebox.
Parameters:
- NewMessage - New message for the messagebox.
SetPotentialOptionKeyMappings[edit]
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[edit]
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[edit]
Wrapper for setting the OnSelection delegate.
SetTitle[edit]
Changes the title for this messagebox.
Parameters:
- NewTitle - the new title for the message box
SetupButtonBar[edit]
Overrides: UTUIScene.SetupButtonBar
Sets up the buttons that should be visible in the bar across the bottom of the scene.