AddSmoothNumber
This compatibility method behaves like AddRevenueCard. Adds an animated metric card with trends, prefixes, suffixes, and supporting mini-statistics. It is kept so scripts written with the older AddSmoothNumber name continue to work.
AddSmoothNumber
Compatibility alias
AddSmoothNumber is an alternate name for AddRevenueCard. New code can use AddRevenueCard.
What it does
This compatibility method behaves like AddRevenueCard. Adds an animated metric card with trends, prefixes, suffixes, and supporting mini-statistics. It is kept so scripts written with the older AddSmoothNumber name continue to work.
When to use it
Use it for dashboard KPIs such as revenue, usage, balances, or growth. Prefer AddRevenueCard in new code so the method name matches the current API.
ElementFunction:AddSmoothNumber(RevenueConfig)
local Result = Section:AddSmoothNumber({
Name = "Example",
Callback = function(value)
print(value)
end,
})Behavior and return value
This alias forwards to AddRevenueCard, so its options, callbacks, and returned value follow the canonical method.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.
Related reference
AddScrollIndicator
This compatibility method behaves like CreateScrollHint. Creates a hint that can prompt or automatically perform a scroll action. It is kept so scripts written with the older AddScrollIndicator name continue to work.
AddStackedChart
This compatibility method behaves like CreateStackedChart. Creates a stacked chart from multiple named series. It is kept so scripts written with the older AddStackedChart name continue to work.