Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:UIObject native functions (UT3)
Object >> UIRoot >> UIScreenObject >> UIObject (native functions) |
Contents
- 1 Native functions
- 1.1 AddStyleSubscriber
- 1.2 AnimSetBottom
- 1.3 AnimSetColor
- 1.4 AnimSetLeft
- 1.5 AnimSetOpacity
- 1.6 AnimSetPosition
- 1.7 AnimSetRelPosition
- 1.8 AnimSetRight
- 1.9 AnimSetRotation
- 1.10 AnimSetScale
- 1.11 AnimSetTop
- 1.12 AnimSetVisibility
- 1.13 CanAcceptFocus
- 1.14 ClearDefaultDataBinding
- 1.15 FindStyleSubscriberIndex
- 1.16 FindStyleSubscriberIndexById
- 1.17 GenerateSceneDataStoreMarkup
- 1.18 GenerateTransformMatrix
- 1.19 GetAnchorPosition
- 1.20 GetDefaultDataBinding
- 1.21 GetDefaultDataStores
- 1.22 GetPositionExtent
- 1.23 GetPositionExtents
- 1.24 GetRotationMatrix
- 1.25 GetToolTipValue
- 1.26 HasTransform
- 1.27 IsContainedBy
- 1.28 IsDockedTo
- 1.29 IsPrivateBehaviorSet
- 1.30 NeedsActiveCursorUpdates
- 1.31 NotifyValueChanged
- 1.32 RemoveStyleSubscriber
- 1.33 ResolveDefaultDataBinding
- 1.34 RotateWidget
- 1.35 SetActiveCursorUpdate
- 1.36 SetAnchorPosition
- 1.37 SetDefaultDataBinding
- 1.38 SetDockPadding
- 1.39 SetDockParameters
- 1.40 SetDockTarget
- 1.41 SetForcedNavigationTarget
- 1.42 SetNavigationTarget
- 1.43 SetPrivateBehavior
- 1.44 TickAnim
- 1.45 UpdateRotationMatrix
- UIObject native functions in other games:
- UDK
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. |
Native functions
AddStyleSubscriber
Adds the specified StyleResolver to the list of StyleSubscribers
Parameters:
- StyleSubscriberId - the name to associate with this UIStyleResolver; used for differentiating styles from multiple UIStyleResolvers of the same class
- Subscriber - the UIStyleResolver to add.
AnimSetBottom
AnimSetColor
AnimSetLeft
AnimSetOpacity
Note these are accessor functions for the animation system. They should be subclassed.
AnimSetPosition
AnimSetRelPosition
AnimSetRight
AnimSetRotation
AnimSetScale
AnimSetTop
AnimSetVisibility
CanAcceptFocus
Overrides: UIScreenObject.CanAcceptFocus
Determines whether this widget can become the focused control. In the case of this widget we don't want it to gain focus.
Parameters:
- PlayerIndex - the index [into the Engine.GamePlayers array] for the player to check focus availability
Returns:
- TRUE if this widget (or any of its children) is capable of becoming the focused control.
ClearDefaultDataBinding
Clears the reference to the bound data store, if applicable.
Parameters:
- BindingIndex - indicates which data store binding to operate on.
FindStyleSubscriberIndex
Returns the index [into the StyleSubscriber's array] for the specified UIStyleResolver, or INDEX_NONE if Subscriber is NULL or is not found in the StyleSubscriber's array.
Parameters:
- Subscriber - the subscriber to find
- SubscriberId - if specified, it will only be considered a match if the SubscriberId associated with Subscriber matches this value.
FindStyleSubscriberIndexById
Returns the index [into the StyleSubscriber's array] for the subscriber which has a StyleResolverTag that matches the specified value or INDEX_NONE if StyleSubscriberId is None or is not found in the StyleSubscriber's array.
Parameters:
- StyleSubscriberId - the tag associated with the UIStyleResolver to find
GenerateSceneDataStoreMarkup
Generates a string which can be used to interact with temporary data in the scene data store specific to this widget.
Parameters:
- Group - for now, doesn't matter, as only "ContextMenuItems" is supported
Returns:
- a data store markup string which can be used to reference content specific to this widget in the scene's data store.
GenerateTransformMatrix
Generates a matrix which contains a translation for this widget's position (from 0,0 screen space) as well as the widget's current rotation, scale, etc.
Parameters:
- bIncludeParentTransforms - if TRUE, the matrix will be relative to the parent widget's own transform matrix.
Returns:
- a matrix containing the translation and rotation values of this widget.
Todo: ronp - we REALLY need to cache this baby and update it any time the widget's position, anchor, rotation, scale, or parent changes.
GetAnchorPosition
Returns the current location of the anchor.
Parameters:
- bRelativeToWidget - specify TRUE to return the anchor position relative to the widget's upper left corner. specify FALSE to return the anchor position relative to the viewport's origin.
- bPixelSpace - specify TRUE to convert the anchor position into pixel space (only relevant if the widget is rotated)
Returns:
- a vector representing the position of this widget's rotation anchor.
GetDefaultDataBinding
Returns the data binding's current value.
Parameters:
- BindingIndex - indicates which data store binding to operate on.
GetDefaultDataStores
Returns the data store providing the data for all default data bindings.
GetPositionExtent
Gets the minimum or maximum value for the specified widget face position after rotation has been applied.
Parameters:
- bIncludeRotation - Indicates whether the widget's rotation should be applied to the extent values.
GetPositionExtents
Gets the minimum and maximum values for the widget's face positions after rotation (if specified) has been applied.
Parameters:
- MinX - The minimum x position of this widget.
- MaxX - The maximum x position of this widget.
- MinY - The minimum y position of this widget.
- MaxY - The maximum y position of this widget.
- bIncludeRotation - Indicates whether the widget's rotation should be applied to the extent values.
GetRotationMatrix
Returns this widget's current rotation matrix
Parameters:
- bIncludeParentRotations - if TRUE, the matrix will be relative to the parent widget's own rotation matrix.
GetToolTipValue
Returns the ToolTip data binding's current value after being resolved.
HasTransform
Determines whether this widget has any tranformation applied to it.
Parameters:
- bIncludeParentTransforms - specify TRUE to check whether this widget's parents are transformed if this one isn't.
IsContainedBy
Returns TRUE if TestWidget is in this widget's Owner chain.
IsDockedTo
Returns TRUE if this widget is docked to the specified widget.
Parameters:
- TargetWidget - the widget to check for docking links to
- SourceFace - if specified, returns TRUE only if the specified face is docked to TargetWidget
- TargetFace - if specified, returns TRUE only if this widget is docked to the specified face on the target widget.
IsPrivateBehaviorSet
Checks to see if the specified private behavior is set. Valid behavior flags are defined in UIRoot.uc, as consts which begin with PRIVATE_
Parameters:
- Behavior - the flag of the private behavior that is being checked
Returns:
- TRUE if the specified flag is set and FALSE if not.
NeedsActiveCursorUpdates
Returns the value of bEnableActiveCursorUpdates
NotifyValueChanged
Called whenever the value of the UIObject is modified (for those UIObjects which can have values). Calls the OnValueChanged delegate.
Parameters:
- PlayerIndex - the index of the player that generated the call to SetValue; used as the PlayerIndex when activating UIEvents; if not specified, the value of GetBestPlayerIndex() is used instead.
- NotifyFlags - optional parameter for individual widgets to use for passing additional information about the notification.
RemoveStyleSubscriber
Removes the specified StyleResolver from the list of StyleSubscribers.
Parameters:
- Subscriber - the subscriber to remove
- SubscriberId - if specified, Subscriber will only be removed if its SubscriberId matches this value.
ResolveDefaultDataBinding
Resolves the data binding's markup string.
Parameters:
- BindingIndex - indicates which data store binding to operate on.
Returns:
- TRUE if a data store field was successfully resolved from the data binding
RotateWidget
Rotates the widget around the current anchor position by the amount specified.
Parameters:
- RotationDelta - amount to rotate the widget by in DEGREES.
- bAccumulateRotation - if FALSE, set the widget's rotation to NewRotationAmount; if TRUE, increments the widget's rotation by NewRotationAmount
SetActiveCursorUpdate
Change the value of bEnableActiveCursorUpdates to the specified value.
SetAnchorPosition
Sets the location of the widget's rotation anchor, relative to the top-left of this widget's bounds.
Parameters:
- AnchorPosition - New location for the widget's rotation anchor.
- InputType - indicates which format the AnchorPos value is in
SetDefaultDataBinding
Set the markup text for a default data binding to the value specified.
Parameters:
- NewMarkupText - the new markup text for this widget, either a literal string or a data store markup string
- BindingIndex - indicates which data store binding to operate on.
SetDockPadding
Sets the padding for the specified docking link.
Parameters:
- SourceFace - the face of this widget to apply the changes to
- Padding - the amount of padding to use for this docking set. Positive values will "push" this widget past the target face of the other widget, while negative values will "pull" this widget away from the target widget.
- PaddingInputType - specifies how the Padding value should be interpreted.
- bModifyPaddingScaleType - specify TRUE to change the DockPadding's ScaleType to the PaddingInputType.
Returns:
- TRUE if the changes were successfully applied.
SetDockParameters
Combines SetDockTarget and SetDockPadding into a single function.
Parameters:
- SourceFace - the face of this widget to apply the changes to
- Target - the widget to dock to
- TargetFace - the face on the Target widget that SourceFace will dock to
- Padding - the amount of padding to use for this docking set. Positive values will "push" this widget past the target face of the other widget, while negative values will "pull" this widget away from the target widget.
- PaddingInputType - specifies how the Padding value should be interpreted.
- bModifyPaddingScaleType - specify TRUE to change the DockPadding's ScaleType to the PaddingInputType.
Returns:
- TRUE if the changes were successfully applied.
SetDockTarget
Sets the docking target for the specified face.
Parameters:
- SourceFace - the face of this widget to apply the changes to
- Target - the widget to dock to
- TargetFace - the face on the Target widget that SourceFace will dock to
Returns:
- TRUE if the changes were successfully applied.
Sets the designer-specified navigation target for the specified face. When navigation links for the scene are rebuilt, the designer-specified navigation target will always override any auto-calculated targets. If the new value is different from the current value, requests the owning scene to update the navigation links for the entire scene.
Parameters:
- Face - the face to set the navigation link for
- NavTarget - the widget to set as the link for the specified face
- bIsNullOverride - if NavTarget is NULL, specify TRUE to indicate that this face's nav target should not be automatically calculated.
Returns:
- TRUE if the nav link was successfully set.
Sets the actual navigation target for the specified face. If the new value is different from the current value, requests the owning scene to update the navigation links for the entire scene.
Parameters:
- Face - the face to set the navigation link for
- NewNavTarget - the widget to set as the link for the specified face
Returns:
- TRUE if the nav link was successfully set.
SetPrivateBehavior
Set the specified private behavior for this UIObject. Valid behavior flags are defined in UIRoot.uc, as consts which begin with PRIVATE_
Parameters:
- Behavior - the flag of the private behavior that is being set
- Value - whether the flag is being enabled or disabled
- bRecurse - specify TRUE to apply the flag in all children of this widget as well.
TickAnim
Itterate over the AnimStack and tick each active sequence
Parameters:
- DeltaTime - How much time since the last call
UpdateRotationMatrix
Updates the widget's rotation matrix based on the widget's current rotation.