Kerbal Space Program
1.12.4
|
Utility Marquee tool for TMPro labels, moves the text horizontally when it's being truncated. More...
Public Types | |
enum | ScrollType { ScrollType.Left, ScrollType.Right, ScrollType.LeftThenRight, ScrollType.RightThenLeft } |
What marquee movement the text should do if its needed More... | |
Public Member Functions | |
void | OnPointerEnter (PointerEventData eventData) |
void | OnPointerExit (PointerEventData eventData) |
Public Attributes | |
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... | |
Protected Member Functions | |
void | AutoStartMarquee () |
virtual void | Awake () |
virtual void | Field_OnValueModified (object arg1) |
IEnumerator | Initialize () |
virtual void | OnDestroy () |
virtual void | Start () |
void | StartMarquee () |
Protected Attributes | |
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... | |
Utility Marquee tool for TMPro labels, moves the text horizontally when it's being truncated.
enum UIMarquee.ScrollType |
|
inlineprotected |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in UIMarquee_PAW, and UIMarquee_ActionField.
|
inline |
|
inline |
|
inlineprotectedvirtual |
Reimplemented in UIMarquee_ActionField, and UIMarquee_PAW.
|
inlineprotected |
bool UIMarquee.autoScrollOnShow = true |
Shoud the marquee start on mouseover/PAW show
float UIMarquee.delayAfterLoop = 1f |
The time after each loop, if loop is enabled
float UIMarquee.delayBeforeLoop = 0.7f |
The time before each loop, if loop is enabled
|
protected |
ref to mouse handler
|
protected |
Is the text long enough to need a scroll marquee
|
protected |
Is the mouse over the mask
bool UIMarquee.isMoving = false |
Is the marquee currently moving
|
protected |
True if target label is anchored to the right, false if anchored to the left or stretched. Needed for movement calculations
|
protected |
fitter for controlling/measuring sizes
|
protected |
The GO that the label was parented to and the marquee wrapper will be attached to
|
protected |
bool UIMarquee.loop = false |
Should the marquee restart when it reaches the end of its movement
|
protected |
Used to start and stop the movement coroutine
|
protected |
The new object for holding the label
|
protected |
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
|
protected |
The mask component for hiding
|
protected |
TMPro.TextAlignmentOptions UIMarquee.movingHorizontalAlign = TMPro.TextAlignmentOptions.MidlineLeft |
Alignment when the text IS moving
|
protected |
TMPro.TextOverflowModes UIMarquee.movingOverflowMode = TMPro.TextOverflowModes.Overflow |
Overflow mode when the text IS moving
float UIMarquee.movingOverrun = 10f |
How many pixels past the end of the text should the marquee move to give more time and space
float UIMarquee.movingSpeed = 20 |
How fast should the marquee move
|
protected |
Transform to track and use for moving the text label
|
protected |
|
protected |
ScrollType UIMarquee.scrollMode = ScrollType.LeftThenRight |
Direction this target text will be marquee'd
float UIMarquee.startDelay = 0.4f |
How long after show/mouseover until it should start moving
TMPro.TextAlignmentOptions UIMarquee.staticHorizontalAlign = TMPro.TextAlignmentOptions.MidlineRight |
Alignment when the text is NOT moving
TMPro.TextOverflowModes UIMarquee.staticOverflowMode = TMPro.TextOverflowModes.Ellipsis |
Overflow mode when the text is NOT moving
bool UIMarquee.stopOnMouseOff = true |
Should the marquee stop once the mouse stops hovering
|
protected |
The target label that will be able to marquee if the text is too wide