v0.13.7

DurationTextBindingObject

object type30 methodsavailable in: camelot

Methods

In the emulator: 30 implemented.

methodwhat it doesstatus
AssignCopies another duration text binding and assigns it to this one.
(other: DurationTextBinding)
implemented
CanFormatTextReturns true if this binding has enough configuration to produce formatted text.
(): boolean
implemented
CanUpdateFontStringReturns true if this binding has enough configuration to update its font string with formatted text.
(): boolean
implemented
ClearTextColorCurveClears the text color curve used by this binding.
()
implemented
CopyReturns a copy of this duration text binding.
(): DurationTextBinding
implemented
DisableDisables automatic updates for this duration text binding.
()
implemented
EnableEnables automatic updates for this duration text binding.
()
implemented
GetDurationReturns the duration object used by this duration text binding.
(): LuaDurationObject?
implemented
GetExpiredTextReturns the text shown when the duration has fully expired.
(): string?
implemented
GetFontStringReturns the font string updated by this duration text binding.
(): FontString?
implemented
GetFormattedTextReturns the text that would currently be assigned to the configured font string.
(): string
implemented
GetFormattedTextColorReturns the text color that would currently be assigned to the configured font string.
(): ColorMixin?
implemented
GetTextColorCurveReturns the text color curve used by this binding.
(): (LuaColorCurveObject?, DurationTextBindingProperty?)
implemented
GetTimeModifierReturns the time modifier used when sampling duration values for this binding.
(): DurationTimeModifier
implemented
GetUpdateIntervalReturns the minimum number of seconds between automatic text updates. A value of zero updates every game tick.
(): number
implemented
GetZeroDurationTextReturns the text shown when the duration is not configured, or represents a zero-duration time span.
(): string?
implemented
HasSecretValuesReturns true if the duration text binding has been configured with any secret values.
(): boolean
implemented
IsEnabledReturns true if this duration text binding updates its font string automatically.
(): boolean
implemented
SetDurationConfigures the duration object used by this duration text binding.
(duration: LuaDurationObject)
implemented
SetEnabledConfigures whether this duration text binding updates its font string automatically.
(enabled: boolean)
implemented
SetExpiredTextConfigures the text shown when the duration has fully expired.
(text: string?)
implemented
SetFontStringConfigures the font string updated by this duration text binding.
(fontString: FontString)
implemented
SetFormatterConfigures the text format used by this duration text binding to display the remaining duration using the supplied formatter.
(formatter: NumericFormatter)
implemented
SetTextColorCurveConfigures this duration text binding to adjust fontstring text color by evaluating a duration property through a curve.
(curve: LuaColorCurveObject, property: DurationTextBindingProperty)
implemented
SetTextFormatConfigures the text format used by this duration text binding. The format string may contain '{}' placeholders, each of which is substituted by the corresponding component in the supplied array.
(formatString: stringView, components: DurationTextBindingFormatComponent[])
implemented
SetTimeModifierConfigures the time modifier used when sampling duration values for this binding.
(modifier: DurationTimeModifier)
implemented
SetToDefaultsResets this duration text binding to its default state, clearing the configured font string, duration, format, formatter, and fallback text.
()
implemented
SetUpdateIntervalConfigures the minimum number of seconds between automatic text updates. A value of zero updates every game tick.
(updateInterval: number)
implemented
SetZeroDurationTextConfigures the text shown when the duration is not configured, or represents a zero-duration time span.
(text: string?)
implemented
UpdateFontStringImmediately updates the configured font string from the current duration state.
()
implemented

sources

Methods and inheritance: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (camelot 1.60.1). Descriptions: Blizzard's API documentation (Blizzard_APIDocumentationGenerated).