RSS

Воскресенье, 22.12.2024, 12:11
Главная » WoW API » API Функции » ПвП »

EJ_GetSectionInfo

[ править ]
Returns information regarding a "section" of the encounter journal. A "section" is a phase, unit or ability of an encounter.
[клоны]
Returns information regarding a "section" of the encounter journal. A "section" is a phase, unit or ability of an encounter.


Signature:
Code
name, description, sectionType, texture, unknown, nextSection, firstChild, unknown, sectionLink, unknown, specialFlags = EJ_GetSectionInfo(sectionID)

Arguments:
  • sectionID - Unique ID of the section. (number)

Returns:
  • name - Label of the section (string)
  • description - Text of the section (string)
  • sectionType - The variant of section this is (number)
      0 - Phase
    • 1 - Creature
    • 2 - Ability

  • texture - The texture to be used for this section (string)
  • unknown - Unknown numeric value (number)
  • nextSection - The sectionID of the next section on the same level (number)
  • firstChild - The sectionID of the first child of this section (number)
  • unknown - Unknown boolean value (boolean)
  • sectionLink - A clickable link to this section of the encounter journal (string)
  • unknown - Unknown boolean value (boolean)
  • specialFlags - A flag describing the icon displayed next to the section (number)
      3 - Heroic only
    • 4 - Deadly
    • Other values - More testing is needed on the values for this attribute.

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))))

Также смотрите: ПвП
Ссылки: http://wowprogramming.com/docs/api/EJ_GetSectionInfo