Reference › Function reference › Conditions

Conditions.edition_state.eclipseMeasures

dependency

Call as

Conditions.edition_state.eclipseMeasures()

Record the dependency Conditions.edition_state.eclipseMeasures, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.

What it does

Lists the two measures of the Eclipse condition with their editor labels.

Arguments

None.

Returns

1table<string, string>Maps "direction" and "energy" to their localized labels.

Editions

Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.

It reads no game API directly.

How the addon calls it

  • Eclipse (widget)
    measure:SetList(eclipseMeasures(), ECLIPSE_MEASURES_ORDER)

Source

Conditions/edition_state.lua, line 231. Read only in game; Duplicate makes an editable copy.

Conditions.edition_state.eclipseMeasures()
    return { direction = L["Direction"], energy = L["Energy"] }

Back to Function reference