Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:ActionButtonGroupSetTimeAbbreviations

From RoR Wiki
Revision as of 19:40, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Sets the unit abbreviations an ActionButtonGroup appends to its cooldown countdowns.

ActionButtonGroupSetTimeAbbreviations(groupName, days, hours, minutes, seconds)

Arguments

groupName
string – Name of an ActionButtonGroup window.
days
wstring – Abbreviation for days.
hours
wstring – Abbreviation for hours.
minutes
wstring – Abbreviation for minutes.
seconds
wstring – Abbreviation for seconds.

Returns

Nothing.

Details

  • The four strings are stored on the group in the order given. The argument names follow the strings the stock UI passes.
  • The countdown text of ActionButtonGroupSetTimer only shows whole minutes or seconds, so only the minutes and seconds strings appear on the buttons.
  • All four must be wide strings. A plain Lua string raises an Invalid Parameters error.

Errors

  • Error in function call 'ActionButtonGroupSetTimeAbbreviations': Window %s does not exist
  • Error in function call 'ActionButtonGroupSetTimeAbbreviations': Window %s is not a ActionButtonGroup

Example

From ea_backpackwindow/source/backpackiconview.lua:

ActionButtonGroupSetTimeFormat( pocketName.."Buttons", Window.TimeFormat.LARGEST_UNIT_TRUNCATE )
ActionButtonGroupSetTimeAbbreviations( pocketName.."Buttons",
                                      GetString(StringTables.Default.LABEL_TIMER_DAYS_ABBREVIATION),
                                      GetString(StringTables.Default.LABEL_TIMER_HOURS_ABBREVIATION),
                                      GetString(StringTables.Default.LABEL_TIMER_MINUTES_ABBREVIATION),
                                      GetString(StringTables.Default.LABEL_TIMER_SECONDS_ABBREVIATION) )

See also