Thread Tools Display Modes
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
03/19/14, 02:39 PM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
The zgoo addon allows access to a lot of information that may not have been detailed on the wiki yet.
  Reply With Quote
03/19/14, 03:48 PM   #3
Errc
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 30
Originally Posted by Xrystal View Post
The zgoo addon allows access to a lot of information that may not have been detailed on the wiki yet.
Yeah _G is ugly in plain text. But here is a dumped list of it. Is the same as simple for loop dumping _G. Can't really do this in-game but this is the idea of what I did.

Code:
G = {}
for i,v in pairs(_G) do
G[i] = tostring(v)
end
Zgoo uses some fancy pcalls to bypass private/protected functions but that is the idea.

It is in a .doc to bypass the forum attachment size.
Attached Files
File Type: doc _G.doc (1.22 MB, 1113 views)
  Reply With Quote
03/19/14, 05:26 PM   #4
Biki
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 34
I made that addon OP talked about and yes, I used zgoo. Incredibly useful
  Reply With Quote
03/20/14, 12:54 AM   #5
davidrop
Join Date: Mar 2014
Posts: 2
TY ALL written in capital letter!!!!

Code:
G = {}
for i,v in pairs(_G) do
G[i] = tostring(v)
end
Sweet


Errc >>> TY for the list!!!!!!

Last edited by davidrop : 03/20/14 at 12:58 AM.
  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