m
Move page script moved page API GetWorldStateUIInfo to WoW:API GetWorldStateUIInfo without leaving a redirect
(→Details: fixed disambiguation) |
m (Move page script moved page API GetWorldStateUIInfo to WoW:API GetWorldStateUIInfo without leaving a redirect) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
Get score and flag status within a battlefield. | Get score and flag status within a battlefield. | ||
state, text, icon | uiType, state, hidden, text, icon, dynamicIcon, tooltip, dynamicTooltip, extendedUI, extendedUIState1, extendedUIState2, extendedUIState3 = GetWorldStateUIInfo(index); | ||
---- | ---- | ||
| Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
: uiType, state, text, icon | : uiType, state, hidden, text, icon, dynamicIcon, tooltip, dynamicTooltip, extendedUI, extendedUIState1, extendedUIState2, extendedUIState3 | ||
:;uiType : Integer - Unknown, added in 2.1.0. | :;uiType : Integer - Unknown, added in 2.1.0. | ||
:;state : In [[Warsong Gulch]], returns 1 if the team does not hold the enemy flag and 2 if the team does. Returns 0 outside of the battleground. | :;state : In [[Warsong Gulch]], returns 1 if the team does not hold the enemy flag and 2 if the team does. Returns 0 outside of the battleground. | ||
:;text : String - Score ([score]/ | :;hidden : Boolean - Unknown | ||
:;text : String - Score ([score]/1600 inside [[Arathi Basin]] and [[Eye of the Storm]]; [score]/3 inside [[Warsong Gulch]]) | |||
:;icon : String - Icon ({{Alliance Icon Small}} or {{Horde Icon Small}} icon path returned inside [[Warsong Gulch]]) | :;icon : String - Icon ({{Alliance Icon Small}} or {{Horde Icon Small}} icon path returned inside [[Warsong Gulch]]) | ||
:;dynamicIcon : String - Second icon thats usually position to the right of the main icon (Alliance flag or Horde flag icon path returned insied [[Warsong Gulch]]) | :;dynamicIcon : String - Second icon thats usually position to the right of the main icon (Alliance flag or Horde flag icon path returned insied [[Warsong Gulch]]) | ||
:;tooltip : String - Tooltip displayed when hovering over the row (eg "Horde flag captures") | :;tooltip : String - Tooltip displayed when hovering over the row (eg "Horde flag captures") | ||
| Line 31: | Line 31: | ||
: 2.1 added a new argument called uiType to GetWorldStateUIInfo, because this was added as the first argument you will have to update any code that uses this function. | : 2.1 added a new argument called uiType to GetWorldStateUIInfo, because this was added as the first argument you will have to update any code that uses this function. | ||
:: uiType appears to be 0 for the first valid index and 1 for every other valid index (valid indexes being 1 to [[API_GetNumWorldStateUI|GetNumWorldStateUI]]()) | |||
: In [[The Burning Crusade]] this is used for more then just PvP, you can find it used for some instances like [[Opening the Dark Portal|Black Morass]]. | : In [[The Burning Crusade]] this is used for more then just PvP, you can find it used for some instances like [[Opening the Dark Portal|Black Morass]]. | ||
---- | ---- | ||
{{wowapi}} | {{wowapi}} | ||