Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
KSP.UI.UIHoverText Class Reference
Inheritance diagram for KSP.UI.UIHoverText:
XHoverable

Public Member Functions

void UpdateTargetControl (TextMeshProUGUI textLabel)
 
void UpdateTargetControl (Selectable interactibleTarget)
 
void UpdateText ()
 
- Public Member Functions inherited from XHoverable
void Clear ()
 Clear all state flags (useful in cases like flags becoming stuck if the object is set inactive) More...
 
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 

Public Attributes

bool clearTextOnHoverExit = true
 
string hoverText = ""
 WHat to change the textTarget to when mouse is over this More...
 
Selectable interactibleTargetControl
 The control whose interactible state can prevent the message change More...
 
bool RequireInteractable = true
 Whether the interactible control counts More...
 
TextMeshProUGUI textTargetForHover
 The text label that will be updated when the XSelectable this is attached to is hovered More...
 

Protected Member Functions

new void OnDisable ()
 
void OnHover (XHoverable arg1, PointerEventData arg2)
 
void OnUnhover (XHoverable arg1, PointerEventData arg2)
 
new void Start ()
 
- Protected Member Functions inherited from XHoverable
override void Awake ()
 

Additional Inherited Members

- Properties inherited from XHoverable
bool Hover [get]
 
- Events inherited from XHoverable
Callback< XHoverable,
PointerEventData > 
onPointerEnter
 
Callback< XHoverable,
PointerEventData > 
onPointerExit
 

Member Function Documentation

new void KSP.UI.UIHoverText.OnDisable ( )
inlineprotected
void KSP.UI.UIHoverText.OnHover ( XHoverable  arg1,
PointerEventData  arg2 
)
inlineprotected
void KSP.UI.UIHoverText.OnUnhover ( XHoverable  arg1,
PointerEventData  arg2 
)
inlineprotected
new void KSP.UI.UIHoverText.Start ( )
inlineprotected
void KSP.UI.UIHoverText.UpdateTargetControl ( TextMeshProUGUI  textLabel)
inline
void KSP.UI.UIHoverText.UpdateTargetControl ( Selectable  interactibleTarget)
inline
void KSP.UI.UIHoverText.UpdateText ( )
inline

Member Data Documentation

bool KSP.UI.UIHoverText.clearTextOnHoverExit = true

string KSP.UI.UIHoverText.hoverText = ""

WHat to change the textTarget to when mouse is over this

Selectable KSP.UI.UIHoverText.interactibleTargetControl

The control whose interactible state can prevent the message change

bool KSP.UI.UIHoverText.RequireInteractable = true

Whether the interactible control counts

TextMeshProUGUI KSP.UI.UIHoverText.textTargetForHover

The text label that will be updated when the XSelectable this is attached to is hovered


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