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

◆ GetSnapPoints()

virtual List< SnapPoint > Terraria.UI.UIElement.GetSnapPoints ( )
inlinevirtualinherited

Reimplemented in Terraria.GameContent.UI.Elements.UIDynamicItemCollection, and Terraria.GameContent.UI.Elements.UIList.

Definition at line 267 of file UIElement.cs.

268 {
270 if (GetSnapPoint(out var point))
271 {
272 list.Add(point);
273 }
274 foreach (UIElement element in Elements)
275 {
276 list.AddRange(element.GetSnapPoints());
277 }
278 return list;
279 }
bool GetSnapPoint(out SnapPoint point)
Definition UIElement.cs:135

References Terraria.UI.UIElement.GetSnapPoint(), Terraria.UI.UIElement.GetSnapPoints(), and System.list.

Referenced by Terraria.GameContent.UI.Elements.UIDynamicItemCollection.GetSnapPoints(), Terraria.UI.UIElement.GetSnapPoints(), Terraria.GameContent.UI.States.AWorkshopPublishInfoState< TPublishedObjectType >.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIBestiaryTest.SetupGamepadPoints(), Terraria.GameContent.UI.States.UICharacterCreation.SetupGamepadPoints(), Terraria.GameContent.UI.States.UICharacterSelect.SetupGamepadPoints(), Terraria.GameContent.UI.States.UICreativePowersMenu.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIEmotesMenu.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIReportsPage.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIResourcePackInfoMenu.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIResourcePackSelectionMenu.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIWorkshopSelectResourcePackToPublish.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIWorkshopSelectWorldToPublish.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIWorkshopWorldImport.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIWorldCreation.SetupGamepadPoints(), Terraria.GameContent.UI.States.UIWorldSelect.SetupGamepadPoints(), and Terraria.GameContent.UI.States.UIEmotesMenu.SetupGamepadPoints2().