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
UnityEngine.UI.Dropdown Class Reference
+ Inheritance diagram for UnityEngine.UI.Dropdown:
+ Collaboration diagram for UnityEngine.UI.Dropdown:

Classes

class  DropdownEvent
 
class  DropdownItem
 
class  OptionData
 
class  OptionDataList
 

Public Types

enum  Transition { None , ColorTint , SpriteSwap , Animation }
 

Public Member Functions

void SetValueWithoutNotify (int input)
 
void RefreshShownValue ()
 
void AddOptions (List< Dropdown.OptionData > options)
 
void AddOptions (List< string > options)
 
void AddOptions (List< Sprite > options)
 
void ClearOptions ()
 
virtual void OnPointerClick (PointerEventData eventData)
 
virtual void OnSubmit (BaseEventData eventData)
 
virtual void OnCancel (BaseEventData eventData)
 
void Show ()
 
void Hide ()
 
virtual bool IsInteractable ()
 
Selectable FindSelectable (Vector3 dir)
 
virtual Selectable FindSelectableOnLeft ()
 
virtual Selectable FindSelectableOnRight ()
 
virtual Selectable FindSelectableOnUp ()
 
virtual Selectable FindSelectableOnDown ()
 
virtual void OnMove (AxisEventData eventData)
 
virtual void OnPointerDown (PointerEventData eventData)
 
virtual void OnPointerUp (PointerEventData eventData)
 
virtual void OnPointerEnter (PointerEventData eventData)
 
virtual void OnPointerExit (PointerEventData eventData)
 
virtual void OnSelect (BaseEventData eventData)
 
virtual void OnDeselect (BaseEventData eventData)
 
virtual void Select ()
 
virtual bool IsActive ()
 
bool IsDestroyed ()
 
bool IsInvoking ()
 
bool IsInvoking (string methodName)
 
void CancelInvoke ()
 
void CancelInvoke (string methodName)
 
void Invoke (string methodName, float time)
 
void InvokeRepeating (string methodName, float time, float repeatRate)
 
Coroutine StartCoroutine (string methodName)
 
Coroutine StartCoroutine (string methodName, [DefaultValue("null")] object value)
 
Coroutine StartCoroutine (IEnumerator routine)
 
Coroutine StartCoroutine_Auto (IEnumerator routine)
 
void StopCoroutine (IEnumerator routine)
 
void StopCoroutine (Coroutine routine)
 
void StopCoroutine (string methodName)
 
void StopAllCoroutines ()
 
Component GetComponent (Type type)
 
T GetComponent< T > ()
 
Component GetComponentInChildren (Type t, bool includeInactive)
 
T GetComponentInChildren< T > ()
 
T[] GetComponentsInChildren< T > (bool includeInactive)
 
void GetComponentsInChildren< T > (bool includeInactive, List< T > result)
 
void GetComponentsInChildren< T > (List< T > results)
 
Component GetComponentInParent (Type t, bool includeInactive)
 
T GetComponentInParent< T > ()
 
T[] GetComponentsInParent< T > (bool includeInactive)
 
void GetComponentsInParent< T > (bool includeInactive, List< T > results)
 
T[] GetComponentsInParent< T > ()
 
void GetComponents (Type type, List< Component > results)
 
void GetComponents< T > (List< T > results)
 
T[] GetComponents< T > ()
 
unsafe int GetInstanceID ()
 
override int GetHashCode ()
 
override bool Equals (object other)
 
static void Destroy (Object obj, [DefaultValue("0.0F")] float t)
 
