Returns information regarding a "section" of the encounter journal. A "section" is a phase, unit or ability of an encounter.
See also _(API_CAT_EJ).
Signature:
name,
description,
headerType,
abilityIcon,
displayInfo,
siblingID,
nextSectionID,
fileredByDifficulty,
sectionLink,
startsOpen,
flag1,
flag2,
flag3,
flag4
=
EJ_GetSectionInfo(sectionID)
Arguments:
sectionID
- Unique ID of the section. (number
)
Returns:
name
- Label of the section (string
)description
- Text of the section (string
)headerType
- The variant of section this is (number
)0
- Item1
- Encounter2
- Creature3
- Section (Ability or Creature Add)4
- Instance
abilityIcon
- The icon used for abilities (string
)displayInfo
- Creature ID (number
)siblingID
- The sectionID of the next section on the same level (number
)nextSectionID
- The sectionID of the first child of this section (number
)fileredByDifficulty
- True if should not be shown with current difficulty setting (boolean
)sectionLink
- A clickable link to this section of the encounter journal (string
)startsOpen
- Expands the section if true (boolean
)flag1
- A flag describing the icon displayed next to the section (number
)0
- Tank Alert1
- Damage Alert2
- Healer Alert3
- Heroic only4
- Deadly5
- Important6
- Interruptable7
- Magic Effect8
- Curse Effect9
- Poison Effect10
- Disease Effect11
- Enrage
flag2
- A flag describing the icon displayed next to the section (number
)flag3
- A flag describing the icon displayed next to the section (number
)flag4
- A flag describing the icon displayed next to the section (number
)
Examples:
-- this displays how to use recursive functions to traverse an encounter local function traverse(id,off) off=off or "" while id do local nex,ch,_,li=select(6,EJ_GetSectionInfo(id)) print(off..li) if ch then traverse(ch,off.." ") end id=nex end end -- 198 is the encounterID for Ragnaros traverse((select(4,EJ_GetEncounterInfo(198))))