MethodTweener.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MethodTweener" inherits="Tweener" version="4.0">
  3. <brief_description>
  4. Interpolates an abstract value and supplies it to a method called over time.
  5. </brief_description>
  6. <description>
  7. [MethodTweener] is similar to a combination of [CallbackTweener] and [PropertyTweener]. It calls a method providing an interpolated value as a parameter. See [method Tween.tween_method] for more usage information.
  8. [b]Note:[/b] [method Tween.tween_method] is the only correct way to create [MethodTweener]. Any [MethodTweener] created manually will not function correctly.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="set_delay">
  14. <return type="MethodTweener" />
  15. <argument index="0" name="delay" type="float" />
  16. <description>
  17. Sets the time in seconds after which the [MethodTweener] will start interpolating. By default there's no delay.
  18. </description>
  19. </method>
  20. <method name="set_ease">
  21. <return type="MethodTweener" />
  22. <argument index="0" name="ease" type="int" enum="Tween.EaseType" />
  23. <description>
  24. Sets the type of used easing from [enum Tween.EaseType]. If not set, the default easing is used from the [Tween] that contains this Tweener.
  25. </description>
  26. </method>
  27. <method name="set_trans">
  28. <return type="MethodTweener" />
  29. <argument index="0" name="trans" type="int" enum="Tween.TransitionType" />
  30. <description>
  31. Sets the type of used transition from [enum Tween.TransitionType]. If not set, the default transition is used from the [Tween] that contains this Tweener.
  32. </description>
  33. </method>
  34. </methods>
  35. </class>