static void DestroyImmediate (Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
 
static Object[] FindObjectsOfType (Type type, bool includeInactive)
 
static void DontDestroyOnLoad ([NotNull("NullExceptionObject")] Object target)
 
override string ToString ()
 

Static Public Member Functions

static int AllSelectablesNoAlloc (Selectable[] selectables)
 
static void print (object message)
 
static implicit operator bool (Object exists)
 
static Object Instantiate (Object original, Vector3 position, Quaternion rotation)
 
static Object Instantiate (Object original)
 
static T Instantiate< T > (T original)
 
static T Instantiate< T > (T original, Vector3 position, Quaternion rotation)
 
static void Destroy (Object obj)
 
static void DestroyImmediate (Object obj)
 
static T[] FindObjectsOfType< T > ()
 
static bool operator== (Object x, Object y)
 
static bool operator!= (Object x, Object y)
 

Protected Types

enum  SelectionState {
  Normal , Highlighted , Pressed , Selected ,
  Disabled
}
 

Protected Member Functions

 Dropdown ()
 
override void Awake ()
 
override void Start ()
 
override void OnDisable ()
 
virtual GameObject CreateBlocker (Canvas rootCanvas)
 
virtual void DestroyBlocker (GameObject blocker)
 
virtual GameObject CreateDropdownList (GameObject template)
 
virtual void DestroyDropdownList (GameObject dropdownList)
 
virtual Dropdown.DropdownItem CreateItem (Dropdown.DropdownItem itemTemplate)
 
virtual void DestroyItem (Dropdown.DropdownItem item)
 
override void OnCanvasGroupChanged ()
 
override void OnDidApplyAnimationProperties ()
 
override void OnEnable ()
 
override void OnTransformParentChanged ()
 
virtual void InstantClearState ()
 
virtual void DoStateTransition (Selectable.SelectionState state, bool instant)
 
bool IsHighlighted ()
 
bool IsPressed ()
 
virtual void OnDestroy ()
 
virtual void OnRectTransformDimensionsChange ()
 
virtual void OnBeforeTransformParentChanged ()
 
virtual void OnCanvasHierarchyChanged ()
 

Protected Attributes

int m_CurrentIndex
 

Static Protected Attributes

static Selectable[] s_Selectables
 
static int s_SelectableCount
 

Package Functions

string GetScriptClassName ()
 
void GetComponentFastPath (Type type, IntPtr oneFurtherThanResultValue)
 
static Object FindObjectFromInstanceID (int instanceID)
 

Static Package Attributes

static int OffsetOfInstanceIDInCPlusPlusObject
 

Properties

RectTransform template [get, set]
 
Text captionText [get, set]
 
Image captionImage [get, set]
 
Text itemText [get, set]
 
Image itemImage [get, set]
 
List< Dropdown.OptionDataoptions [get, set]
 
Dropdown.DropdownEvent onValueChanged [get, set]
 
float alphaFadeSpeed [get, set]
 
int value [get, set]
 
class< DelayedDestroyDropdownListIDisposable [set]
 
static Selectable[] allSelectablesArray [get, set]
 
static int allSelectableCount [get, set]
 
static List< SelectableallSelectables [get, set]
 
Navigation navigation [get, set]
 
Selectable.Transition transition [get, set]
 
ColorBlock colors [get, set]
 
SpriteState spriteState [get, set]
 
AnimationTriggers animationTriggers [get, set]
 
Graphic targetGraphic [get, set]
 
bool interactable [get, set]
 
bool isPointerInside [get, set]
 
bool isPointerDown [get, set]
 
bool hasSelection [get, set]
 
Image image [get, set]
 
Animator animator [get, set]
 
Selectable.SelectionState currentSelectionState [get, set]
 
bool useGUILayout [get, set]
 
bool enabled [get, set]
 
bool isActiveAndEnabled [get, set]
 
Transform transform [get, set]
 
GameObject gameObject [get, set]
 
string name [get, set]
 
HideFlags hideFlags [set]
 

Private Member Functions

void Set (int value, bool sendCallback=true)
 
void SetupTemplate (Canvas rootCanvas)
 
Dropdown.DropdownItem AddItem (Dropdown.OptionData data, bool selected, Dropdown.DropdownItem itemTemplate, List< Dropdown.DropdownItem > items)
 
void AlphaFadeList (float duration, float alpha)
 
void AlphaFadeList (float duration, float start, float end)
 
void SetAlpha (float alpha)
 
IEnumerator DelayedDestroyDropdownList (float delay)
 
void ImmediateDestroyDropdownList ()
 
void OnSelectItem (Toggle toggle)
 
void OnSetProperty ()
 
void OnApplicationFocus (bool hasFocus)
 
void Navigate (AxisEventData eventData, Selectable sel)
 
void StartColorTween (Color targetColor, bool instant)
 
void DoSpriteSwap (Sprite newSprite)
 
void TriggerAnimation (string triggername)
 
void EvaluateAndTransitionToSelectionState ()
 
static bool IsInvoking ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName)
 
