RSS

Пятница, 15.11.2024, 01:19
Главная » WoW API » API Функции » Строка меню »

GetBonusBarOffset

[ править ]
Returns the current "stance" offset for use with the bonus action bar.
[клоны]
Returns the current "stance" offset for use with the bonus action bar. This value corresponds to what "stance" the player is currently in, and more specifically which set of actions correspond to that stance. Action IDs for special stances start on action bar #7 (or NUM_ACTIONBAR_PAGES + 1), so the offset returned by this function corresponds to the number to be added to NUM_ACTIONBAR_PAGES in calculating action IDs for these action bars.

Note that the UI definition of "stance" includes not just warrior stances but also druid shapeshift forms, rogue/druid stealth, priest shadowform, and various other cases, but does not necessarily include all states normally presented in the default UI's stance/shapeshift bar (notable exclusions are paladin auras and death knight presences).

Signature:
Code
offset = GetBonusBarOffset()

Returns:
  • offset - Offset of the stance's action bar in relation to NUM_ACTIONBAR_PAGES (number)

Также смотрите: Строка меню , ActionBar functions
Ссылки: http://wowprogramming.com/docs/api/GetBonusBarOffset