Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GetWorldStateUIInfo

From WoW Classic Wiki

Get score and flag status within a battlefield.

 state, text, icon, isFlashing, dynamicIcon, tooltip, dynamicTooltip, extendedUI, extendedUIState1, extendedUIState2, extendedUIState3 = GetWorldStateUIInfo(index);

Arguments

index
index
Interger - 1 for Alliance data and 2 for Horde data.

Returns

state, text, icon, isFlashing, dynamicIcon, toolTip, dynamicTooltip, extendedUI, extendedUIState1, extendedUIState2, extendedUIState3
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]/2000 inside Arathi Basin; [score]/3 inside Warsong Gulch)
icon
String - Icon (Alliance Crest or Horde Crest icon path returned inside Warsong Gulch)
isFlashing
Boolean - Wether or not the dynamicIcon should be flashing (it flashes if somebody has the flag)
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")
dynamicTooltip
String - Tooltip displayed when hovering over the dynamicIcon (eg "Alliance flag has been picked up")
extendedUI
? - unknown
extendedUIState1
? - unknown
extendedUIState2
? - unknown
extendedUIState3
? - unknown