Thread Tools Display Modes
Prev Previous Post   Next Post Next
03/19/14, 02:05 PM   #1
davidrop
Join Date: Mar 2014
Posts: 2
where is the complete list of GLOBAL????

Ok, some of you know things...

looking at some nice lua code... i found some global costant used that isn't listen in the wiki

for example in the Equipment Rarity Borders Addons i found this
Code:
   ["EQUIP_SLOT_HEAD"] = "ZO_CharacterEquipmentSlotsHead",
  ["EQUIP_SLOT_CHEST"] = "ZO_CharacterEquipmentSlotsChest",
  ["EQUIP_SLOT_SHOULDERS"] = "ZO_CharacterEquipmentSlotsShoulder",
  ["EQUIP_SLOT_FEET"] = "ZO_CharacterEquipmentSlotsFoot",
  ["EQUIP_SLOT_HAND"] = "ZO_CharacterEquipmentSlotsGlove",
  ["EQUIP_SLOT_LEGS"] = "ZO_CharacterEquipmentSlotsLeg",
  ["EQUIP_SLOT_WAIST"] = "ZO_CharacterEquipmentSlotsBelt",
  ["EQUIP_SLOT_RING1"] = "ZO_CharacterEquipmentSlotsRing1",
  ["EQUIP_SLOT_RING2"] = "ZO_CharacterEquipmentSlotsRing2",
  ["EQUIP_SLOT_NECK"] = "ZO_CharacterEquipmentSlotsNeck",
  ["EQUIP_SLOT_COSTUME"] = "ZO_CharacterEquipmentSlotsCostume",
  ["EQUIP_SLOT_MAIN_HAND"] = "ZO_CharacterEquipmentSlotsMainHand",
  ["EQUIP_SLOT_OFF_HAND"] = "ZO_CharacterEquipmentSlotsOffHand",
  ["EQUIP_SLOT_BACKUP_MAIN"] = "ZO_CharacterEquipmentSlotsBackupMain",
  ["EQUIP_SLOT_BACKUP_OFF"] = "ZO_CharacterEquipmentSlotsBackupOff"
}
he use all the ZO_ to set the back drop in this way

Code:
for k, v in pairs(slots) do
-- some code...
      local parent = _G[v]
      
      local bg = parent:GetNamedChild("RarityBorder")
      if bg == nil then
        bg = WM:CreateControl(name, parent, CT_BACKDROP)
      end
so _G[v] becomes _G["ZO_CharacterEquipmentSlotsHead"]
so it intercept the "RarityBorder" another name not listed in the wiki
and then gain control of the background.

the whole internet never seen any of the ZO_ costant, so
where or how to find the complete list????
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » where is the complete list of GLOBAL????


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off