Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.UI.States.UIBestiaryTest Class Reference

Public Member Functions

 UIBestiaryTest (BestiaryDatabase database)
 
void OnOpenPage ()
 
override void LeftClick (UIMouseEvent evt)
 
override void RightClick (UIMouseEvent evt)
 
override void Update (GameTime gameTime)
 
void UpdateBestiaryGridRange ()
 
override void Recalculate ()
 
BestiaryUnlockProgressReport GetUnlockProgress ()
 
override void Draw (SpriteBatch spriteBatch)
 
override void ScrollWheel (UIScrollWheelEvent evt)
 
void TryMovingPages (int direction)
 
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 ()
 
Rectangle GetClippingRectangle (SpriteBatch spriteBatch)
 
virtual List< SnapPoint > GetSnapPoints ()
 
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 LeftDoubleClick (UIMouseEvent evt)
 
virtual void RightMouseDown (UIMouseEvent evt)
 
virtual void RightMouseUp (UIMouseEvent evt)
 
virtual void RightDoubleClick (UIMouseEvent evt)
 
virtual void MouseOver (UIMouseEvent evt)
 
virtual void MouseOut (UIMouseEvent evt)
 
void Activate ()
 
virtual void OnActivate ()
 
void DrawDebugHitbox (BasicDebugDrawer drawer, float colorIntensity=0f)
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Initialize ()
 
virtual void OnInitialize ()
 
virtual int CompareTo (object obj)
 
int CompareTo (object? obj)
 
int CompareTo (T? other)
 

Public Attributes

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

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

Protected Attributes

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

Properties

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 BuildPage ()
 
void FillProgressBottomBar (UIElement container)
 
void ShowStats_Completion (UIElement element)
 
string GetCompletionPercentText ()
 
float GetProgressPercent ()
 
void EmptyInteraction (float input)
 
void EmptyInteraction2 ()
 
Color GetColorAtBlip (float percentile)
 
void AddBackAndForwardButtons (UIElement innerTopContainer)
 
void AddSortAndFilterButtons (UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
 
void AddSearchBar (UIElement innerTopContainer, UIBestiaryEntryInfoPage infoSpace)
 
void searchCancelButton_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void searchCancelButton_OnMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void OpenVirtualKeyboardWhenNeeded ()
 
void OnFinishedSettingName (string name)
 
void GoBackHere ()
 
void OnStartTakingInput ()
 
void OnEndTakingInput ()
 
void OnSearchContentsChanged (string contents)
 
void Click_SearchArea (UIMouseEvent evt, UIElement listeningElement)
 
void AttemptStoppingUsingSearchbar (UIMouseEvent evt)
 
void FilterEntries ()
 
void SortEntries ()
 
void FillBestiarySpaceWithEntries ()
 
void GetEntriesToShow (out int maxEntriesWidth, out int maxEntriesHeight, out int maxEntriesToHave)
 
void MakeExitButton (UIElement outerContainer)
 
void Click_GoBack (UIMouseEvent evt, UIElement listeningElement)
 
void OpenOrCloseSortingOptions (UIMouseEvent evt, UIElement listeningElement)
 
void OpenOrCloseFilteringGrid (UIMouseEvent evt, UIElement listeningElement)
 
void Click_CloseFilteringGrid (UIMouseEvent evt, UIElement listeningElement)
 
void CloseFilteringGrid ()
 
void UpdateBestiaryContents ()
 
void Click_CloseSortingGrid (UIMouseEvent evt, UIElement listeningElement)
 
void CloseSortingGrid ()
 
void FadedMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void FadedMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void Click_SelectEntryButton (UIMouseEvent evt, UIElement listeningElement)
 
void SelectEntryButton (UIBestiaryEntryButton button)
 
void DeselectEntryButton ()
 
void SetupGamepadPoints (SpriteBatch spriteBatch)
 
void MoveToVisuallyClosestPoint (List< UILinkPoint > lostrefpoints)
 
void SetupPointsForEntryGrid (ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
 
void SetupPointsForFilterGrid (ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
 
void SetupPointsForSortingGrid (ref int currentID, List< SnapPoint > pts, out int gridWidth, out int gridHeight, out UILinkPoint[,] gridPoints)
 
void PairLeftRight (UILinkPoint leftSide, UILinkPoint rightSide)
 
void PairUpDown (UILinkPoint upSide, UILinkPoint downSide)
 
UILinkPoint MakeLinkPointFromSnapPoint (int id, SnapPoint snap)
 
CalculatedStyle GetDimensionsBasedOnParentDimensions (CalculatedStyle parentDimensions)
 

Static Private Member Functions

static List< SnapPointGetOrderedPointsByCategoryName (List< SnapPoint > pts, string name)
 

Private Attributes

UIElement _bestiarySpace
 
UIBestiaryEntryInfoPage _infoSpace
 
UIBestiaryEntryButton _selectedEntryButton
 
List< BestiaryEntry_originalEntriesList
 
List< BestiaryEntry_workingSetEntries
 
UIText _indexesRangeText
 
EntryFilterer< BestiaryEntry, IBestiaryEntryFilter_filterer = new EntryFilterer<BestiaryEntry, IBestiaryEntryFilter>()
 
EntrySorter< BestiaryEntry, IBestiarySortStep_sorter = new EntrySorter<BestiaryEntry, IBestiarySortStep>()
 
UIBestiaryEntryGrid _entryGrid
 
UIBestiarySortingOptionsGrid _sortingGrid
 
UIBestiaryFilteringOptionsGrid _filteringGrid
 
UISearchBar _searchBar
 
UIPanel _searchBoxPanel
 
UIText _sortingText
 
UIText _filteringText
 
string _searchString
 
BestiaryUnlockProgressReport _progressReport
 
UIText _progressPercentText
 
UIColoredSliderSimple _unlocksProgressBar
 
bool _didClickSomething
 
bool _didClickSearchBar
 
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 18 of file UIBestiaryTest.cs.


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