AddRevenue
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 AddRevenue name continue to work.
AddRevenue
Compatibility alias
AddRevenue 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 AddRevenue 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:AddRevenue(RevenueConfig)
local Result = Section:AddRevenue({
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
AddReadOnlyProgress
This compatibility method behaves like CreateProgressBar. Creates a progress bar with explicit current value and display formatting. It is kept so scripts written with the older AddReadOnlyProgress name continue to work.
AddRipple
This compatibility method behaves like CreateRippleButton. Creates a button with a ripple press effect. It is kept so scripts written with the older AddRipple name continue to work.