Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.UI.Elements.UICharacterListItem Class Reference

Public Member Functions

 UICharacterListItem (PlayerFileData data, int snapPointIndex)
 
override int CompareTo (object obj)
 
override void MouseOver (UIMouseEvent evt)
 
override void MouseOut (UIMouseEvent evt)
 
delegate void MouseEvent (UIMouseEvent evt, UIElement listeningElement)
 
delegate void ScrollWheelEvent (UIScrollWheelEvent evt, UIElement listeningElement)
 
delegate void ElementEvent (UIElement affectedElement)
 
delegate void UIElementAction (UIElement element)
 
void SetSnapPoint (string name, int id, Vector2? anchor=null, Vector2? offset=null)
 
bool GetSnapPoint (out SnapPoint point)
 
virtual void ExecuteRecursively (UIElementAction action)
 
void Append (UIElement element)
 
void Remove ()
 
void RemoveChild (UIElement child)
 
void RemoveAllChildren ()
 
virtual void Draw (SpriteBatch spriteBatch)
 
virtual void Update (GameTime gameTime)
 
Rectangle GetClippingRectangle (SpriteBatch spriteBatch)
 
virtual List< SnapPoint > GetSnapPoints ()
 
virtual void Recalculate ()
 
UIElement GetElementAt (Vector2 point)
 
virtual bool ContainsPoint (Vector2 point)
 
virtual Rectangle GetViewCullingArea ()
 
void SetPadding (float pixels)
 
virtual void RecalculateChildren ()
 
CalculatedStyle GetInnerDimensions ()
 
CalculatedStyle GetDimensions ()
 
CalculatedStyle GetOuterDimensions ()
 
void CopyStyle (UIElement element)
 
virtual void LeftMouseDown (UIMouseEvent evt)
 
virtual void LeftMouseUp (UIMouseEvent evt)
 
virtual void LeftClick (UIMouseEvent evt)
 
virtual void LeftDoubleClick (UIMouseEvent evt)
 
virtual void RightMouseDown (UIMouseEvent evt)
 
virtual void RightMouseUp (UIMouseEvent evt)
 
virtual void RightClick (UIMouseEvent evt)
 
virtual void RightDoubleClick (UIMouseEvent evt)
 
virtual void ScrollWheel (UIScrollWheelEvent evt)
 
void Activate ()
 
virtual void OnActivate ()
 
void DrawDebugHitbox (BasicDebugDrawer drawer, float colorIntensity=0f)
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Initialize ()
 
virtual void OnInitialize ()
 
int CompareTo (object? obj)
 
int CompareTo (T? other)
 

Public Attributes

Color BorderColor = Color.Black
 
Color BackgroundColor = new Color(63, 82, 151) * 0.7f
 
StyleDimension Top
 
StyleDimension Left
 
StyleDimension Width
 
StyleDimension Height
 
StyleDimension MaxWidth = StyleDimension.Fill
 
StyleDimension MaxHeight = StyleDimension.Fill
 
StyleDimension MinWidth = StyleDimension.Empty
 
StyleDimension MinHeight = StyleDimension.Empty
 
bool IgnoresMouseInteraction
 
bool OverflowHidden
 
SamplerState OverrideSamplerState
 
float PaddingTop
 
float PaddingLeft
 
float PaddingRight
 
float PaddingBottom
 
float MarginTop
 
float MarginLeft
 
float MarginRight
 
float MarginBottom
 
float HAlign
 
float VAlign
 
bool UseImmediateMode
 

Protected Member Functions

override void DrawSelf (SpriteBatch spriteBatch)
 
virtual void DrawChildren (SpriteBatch spriteBatch)
 

Protected Attributes

readonly List< UIElementElements = new List<UIElement>()
 

Properties

bool IsFavorite [get]
 
UIElement Parent [get, private set]
 
int UniqueId [get, private set]
 
IEnumerable< UIElementChildren [get]
 
bool IsMouseHovering [get, private set]
 

Events

MouseEvent OnLeftMouseDown
 
MouseEvent OnLeftMouseUp
 
MouseEvent OnLeftClick
 
MouseEvent OnLeftDoubleClick
 
MouseEvent OnRightMouseDown
 
MouseEvent OnRightMouseUp
 
MouseEvent OnRightClick
 
MouseEvent OnRightDoubleClick
 
MouseEvent OnMouseOver
 
MouseEvent OnMouseOut
 
ScrollWheelEvent OnScrollWheel
 
ElementEvent OnUpdate
 

Private Member Functions

void RenameMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void FavoriteMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void CloudMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void PlayMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void DeleteMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void DeleteMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void ButtonMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void RenameButtonClick (UIMouseEvent evt, UIElement listeningElement)
 
void OnFinishedSettingName (string name)
 
void GoBackHere ()
 
void CloudButtonClick (UIMouseEvent evt, UIElement listeningElement)
 
void DeleteButtonClick (UIMouseEvent evt, UIElement listeningElement)
 
void PlayGame (UIMouseEvent evt, UIElement listeningElement)
 
void FavoriteButtonClick (UIMouseEvent evt, UIElement listeningElement)
 
void DrawPanel (SpriteBatch spriteBatch, Vector2 position, float width)
 
CalculatedStyle GetDimensionsBasedOnParentDimensions (CalculatedStyle parentDimensions)
 

Private Attributes

PlayerFileData _data
 
Asset< Texture2D_dividerTexture
 
Asset< Texture2D_innerPanelTexture
 
UICharacter _playerPanel
 
UIText _buttonLabel
 
UIText _deleteButtonLabel
 
Asset< Texture2D_buttonCloudActiveTexture
 
Asset< Texture2D_buttonCloudInactiveTexture
 
Asset< Texture2D_buttonFavoriteActiveTexture
 
Asset< Texture2D_buttonFavoriteInactiveTexture
 
Asset< Texture2D_buttonPlayTexture
 
Asset< Texture2D_buttonRenameTexture
 
Asset< Texture2D_buttonDeleteTexture
 
UIImageButton _deleteButton
 
int _cornerSize = 12
 
int _barSize = 4
 
Asset< Texture2D_borderTexture
 
Asset< Texture2D_backgroundTexture
 
bool _isInitialized
 
CalculatedStyle _innerDimensions
 
CalculatedStyle _dimensions
 
CalculatedStyle _outerDimensions
 
SnapPoint _snapPoint
 

Static Private Attributes

static readonly RasterizerState OverflowHiddenRasterizerState
 
static int _idCounter = 0
 

Detailed Description

Definition at line 15 of file UICharacterListItem.cs.


The documentation for this class was generated from the following file: