SetCursorTraitGradual

From GECK
Jump to: navigation, search


A function added by the SUP NVSE Plugin.

Description

Gradually changes the value of the specified Cursor component trait, first setting it to startValue, then gradually increases/decreases it toward endValue, in duration seconds. The functions works simmilar to SetUIFloatGradual.

  • The last (5th) argument changeMode is optional, and may be used to toggle "special" change modes, as follows:
0	(Default) From startVal to endVal in duration.
1	From startVal to endVal in duration/6, endVal for duration*2/3, back to startVal in duration/6.
2	From startVal to endVal back to startVal, in duration, repeated perpetually.
3	From startVal to endVal, in duration, repeated perpetually.

Syntax

[help]
SetCursorTraitGradual iTrait:int startValue:float endValue:float duration:float changeMode:int{0-3}

Traits

0 - Cursor Alpha;
1 - Cursor Width;
2 - Cursor Height;
3 - Cursor Red color;(Since V1.1)
4 - Cursor Green color;(Since V1.1)
5 - Cursor Blue color;(Since V1.1)

Example

SetCursorTraitGradual 0 200 50 4

Sets the alpha trait to 200; gradually decreases it to 50 over 4 seconds.

SetCursorTraitGradual 0

Will stop cursor "Alpha" trait from changing.

See Also