static void CancelInvoke ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName)
 
static void Internal_CancelInvokeAll ([NotNull("NullExceptionObject")] MonoBehaviour self)
 
static bool Internal_IsInvokingAll ([NotNull("NullExceptionObject")] MonoBehaviour self)
 
static void InvokeDelayed ([NotNull("NullExceptionObject")] MonoBehaviour self, string methodName, float time, float repeatRate)
 
static bool IsObjectMonoBehaviour ([NotNull("NullExceptionObject")] Object obj)
 
Coroutine StartCoroutineManaged (string methodName, object value)
 
Coroutine StartCoroutineManaged2 (IEnumerator enumerator)
 
void StopCoroutineManaged (Coroutine routine)
 
void StopCoroutineFromEnumeratorManaged (IEnumerator routine)
 
void GetComponentsForListInternal (Type searchType, object resultList)
 
IntPtr GetCachedPtr ()
 
static string ToString (Object obj)
 
static int GetOffsetOfInstanceIDInCPlusPlusObject ()
 
static Object Internal_CloneSingle ([NotNull("NullExceptionObject")] Object data)
 
static string GetName ([NotNull("NullExceptionObject")] Object obj)
 
static void SetName ([NotNull("NullExceptionObject")] Object obj, string name)
 
static Object Internal_InstantiateSingle_Injected (Object data, ref Vector3 pos, ref Quaternion rot)
 

Static Private Member Functions

static T GetOrAddComponent< T > (GameObject go)
 
static Dropdown ()
 
static Vector3 GetPointOnRectEdge (RectTransform rect, Vector2 dir)
 
static bool CompareBaseObjects (Object lhs, Object rhs)
 
static bool IsNativeObjectAlive (Object o)
 
static void CheckNullArgument (object arg, string message)
 
static Object Internal_InstantiateSingle ([NotNull("NullExceptionObject")] Object data, Vector3 pos, Quaternion rot)
 

Private Attributes

RectTransform m_Template
 
Text m_CaptionText
 
Image m_CaptionImage
 
Text m_ItemText
 
Image m_ItemImage
 
int m_Value
 
Dropdown.OptionDataList m_Options
 
Dropdown.DropdownEvent m_OnValueChanged
 
float m_AlphaFadeSpeed
 
GameObject m_Dropdown
 
GameObject m_Blocker
 
List< Dropdown.DropdownItemm_Items
 
TweenRunner< FloatTweenm_AlphaTweenRunner
 
bool validTemplate
 
class< DelayedDestroyDropdownListd__75: IEnumerator<object>
 
class< DelayedDestroyDropdownListIEnumerator
 
bool m_EnableCalled
 
Navigation m_Navigation
 
Selectable.Transition m_Transition
 
ColorBlock m_Colors
 
SpriteState m_SpriteState
 
AnimationTriggers m_AnimationTriggers
 
bool m_Interactable
 
Graphic m_TargetGraphic
 
bool m_GroupsAllowInteraction
 
bool< isPointerInsidek__BackingField
 
bool< isPointerDownk__BackingField
 
bool< hasSelectionk__BackingField
 
readonly List< CanvasGroupm_CanvasGroupCache
 
IntPtr m_CachedPtr
 

Static Private Attributes

const int kHighSortingLayer = 30000
 
static Dropdown.OptionData s_NoOptionData
 
const string objectIsNullMessage = "The Object you want to instantiate is null."
 
const string cloneDestroyedMessage = "Instantiate failed because the clone was destroyed during creation. This can happen if DestroyImmediate is called in MonoBehaviour.Awake."
 

Detailed Description

Definition at line 18 of file Dropdown.cs.


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