Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Protected Member Functions | Protected Attributes | List of all members
UIMarquee_ActionField Class Reference

Marquee tool for labels in the action groups UI More...

Inheritance diagram for UIMarquee_ActionField:
UIMarquee

Protected Member Functions

override void OnDestroy ()
 
void OnPartActionUIDismiss ()
 
override void Start ()
 
- Protected Member Functions inherited from UIMarquee
void AutoStartMarquee ()
 
virtual void Awake ()
 
virtual void Field_OnValueModified (object arg1)
 
IEnumerator Initialize ()
 
void StartMarquee ()
 

Protected Attributes

UISelectableGridLayoutGroupItem fieldItem
 The underpinning field More...
 
- Protected Attributes inherited from UIMarquee
PointerEnterExitHandler enterExitHandler
 ref to mouse handler More...
 
bool isActive
 Is the text long enough to need a scroll marquee More...
 
bool isMouseOver
 Is the mouse over the mask More...
 
bool isRightAnchored = false
 True if target label is anchored to the right, false if anchored to the left or stretched. Needed for movement calculations More...
 
ContentSizeFitter labelFitter
 fitter for controlling/measuring sizes More...
 
Transform labelParentGO
 The GO that the label was parented to and the marquee wrapper will be attached to More...
 
float leftX = 0
 
IEnumerator marqueeMovementCoroutine
 Used to start and stop the movement coroutine More...
 
GameObject marqueeObject
 The new object for holding the label More...
 
float marqueeWidth
 Width of the marquee has to be cached for calculations, because if anchors are set to stretch, sizedelta wont return a useful value to us More...
 
RectMask2D mask
 The mask component for hiding More...
 
float movementAmount
 
bool movingLeft
 
Vector3 movingTransform
 Transform to track and use for moving the text label More...
 
float originalFontSizeMax
 
bool ready = false
 
TMPro.TextMeshProUGUI targetLabel = null
 The target label that will be able to marquee if the text is too wide More...
 

Additional Inherited Members

- Public Types inherited from UIMarquee
enum  ScrollType { ScrollType.Left, ScrollType.Right, ScrollType.LeftThenRight, ScrollType.RightThenLeft }
 What marquee movement the text should do if its needed More...
 
- Public Member Functions inherited from UIMarquee
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 
- Public Attributes inherited from UIMarquee
bool autoScrollOnShow = true
 Shoud the marquee start on mouseover/PAW show More...
 
float delayAfterLoop = 1f
 The time after each loop, if loop is enabled More...
 
float delayBeforeLoop = 0.7f
 The time before each loop, if loop is enabled More...
 
bool isMoving = false
 Is the marquee currently moving More...
 
bool loop = false
 Should the marquee restart when it reaches the end of its movement More...
 
TMPro.TextAlignmentOptions movingHorizontalAlign = TMPro.TextAlignmentOptions.MidlineLeft
 Alignment when the text IS moving More...
 
TMPro.TextOverflowModes movingOverflowMode = TMPro.TextOverflowModes.Overflow
 Overflow mode when the text IS moving More...
 
float movingOverrun = 10f
 How many pixels past the end of the text should the marquee move to give more time and space More...
 
float movingSpeed = 20
 How fast should the marquee move More...
 
ScrollType scrollMode = ScrollType.LeftThenRight
 Direction this target text will be marquee'd More...
 
float startDelay = 0.4f
 How long after show/mouseover until it should start moving More...
 
TMPro.TextAlignmentOptions staticHorizontalAlign = TMPro.TextAlignmentOptions.MidlineRight
 Alignment when the text is NOT moving More...
 
TMPro.TextOverflowModes staticOverflowMode = TMPro.TextOverflowModes.Ellipsis
 Overflow mode when the text is NOT moving More...
 
bool stopOnMouseOff = true
 Should the marquee stop once the mouse stops hovering More...
 

Detailed Description

Marquee tool for labels in the action groups UI

Member Function Documentation

override void UIMarquee_ActionField.OnDestroy ( )
inlineprotectedvirtual

Reimplemented from UIMarquee.

void UIMarquee_ActionField.OnPartActionUIDismiss ( )
inlineprotected
override void UIMarquee_ActionField.Start ( )
inlineprotectedvirtual

Reimplemented from UIMarquee.

Member Data Documentation

UISelectableGridLayoutGroupItem UIMarquee_ActionField.fieldItem
protected

The underpinning field


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