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

◆ SetupGamepadPoints()

void Terraria.GameContent.UI.States.UIResourcePackSelectionMenu.SetupGamepadPoints ( SpriteBatch spriteBatch)
inlineprivate

Definition at line 547 of file UIResourcePackSelectionMenu.cs.

548 {
549 UILinkPointNavigator.Shortcuts.BackButtonCommand = 7;
550 int num = 3000;
551 int currentID = num;
565 for (int i = 0; i < snapPoints.Count; i++)
566 {
568 string name = snapPoint.Name;
569 if (!(name == "GoBack"))
570 {
571 if (name == "OpenFolder")
572 {
574 }
575 }
576 else
577 {
579 }
580 }
594 }
override List< SnapPoint > GetSnapPoints()
Definition UIList.cs:165
virtual List< SnapPoint > GetSnapPoints()
Definition UIElement.cs:267
void LinkVerticalStrips(UILinkPoint[] stripOnLeft, UILinkPoint[] stripOnRight, int leftStripStartOffset)
void CullPointsOutOfElementArea(SpriteBatch spriteBatch, List< SnapPoint > pointsAtMiddle, UIElement container)
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)
void LinkVerticalStripBottomSideToSingle(UILinkPoint[] strip, UILinkPoint theSingle)
UILinkPoint MakeLinkPointFromSnapPoint(int id, SnapPoint snap)
UILinkPoint[] GetVerticalStripFromCategoryName(ref int currentID, List< SnapPoint > pts, string categoryName)
void MoveToVisuallyClosestPoint(List< UILinkPoint > lostrefpoints)

References Terraria.GameContent.UI.States.UIResourcePackSelectionMenu._availablePacksList, Terraria.GameContent.UI.States.UIResourcePackSelectionMenu._enabledPacksList, Terraria.GameContent.UI.States.UIResourcePackSelectionMenu._helper, System.Collections.Generic.Dictionary< TKey, TValue >.Count, Terraria.GameContent.UI.States.UIGamepadHelper.CullPointsOutOfElementArea(), Terraria.GameContent.UI.Elements.UIList.GetSnapPoints(), Terraria.UI.UIElement.GetSnapPoints(), Terraria.GameContent.UI.States.UIGamepadHelper.GetVerticalStripFromCategoryName(), Terraria.GameContent.UI.States.UIGamepadHelper.LinkVerticalStripBottomSideToSingle(), Terraria.GameContent.UI.States.UIGamepadHelper.LinkVerticalStrips(), Terraria.GameContent.UI.States.UIGamepadHelper.MakeLinkPointFromSnapPoint(), Terraria.GameContent.UI.States.UIGamepadHelper.MoveToVisuallyClosestPoint(), and Terraria.GameContent.UI.States.UIGamepadHelper.PairLeftRight().

Referenced by Terraria.GameContent.UI.States.UIResourcePackSelectionMenu.Draw().