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

◆ SetupPointsForEntryGrid()

void Terraria.GameContent.UI.States.UIBestiaryTest.SetupPointsForEntryGrid ( ref int currentID,
List< SnapPoint > pts,
out int gridWidth,
out int gridHeight,
out UILinkPoint gridPoints[,] )
inlineprivate

Definition at line 837 of file UIBestiaryTest.cs.

838 {
842 for (int i = 0; i < orderedPointsByCategoryName.Count; i++)
843 {
844 int num = i % gridWidth;
845 int num2 = i / gridWidth;
847 }
848 for (int j = 0; j < gridWidth; j++)
849 {
850 for (int k = 0; k < gridHeight; k++)
851 {
853 if (j < gridWidth - 1)
854 {
856 if (uILinkPoint != null && uILinkPoint2 != null)
857 {
859 }
860 }
861 if (k < gridHeight - 1)
862 {
864 if (uILinkPoint != null && uILinkPoint3 != null)
865 {
867 }
868 }
869 }
870 }
871 }
void GetEntriesToShow(out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
static List< SnapPoint > GetOrderedPointsByCategoryName(List< SnapPoint > pts, string name)
void PairUpDown(UILinkPoint upSide, UILinkPoint downSide)
void PairLeftRight(UILinkPoint leftSide, UILinkPoint rightSide)
UILinkPoint MakeLinkPointFromSnapPoint(int id, SnapPoint snap)

References Terraria.GameContent.UI.States.UIBestiaryTest._entryGrid, System.Collections.Generic.Dictionary< TKey, TValue >.Count, Terraria.GameContent.UI.Elements.UIBestiaryEntryGrid.GetEntriesToShow(), Terraria.GameContent.UI.States.UIBestiaryTest.GetOrderedPointsByCategoryName(), Terraria.GameContent.UI.States.UIBestiaryTest.MakeLinkPointFromSnapPoint(), Terraria.GameContent.UI.States.UIBestiaryTest.PairLeftRight(), and Terraria.GameContent.UI.States.UIBestiaryTest.PairUpDown().

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