Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameContent.Creative.CreativeUI Class Reference

Public Types

enum  ItemSacrificeResult { CannotSacrifice , SacrificedButNotDone , SacrificedAndDone }
 

Public Member Functions

 CreativeUI ()
 
void Initialize ()
 
void Update (GameTime gameTime)
 
void Draw (SpriteBatch spriteBatch)
 
UIElement ProvideItemSlotElement (int itemSlotContext)
 
Item GetItemByIndex (int itemSlotContext)
 
void SetItembyIndex (Item item, int itemSlotContext)
 
void SwapItem (ref Item item)
 
void CloseMenu ()
 
void ToggleMenu ()
 
bool IsShowingResearchMenu ()
 
void SacrificeItemInSacrificeSlot ()
 
void StopPlayingSacrificeAnimations ()
 
bool ShouldDrawSacrificeArea ()
 
bool GetSacrificeNumbers (out int itemIdChecked, out int amountWeHave, out int amountNeededTotal)
 
ItemSacrificeResult SacrificeItem (out int amountWeSacrificed)
 
void Reset ()
 

Public Attributes

int GamepadPointIdForInfiniteItemSearchHack = -1
 
bool GamepadMoveToSearchButtonHack
 

Static Public Attributes

const int ItemSlotIndexes_SacrificeItem = 0
 
const int ItemSlotIndexes_Count = 1
 

Properties

bool Enabled [get, private set]
 
bool Blocked [get]
 

Private Member Functions

void DrawToggleButton (SpriteBatch spritebatch, Vector2 location)
 
void RefreshAvailableInfiniteItemsList ()
 

Private Attributes

bool _initialized
 
Asset< Texture2D_buttonTexture
 
Asset< Texture2D_buttonBorderTexture
 
Item[] _itemSlotsForUI = new Item[1]
 
List< int > _itemIdsAvailableInfinitely = new List<int>()
 
UserInterface _powersUI = new UserInterface()
 
UICreativePowersMenu _uiState
 

Detailed Description

Definition at line 17 of file CreativeUI.cs.


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