Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetWorldStateUIInfo

Last wiki revision 2020-04-04

Get score and flag status within a battlefield. uiType, state, hidden, text, icon, dynamicIcon, tooltip, dynamicTooltip, extendedUI, extendedUIState1, extendedUIState2, extendedUIState3 = GetWorldStateUIInfo(index);

  • index : Number : between 1 and GetNumWorldStateUI.
  • uiType : Number - 1 if the element should be conditionally displayed (based on the state of the "Show World PvP Objectives" setting and the player's location).
  • state : Number - 0 indicates the element will not be displayed. In Warsong Gulch, returns 1 if the team does not hold the enemy flag and 2 if the team does.
  • hidden : Boolean - ?
  • text : String - Score ([score]/1600 inside Arathi Basin and Eye of the Storm; [score]/3 inside Warsong Gulch)
  • icon : String - Icon ( or 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)
  • 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 : String - "CAPTUREPOINT" for objective capture bar, "" for regular objectives,
  • extendedUIState1 : Number - for CaptureBar: current objective position : 100 means left, 0 means right,
  • extendedUIState2 : Number - for CaptureBar: neutral zone width : 0 means no neutral zone, 90 means 5% Alliance, 90% neutral and 5% Horde,
  • extendedUIState3 : Number - for CaptureBar: bar index.
  • 4.1 added a new argument called "hidden", as the third argument, between "state" and "text"
  • 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 GetNumWorldStateUI)
  • In The Burning Crusade this is used for more then just PvP, you can find it used for some instances like Black Morass.

Source

https://warcraft.wiki.gg/wiki/API_GetWorldStateUIInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.