DB/WorldStateUI: Difference between revisions

From wowdev
Jump to navigation Jump to search
mNo edit summary
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This table holds information about events (PvP and PvE) that take place in the map and get displayed on the top in the interface.  
This table holds information about events (PvP and PvE) that take place in the map and get displayed on the top in the interface. A world state consist of an ID and a value. The state 2556 for example tells, how many towers in Zangarmarsh the Horde captured. All strings can have "%*w" references to worldstates. Medivhs shield in CoT is "Medivhs shield: %2540w%" resulting in "Medivhs shield: 50%". There is sadly no table for all worldstates, so you may not find some of them which are used somewhere, but nowhere referenced.
 
==1.12.1.5875==
struct WorldStateUIRec {
  uint32_t m_ID;
  uint32_t m_mapID;
  uint32_t m_areaID;
  {{Template:Type|stringref}} m_icon;
  {{Template:Type|langstringref}} m_string_lang;
  {{Template:Type|langstringref}} m_tooltip_lang;
  uint32_t state?
  uint32_t m_stateVariable;
  uint32_t m_type;
  {{Template:Type|stringref}} m_dynamicIcon;
  {{Template:Type|langstringref}} m_dynamicTooltip_lang;
  {{Template:Type|stringref}} m_extendedUI;
  uint32_t m_extendedUIStateVariable[3];
};


==Structure==
==Structure==
Line 11: Line 28:
|1  || ID  || Integer  ||  
|1  || ID  || Integer  ||  
|- style="background:#F0F8FF;"
|- style="background:#F0F8FF;"
|2  || [[Map.dbc|Map]]  || iRefID  || On which map this event takes place. ||
|2  || [[Map.dbc|Map]]  || iRefID  || On which map this event takes place. Can be -1 to show up everywhere.
|- style="background:#F0F8FF;"
|- style="background:#F0F8FF;"
|3  || [[AreaTable.dbc|Zone]] ||  iRefID || In which sub-zone. Can be zero for "everywhere".
|3  || [[AreaTable.dbc|Zone]] ||  iRefID || In which sub-zone. Can be zero for "everywhere".
|- style="background:#C1FFC1;"
|- style="background:#C1FFC1;"
|4 || PhaseShift || Integer || Only set (128) for the DeathKnightStartEvent. (WotLK) Used for phase states which are not shown in the UI.
|4 || PhaseShift || Integer || Only set (128) for the DeathKnightStartEvent. (WotLK) Used for phase states.
|-  
|-  
|5  || Icon  || String  || The icon that is used in the interface.
|5  || Icon  || String  || The icon that is used in the interface.
|-  
|-  
|6  || Text || [[Loc]] || The text displayed in the UI.
|6-22 || Text || [[Loc]] || The text displayed in the UI.
|-  
|-  
|15 || Description  || [[Loc]] || A little mouse-over-description.
|23-39 || Description  || [[Loc]] || A little mouse-over-description.
|-  
|-  
|24 || Unknown || Integer  || -1 for pre-BC ones, 0 for others. ||
|40 || RealState? || Integer  || -1 for "states" that appear on battleground statistics. ("Captured flags", ...) -- removed in cata?
|-  
|-  
|25 || Group? || Integer  || Maybe some kind of group.
|41 || WorldState || Integer  || This is the actual ID used.  
|-  
|-  
|26 || Type? || Integer  || Only 3 different values: 0,1 and 2.
|42 || Type  || Integer  || Only 3 different values: 0,1 and 2. 2 is for battleground scores ("Captured flags", ...).
|-  
|-  
|27 || FlashingIcon || String  || Only set for warsong-gulch-flags.  
|43 || dynamicIcon || String  || Only set for warsong-gulch-flags.  
|-  
|-  
|28 || EventText || [[Loc]] || Again, set for the flags. "Flag is picked up".
|44-60 || dynamicTooltip || [[Loc]] || Again, set for the flags. "Flag is picked up".
|-  
|-  
|37 || Type? || String  || If set, then its "CAPTUREPOINT". Used for points that need to be tapped over time. (Progress: *%)
|61 || extendedUI || String  || If set, then its "CAPTUREPOINT". Used for points that need to be tapped over time. (Progress: *%)
|-  
|-  
|38 || Unknown || Integer  || Only set if is CAPUTREPOINT.  
|62 || extendedUIStateVariable || Integer  || This worldstate tells how far the captureing proceeded. 100: Alliance / left, 0: Horde / right
|-  
|-  
|39 || Unknown || Integer  || Same. Was unable to find a table, this is pointing to.
|63 || extendedUIStateVariableNeutral || Integer  || This state defines the grey part of the bar. In percent of the whole bar.
|-  
|-  
|40 || Unknown || Null
|64 || extendedUIStateVariable || Null || Most likely another state to handle some data.
|}
|}


