TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DoUpdate_AnimateCursorColors()

static void Terraria.Main.DoUpdate_AnimateCursorColors ( )
inlinestaticprivate

Definition at line 17619 of file Main.cs.

17620 {
17621 CursorColor();
17623 if (mouseTextColor >= byte.MaxValue)
17624 {
17626 }
17627 if (mouseTextColor <= 190)
17628 {
17630 }
17631 masterColor += (float)masterColorDir * 0.05f;
17632 if (masterColor > 1f)
17633 {
17634 masterColor = 1f;
17635 masterColorDir = -1;
17636 }
17637 if (masterColor < 0f)
17638 {
17639 masterColor = 0f;
17640 masterColorDir = 1;
17641 }
17642 }
static float masterColor
Definition Main.cs:1435
static int mouseTextColorChange
Definition Main.cs:1906
static byte mouseTextColor
A value that oscillates between 190 and 255. It is used to drive the slight pulsing color effect seen...
Definition Main.cs:1904
static int masterColorDir
Definition Main.cs:1437
static void CursorColor()
Definition Main.cs:66820

References Terraria.Main.CursorColor(), Terraria.Main.masterColor, Terraria.Main.masterColorDir, Terraria.Main.mouseTextColor, and Terraria.Main.mouseTextColorChange.

Referenced by Terraria.Main.DoUpdate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: