Skip to content

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.

Table of Contents

Important Variables

Target Component

  • Actual Variable: TargetComponent
  • GUIComponent
  • Component to be modified.

FinalPosX, FinalPosY, FinalPosXEnd, FinalPosYEnd

  • Float
  • The target position after the move.

Full Move Time, Current Move Time

  • FullMoveTime, CurrentMoveTime.
  • Float
  • How long the move should take and how long it took already.

Movement Type Index

  • MovementTypeIndex
  • byte, note that default is 0.
  • How the component should move. 0 = not; 1 = linear; 2 = sine.

Important Functions

Move Container Linear

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.

Move Container Sine

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.