Originally Posted by Baertram
No, I'm trying to read them after a right-click with the mouse on it and choosing a new added menu item.
It works perfetcly for a single slot. But if I want to update all in a for... loop it's not working.
I need the control because another texture control is added to it (by myself) and I want to update it :-(
|
It might not be as short, but you could use the copy button on zgoo
(when you /zgoo the ZO_Character window) and use the control names it gives you. Pick the ones you want, build a table & loop through it doing whatever you want to each control. Thats probably the easiest way & less things to cause problems.
Lua Code:
local ZO_CharacterChildren = {
[1] = "ZO_CharacterApparelSection",
[2] = "ZO_CharacterPaperDoll",
[3] = "ZO_CharacterAccessoriesSection",
[4] = "ZO_CharacterWeaponsSection",
[5] = "ZO_CharacterEquipmentSlotsHead",
[6] = "ZO_CharacterEquipmentSlotsShoulder",
[7] = "ZO_CharacterEquipmentSlotsGlove",
[8] = "ZO_CharacterEquipmentSlotsLeg",
[9] = "ZO_CharacterEquipmentSlotsChest",
[10] = "ZO_CharacterEquipmentSlotsBelt",
[11] = "ZO_CharacterEquipmentSlotsFoot",
[12] = "ZO_CharacterEquipmentSlotsCostume",
[13] = "ZO_CharacterEquipmentSlotsNeck",
[14] = "ZO_CharacterEquipmentSlotsRing1",
[15] = "ZO_CharacterEquipmentSlotsRing2",
[16] = "ZO_CharacterEquipmentSlotsMainHand",
[17] = "ZO_CharacterEquipmentSlotsOffHand".
[18] = "ZO_CharacterEquipmentSlotsBackupMain",
[19] = "ZO_CharacterEquipmentSlotsBackupOff",
[20] = "ZO_CharacterWeaponSwap",
[21] = "ZO_CharacterTitle",
}
I copy & pasted your code, it works for me.