tModLoader v2024.11
A mod to make and play Terraria mods
UILinkPage Class Reference

Public Member Functions

 UILinkPage (int id)
 
bool CanEnter ()
 
void Enter ()
 
bool IsValid ()
 
void Leave ()
 
string SpecialInteractions ()
 
void SwapPageLeft ()
 
void SwapPageRight ()
 
void TravelDown ()
 
void TravelLeft ()
 
void TravelRight ()
 
void TravelUp ()
 
void Update ()
 

Public Attributes

int CurrentPoint
 
int DefaultPoint
 
int ID
 
Dictionary< int, UILinkPointLinkMap = new Dictionary<int, UILinkPoint>()
 
int PageOnLeft = -1
 
int PageOnRight = -1
 

Events

Func< bool > CanEnterEvent
 
Action EnterEvent
 
Func< bool > IsValidEvent
 
Action LeaveEvent
 
Action< int > OnPageMoveAttempt
 
Func< string > OnSpecialInteracts
 
Action< int, int > ReachEndEvent
 
Action TravelEvent
 
Action UpdateEvent