ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   where is the complete list of GLOBAL???? (https://www.esoui.com/forums/showthread.php?t=325)

davidrop 03/19/14 02:05 PM

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????

Xrystal 03/19/14 02:39 PM

The zgoo addon allows access to a lot of information that may not have been detailed on the wiki yet.

Errc 03/19/14 03:48 PM

1 Attachment(s)
Quote:

Originally Posted by Xrystal (Post 1448)
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.

Biki 03/19/14 05:26 PM

I made that addon OP talked about and yes, I used zgoo. Incredibly useful :)

davidrop 03/20/14 12:54 AM

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!!!!!!


All times are GMT -6. The time now is 08:48 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI