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.States.UIVirtualKeyboard Class Reference
+ Inheritance diagram for Terraria.GameContent.UI.States.UIVirtualKeyboard:
+ Collaboration diagram for Terraria.GameContent.UI.States.UIVirtualKeyboard:

Public Types

enum  KeyState { Default , Symbol , Shift }
 

Public Member Functions

 UIVirtualKeyboard (string labelText, string startingText, UIVirtualKeyboard.KeyboardSubmitEvent submitAction, Action cancelAction, int inputMode=0, bool allowEmpty=false)
 
void SetMaxInputLength (int length)
 
void SetKeyState (UIVirtualKeyboard.KeyState keyState)
 
override void OnActivate ()
 
override void OnDeactivate ()
 
delegate void KeyboardSubmitEvent (string text)
 
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)
 
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 MouseOver (UIMouseEvent evt)
 
virtual void MouseOut (UIMouseEvent evt)
 
virtual void ScrollWheel (UIScrollWheelEvent evt)
 
void Activate ()
 
void DrawDebugHitbox (BasicDebugDrawer drawer, float colorIntensity=0f)
 
void Deactivate ()
 
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)
 

Static Public Member Functions

static void CycleSymbols ()
 
static void BackSpace ()
 
static void Submit ()
 
static void Cancel ()
 
static void Write (string text)
 
static void CursorLeft ()
 
static void CursorRight ()
 
static bool CanDisplay (int keyboardContext)
 
static void CacheCanceledInput (int cacheMode)
 

Public Attributes

Func< string, bool > CustomTextValidationForUpdate
 
Func< string, bool > CustomTextValidationForSubmit
 
Func< bool > CustomEscapeAttempt
 
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

static int OffsetDown
 
static bool ShouldHideText
 

Protected Member Functions

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

Protected Attributes

readonly List< UIElementElements
 

Properties

string Text [get, set]
 
bool HideContents [get, set]
 
static bool CanSubmit [get, set]
 
static int KeyboardContext [get, set]
 
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 BuildSpaceBarArea (UIPanel mainPanel)
 
void PressSpace ()
 
bool CanRestore ()
 
void TypeText (UIMouseEvent evt, UIElement listeningElement)
 
void ValidateText ()
 
bool TextIsValidForSubmit ()
 
void StyleKey< T > (UITextPanel< T > button, bool external=false)
 
UITextPanel< object > CreateKeyboardButton (object text, int x, int y, int width=1, bool style=true)
 
bool ShouldShowKeyboard ()
 
bool TryEscapingMenu ()
 
void UpdateOffsetDown ()
 
void InternalSubmit ()
 
void RestoreCanceledInput (int cacheMode)
 
void CopyTextToSign ()
 
void CopyTextToChest ()
 
void FadedMouseOver (UIMouseEvent evt, UIElement listeningElement)
 
void FadedMouseOut (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_0 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_1 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_2 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_3 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_4 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_5 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_6 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_7 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_9 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_12 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_13 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_14 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_17 (UIMouseEvent evt, UIElement listeningElement)
 
void<.ctor > b__50_18 (UIMouseEvent evt, UIElement listeningElement)
 
CalculatedStyle GetDimensionsBasedOnParentDimensions (CalculatedStyle parentDimensions)
 

Static Private Member Functions

static UIVirtualKeyboard ()
 

Private Attributes

UITextPanel< object >[] _keyList
 
UITextPanel< object > _shiftButton
 
UITextPanel< object > _symbolButton
 
UITextBox _textBox
 
UITextPanel< LocalizedText_submitButton
 
UITextPanel< LocalizedText_cancelButton
 
UIText _label
 
UITextPanel< object > _enterButton
 
UITextPanel< object > _spacebarButton
 
UITextPanel< object > _restoreButton
 
Asset< Texture2D_textureShift
 
Asset< Texture2D_textureBackspace
 
Color _internalBorderColor
 
Color _internalBorderColorSelected
 
UITextPanel< LocalizedText_submitButton2
 
UITextPanel< LocalizedText_cancelButton2
 
UIElement outerLayer1
 
UIElement outerLayer2
 
bool _allowEmpty
 
UIVirtualKeyboard.KeyState _keyState
 
UIVirtualKeyboard.KeyboardSubmitEvent _submitAction
 
Action _cancelAction
 
int _lastOffsetDown
 
int _keyboardContext
 
bool _edittingSign
 
bool _edittingChest
 
float _textBoxHeight
 
float _labelHeight
 
bool _canSubmit
 
UIElement< Parentk__BackingField
 
int< UniqueIdk__BackingField
 
bool< IsMouseHoveringk__BackingField
 
bool _isInitialized
 
CalculatedStyle _innerDimensions
 
CalculatedStyle _dimensions
 
CalculatedStyle _outerDimensions
 
SnapPoint _snapPoint
 

Static Private Attributes

static UIVirtualKeyboard _currentInstance
 
static string _cancelCacheSign
 
static string _cancelCacheChest
 
const string DEFAULT_KEYS = "1234567890qwertyuiopasdfghjkl'zxcvbnm,.?"
 
const string SHIFT_KEYS = "1234567890QWERTYUIOPASDFGHJKL'ZXCVBNM,.?"
 
const string SYMBOL_KEYS = "1234567890!@#$%^&*()-_+=/\\{}[]<>;:\"`|~£¥"
 
const float KEY_SPACING = 4f
 
const float KEY_WIDTH = 48f
 
const float KEY_HEIGHT = 37f
 
static readonly RasterizerState OverflowHiddenRasterizerState
 
static int _idCounter
 

Detailed Description

Definition at line 19 of file UIVirtualKeyboard.cs.


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