terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.GameContent.UI.Elements.UICreativeInfiniteItemsDisplay Class Reference
+ Inheritance diagram for Terraria.GameContent.UI.Elements.UICreativeInfiniteItemsDisplay:
+ Collaboration diagram for Terraria.GameContent.UI.Elements.UICreativeInfiniteItemsDisplay:

Public Types

enum  InfiniteItemsDisplayPage { InfiniteItemsPickup , InfiniteItemsResearch }
 

Public Member Functions

 UICreativeInfiniteItemsDisplay (UIState uiStateThatHoldsThis)
 
void SacrificeWhatYouCan ()
 
void StopPlayingAnimation ()
 
void SetPageTypeToShow (UICreativeInfiniteItemsDisplay.InfiniteItemsDisplayPage page)
 
override void LeftClick (UIMouseEvent evt)
 
override void RightClick (UIMouseEvent evt)
 
override void Update (GameTime gameTime)
 
int GetItemsPerLine ()
 
void SetSnapPoint (string name, int id, Vector2? anchor=null, Vector2? offset=null)
 
bool GetSnapPoint (out SnapPoint point)
 
virtual void ExecuteRecursively (UIElement.UIElementAction action)
 
void Append (UIElement element)
 
void Remove ()
 
void RemoveChild (UIElement child)
 
void RemoveAllChildren ()
 
virtual void Draw (SpriteBatch spriteBatch)
 
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 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)
 
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 ()
 
virtual int CompareTo (object obj)
 
int CompareTo (T other)
 
delegate void MouseEvent (UIMouseEvent evt, UIElement listeningElement)
 
delegate void ScrollWheelEvent (UIScrollWheelEvent evt, UIElement listeningElement)
 
delegate void ElementEvent (UIElement affectedElement)
 
delegate void UIElementAction (UIElement element)
 

Public Attributes

StyleDimension Top
 
StyleDimension Left
 
StyleDimension Width
 
StyleDimension Height
 
StyleDimension MaxWidth
 
StyleDimension MaxHeight
 
StyleDimension MinWidth
 
StyleDimension MinHeight
 
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
 

Static Public Attributes

const string SnapPointName_SacrificeSlot = "CreativeSacrificeSlot"
 
const string SnapPointName_SacrificeConfirmButton = "CreativeSacrificeConfirm"
 
const string SnapPointName_InfinitesFilter = "CreativeInfinitesFilter"
 
const string SnapPointName_InfinitesSearch = "CreativeInfinitesSearch"
 
const string SnapPointName_InfinitesItemSlot = "CreativeInfinitesSlot"
 

Protected Member Functions

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

Protected Attributes

readonly List< UIElementElements
 

Properties

UIElement Parent [get, set, private set]
 
int UniqueId [get, set, private set]
 
IEnumerable< UIElementChildren [get, set]
 
UIElement.MouseEvent OnLeftMouseDown [set]
 
UIElement.MouseEvent OnLeftMouseUp [set]
 
UIElement.MouseEvent OnLeftClick [set]
 
UIElement.MouseEvent OnLeftDoubleClick [set]
 
UIElement.MouseEvent OnRightMouseDown [set]
 
UIElement.MouseEvent OnRightMouseUp [set]
 
UIElement.MouseEvent OnRightClick [set]
 
UIElement.MouseEvent OnRightDoubleClick [set]
 
UIElement.MouseEvent OnMouseOver [set]
 
UIElement.MouseEvent OnMouseOut [set]
 
UIElement.ScrollWheelEvent OnScrollWheel [set]
 
UIElement.ElementEvent OnUpdate [set]
 
bool IsMouseHovering [get, set, private set]
 

Private Member Functions

void BuildPage ()
 
void Hover_OnUpdate (UIElement affectedElement)
 
void Hover_OnMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void Hover_OnMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void BuildInfinitesMenuContents (UIElement totalContainer)
 
void BuildSacrificeMenuContents (UIElement totalContainer)
 
void research_OnUpdate (UIElement affectedElement)
 
void FadedMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void FadedMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void AddCogsForSacrificeMenu (UIElement sacrificesContainer)
 
void sacrificeWindow_OnUpdate (UIElement affectedElement)
 
void UpdateVisualFrame ()
 
void AddSymetricalCogsPair (UIElement sacrificesContainer, Vector2 cogOFfsetsInPixels, string assetPath, List< UIImage > imagesList)
 
void descriptionText_OnUpdate (UIElement affectedElement)
 
void sacrificeButton_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void RememberItemSacrifice (int itemId, int amountWeHave, int amountWeNeedTotal)
 
void ForgetItemSacrifice ()
 
void BeginSacrificeAnimation ()
 
void UpdateSacrificeAnimation ()
 
float GetSacrificeAnimationProgress ()
 
void UICreativeInfiniteItemsDisplay_OnUpdate (UIElement affectedElement)
 
void filtersHelper_OnClickingOption ()
 
void UpdateContents ()
 
void AddSearchBar (UIElement searchArea)
 
void searchCancelButton_OnClick (UIMouseEvent evt, UIElement listeningElement)
 
void searchCancelButton_OnMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void OnCanceledInput ()
 
void Click_SearchArea (UIMouseEvent evt, UIElement listeningElement)
 
void AttemptStoppingUsingSearchbar (UIMouseEvent evt)
 
void OnSearchContentsChanged (string contents)
 
void OnStartTakingInput ()
 
void OnEndTakingInput ()
 
void OpenVirtualKeyboardWhenNeeded ()
 
bool EscapeVirtualKeyboard ()
 
void OnFinishedSettingName (string name)
 
void GoBackHere ()
 
bool< UpdateContentsb__63_0 (int x)
 
CalculatedStyle GetDimensionsBasedOnParentDimensions (CalculatedStyle parentDimensions)
 

Static Private Member Functions

static UIPanel CreateBasicPanel ()
 
static void SetBasicSizesForCreativeSacrificeOrInfinitesPanel (UIElement element)
 
static void OffsetRotationsForCogs (float rotationOffset, List< UIImage > cogsList)
 
static UserInterface GetCurrentInterface ()
 

Private Attributes

List< int > _itemIdsAvailableTotal
 
List< int > _itemIdsAvailableToShow
 
CreativeUnlocksTracker _lastTrackerCheckedForEdits
 
int _lastCheckedVersionForEdits
 
UISearchBar _searchBar
 
UIPanel _searchBoxPanel
 
UIState _parentUIState
 
string _searchString
 
UIDynamicItemCollection _itemGrid
 
EntryFilterer< Item, IItemEntryFilter_filterer
 
EntrySorter< int, ICreativeItemSortStep_sorter
 
UIElement _containerInfinites
 
UIElement _containerSacrifice
 
bool _showSacrificesInsteadOfInfinites
 
List< UIImage_sacrificeCogsSmall
 
List< UIImage_sacrificeCogsMedium
 
List< UIImage_sacrificeCogsBig
 
UIImageFramed _sacrificePistons
 
UIParticleLayer _pistonParticleSystem
 
Asset< Texture2D_pistonParticleAsset
 
int _sacrificeAnimationTimeLeft
 
bool _researchComplete
 
bool _hovered
 
int _lastItemIdSacrificed
 
int _lastItemAmountWeHad
 
int _lastItemAmountWeNeededTotal
 
bool _didClickSomething
 
bool _didClickSearchBar
 
UIElement< Parentk__BackingField
 
int< UniqueIdk__BackingField
 
bool< IsMouseHoveringk__BackingField
 
bool _isInitialized
 
CalculatedStyle _innerDimensions
 
CalculatedStyle _dimensions
 
CalculatedStyle _outerDimensions
 
SnapPoint _snapPoint
 

Static Private Attributes

static readonly RasterizerState OverflowHiddenRasterizerState
 
static int _idCounter
 

Detailed Description

Definition at line 23 of file UICreativeInfiniteItemsDisplay.cs.


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