-
Notifications
You must be signed in to change notification settings - Fork 3
GUIComponentModifier
Crusha K. Rool edited this page Feb 16, 2019
·
1 revision
This handles changes in the GUIComponent it's linked to. Currently the only change is the position of the component. You specify the goal value and the transition time and this thing does the rest.
- Actual Variable: TargetComponent
- GUIComponent
- Component to be modified.
- Float
- The target position after the move.
- FullMoveTime, CurrentMoveTime.
- Float
- How long the move should take and how long it took already.
- MovementTypeIndex
- byte, note that default is 0.
- How the component should move. 0 = not; 1 = linear; 2 = sine.
Full: MoveContainerLinear(float NewPosX, float NewPosY, float NewPosXEnd, float NewPosYEnd, float MoveTime)
- Moves a component smoothly to a new position in a constant time.
- @param NewPos: the final destination of the component after the move
- @param MoveTime: how fast the component moves to the new place.
Full: function MoveContainerSine(float NewPosX, float NewPosY, float NewPosXEnd, float NewPosYEnd, float MoveTime)
- Moves a component to a new position in a constant time while slowly accelerating and breaking at the start and end.
- The linear solution has slightly better performance.
- @param NewPos: the final destination of the component after the move
- @param MoveTime: how fast the component moves to the new place.