--[[User:Schlumpf|schlumpf_]] 17:42, 28 September 2008 (CEST)
==6.0.1.18179==
 
struct WorldStateUIRec {
[[Category:DBC]][[Category:3.0.2.8905]]
  uint32_t m_ID;
  uint32_t m_mapID;
  uint32_t m_areaID;
  uint32_t m_phaseUseFlags;
  uint32_t m_phaseID;
  uint32_t m_phaseGroupID;
  {{Template:Type|stringref}} m_icon;
  {{Template:Type|langstringref}} m_string_lang;
  {{Template:Type|langstringref}} m_tooltip_lang;
  uint32_t m_stateVariable;
  uint32_t m_type;
  {{Template:Type|stringref}} m_dynamicIcon;
  {{Template:Type|langstringref}} m_dynamicTooltip_lang;
  {{Template:Type|stringref}} m_extendedUI;
  uint32_t m_extendedUIStateVariable[3];
};
[[Category:DBC]][[Category:3.0.2.8905]][[Category:DBC_WotLK]]
[[Category:DBC_WoD]]
[[Category:6.0.1.18179]]

Latest revision as of 22:23, 1 October 2017

This table holds information about events (PvP and PvE) that take place in the map and get displayed on the top in the interface. A world state consist of an ID and a value. The state 2556 for example tells, how many towers in Zangarmarsh the Horde captured. All strings can have "%*w" references to worldstates. Medivhs shield in CoT is "Medivhs shield: %2540w%" resulting in "Medivhs shield: 50%". There is sadly no table for all worldstates, so you may not find some of them which are used somewhere, but nowhere referenced.

1.12.1.5875

struct WorldStateUIRec {
  uint32_t m_ID;
  uint32_t m_mapID;
  uint32_t m_areaID;
  stringref m_icon;
  langstringref m_string_lang;
  langstringref m_tooltip_lang;
  uint32_t state?
  uint32_t m_stateVariable;
  uint32_t m_type;
  stringref m_dynamicIcon;
  langstringref m_dynamicTooltip_lang;
  stringref m_extendedUI;
  uint32_t m_extendedUIStateVariable[3];
};

Structure

Column Field Type Notes
1 ID Integer
2 Map iRefID On which map this event takes place. Can be -1 to show up everywhere.
3 Zone iRefID In which sub-zone. Can be zero for "everywhere".
4 PhaseShift Integer Only set (128) for the DeathKnightStartEvent. (WotLK) Used for phase states.
5 Icon String The icon that is used in the interface.
6-22 Text Loc The text displayed in the UI.
23-39 Description Loc A little mouse-over-description.
40 RealState? Integer -1 for "states" that appear on battleground statistics. ("Captured flags", ...) -- removed in cata?
41 WorldState Integer This is the actual ID used.
42 Type Integer Only 3 different values: 0,1 and 2. 2 is for battleground scores ("Captured flags", ...).
43 dynamicIcon String Only set for warsong-gulch-flags.
44-60 dynamicTooltip Loc Again, set for the flags. "Flag is picked up".
61 extendedUI String If set, then its "CAPTUREPOINT". Used for points that need to be tapped over time. (Progress: *%)
62 extendedUIStateVariable Integer This worldstate tells how far the captureing proceeded. 100: Alliance / left, 0: Horde / right
63 extendedUIStateVariableNeutral Integer This state defines the grey part of the bar. In percent of the whole bar.
64 extendedUIStateVariable Null Most likely another state to handle some data.

6.0.1.18179

struct WorldStateUIRec {
  uint32_t m_ID;
  uint32_t m_mapID;
  uint32_t m_areaID;
  uint32_t m_phaseUseFlags;
  uint32_t m_phaseID;
  uint32_t m_phaseGroupID;
  stringref m_icon;
  langstringref m_string_lang;
  langstringref m_tooltip_lang;
  uint32_t m_stateVariable;
  uint32_t m_type;
  stringref m_dynamicIcon;
  langstringref m_dynamicTooltip_lang;
  stringref m_extendedUI;
  uint32_t m_extendedUIStateVariable[3];
};