Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
Difference between revisions of "UE3:UIObject native functions (UT3)"
(Auto-generated page) |
m (added missing members) |
||
Line 264: | Line 264: | ||
'''Returns:''' | '''Returns:''' | ||
:TRUE if a data store field was successfully resolved from the data binding | :TRUE if a data store field was successfully resolved from the data binding | ||
+ | |||
+ | ====ResolveStyles==== | ||
+ | {{code|native final noexport function [[bool]] '''ResolveStyles''' (optional [[bool]] '''bClearExistingValue''')}} | ||
+ | |||
+ | Resolves the style references contained by this widget from the currently active skin. | ||
+ | |||
+ | '''Parameters:''' | ||
+ | * ''bClearExistingValue'' - if TRUE, style references will be invalidated first. | ||
+ | |||
+ | '''Returns:''' | ||
+ | :TRUE if all style references were successfully resolved. | ||
====RotateWidget==== | ====RotateWidget==== | ||
Line 377: | Line 388: | ||
* ''Value'' - whether the flag is being enabled or disabled | * ''Value'' - whether the flag is being enabled or disabled | ||
* ''bRecurse'' - specify TRUE to apply the flag in all children of this widget as well. | * ''bRecurse'' - specify TRUE to apply the flag in all children of this widget as well. | ||
+ | |||
+ | ====SetWidgetStyleByName==== | ||
+ | {{code|native final function [[bool]] '''SetWidgetStyleByName''' ([[name]] '''StyleResolverTagToSet''', [[name]] '''StyleFriendlyName''')}} | ||
+ | |||
+ | Sets a style in the widget using the name of the style. | ||
+ | |||
+ | '''Parameters:''' | ||
+ | * ''StyleResolverTagToSet'' - the tag associated with the UIStyleResolver to set | ||
+ | * ''StyleFriendlyName'' - the name of the style to set the widget to | ||
+ | |||
+ | '''Returns:''' | ||
+ | :TRUE if the style was successfully applied to this widget | ||
====TickAnim==== | ====TickAnim==== |
Latest revision as of 02:52, 16 August 2009
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 ResolveStyles
- 1.35 RotateWidget
- 1.36 SetActiveCursorUpdate
- 1.37 SetAnchorPosition
- 1.38 SetDefaultDataBinding
- 1.39 SetDockPadding
- 1.40 SetDockParameters
- 1.41 SetDockTarget
- 1.42 SetForcedNavigationTarget
- 1.43 SetNavigationTarget
- 1.44 SetPrivateBehavior
- 1.45 SetWidgetStyleByName
- 1.46 TickAnim
- 1.47 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[edit]
AddStyleSubscriber[edit]
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[edit]
AnimSetColor[edit]
AnimSetLeft[edit]
AnimSetOpacity[edit]
Note these are accessor functions for the animation system. They should be subclassed.
AnimSetPosition[edit]
AnimSetRelPosition[edit]
AnimSetRight[edit]
AnimSetRotation[edit]
AnimSetScale[edit]
AnimSetTop[edit]
AnimSetVisibility[edit]
CanAcceptFocus[edit]
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[edit]
Clears the reference to the bound data store, if applicable.
Parameters:
- BindingIndex - indicates which data store binding to operate on.
FindStyleSubscriberIndex[edit]
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[edit]
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[edit]
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[edit]
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[edit]
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[edit]
Returns the data binding's current value.
Parameters:
- BindingIndex - indicates which data store binding to operate on.
GetDefaultDataStores[edit]
Returns the data store providing the data for all default data bindings.
GetPositionExtent[edit]
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[edit]
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[edit]
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[edit]
Returns the ToolTip data binding's current value after being resolved.
HasTransform[edit]
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[edit]
Returns TRUE if TestWidget is in this widget's Owner chain.
IsDockedTo[edit]
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[edit]
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[edit]
Returns the value of bEnableActiveCursorUpdates
NotifyValueChanged[edit]
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[edit]
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[edit]
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
ResolveStyles[edit]
Resolves the style references contained by this widget from the currently active skin.
Parameters:
- bClearExistingValue - if TRUE, style references will be invalidated first.
Returns:
- TRUE if all style references were successfully resolved.
RotateWidget[edit]
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[edit]
Change the value of bEnableActiveCursorUpdates to the specified value.
SetAnchorPosition[edit]
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[edit]
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[edit]
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[edit]
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[edit]
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.
[edit]
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.
[edit]
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[edit]
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.
SetWidgetStyleByName[edit]
Sets a style in the widget using the name of the style.
Parameters:
- StyleResolverTagToSet - the tag associated with the UIStyleResolver to set
- StyleFriendlyName - the name of the style to set the widget to
Returns:
- TRUE if the style was successfully applied to this widget
TickAnim[edit]
Itterate over the AnimStack and tick each active sequence
Parameters:
- DeltaTime - How much time since the last call
UpdateRotationMatrix[edit]
Updates the widget's rotation matrix based on the widget's current rotation.