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

◆ LinkVerticalStripRightSideToSingle()

void Terraria.GameContent.UI.States.UIGamepadHelper.LinkVerticalStripRightSideToSingle ( UILinkPoint[] strip,
UILinkPoint theSingle )
inline

Definition at line 101 of file UIGamepadHelper.cs.

102 {
103 if (strip == null || theSingle == null)
104 {
105 return;
106 }
107 int num = Math.Max(strip.Length, 1);
108 int num2 = Math.Min(strip.Length, 1);
109 for (int i = 0; i < num2; i++)
110 {
112 }
113 for (int j = num2; j < num; j++)
114 {
115 if (strip.Length > j)
116 {
117 strip[j].Right = theSingle.ID;
118 }
119 }
120 }
static byte Min(byte val1, byte val2)
Definition Math.cs:912
static byte Max(byte val1, byte val2)
Definition Math.cs:738
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)

References System.Math.Max(), System.Math.Min(), and Terraria.GameContent.UI.States.UIGamepadHelper.PairLeftRight().

Referenced by Terraria.GameContent.UI.States.UICreativePowersMenu.SetupGamepadPoints().