I have been trying to get into UI changing, but I'm facing some problems. First it was the UI elements tree which Zgoo addon helped me a lot, I don't know (1) if there is a reference for the UI vanilla elements with all the properties, if there is please do share.
My current problem is trying to copy existing stuff to keep the ui consistent. I want to add a second progress bar under the normal progress bar in the achievements. But the StatusBar control don't have any GET methods that allow me to see how the default one is implemented, I have been trying trial and error and made it until a certain point, at the moment I just can't figure what are the settings to make that ending triangle at the end of the progress bar, I think I found the texture for it tho.
(2) So is there a way to obtain default used values for ui easier other than trying random textures and inputing random values until it seems you got it right?
This is what I have experimented and found so far:
local pp = ZO_AchievementsContentsSummaryInsetProgressBarsScrollChildTotal;
CreateControl("Kaf_1", pp, CT_STATUSBAR );
Kaf_1:SetAnchor(3, pp, 3, 0, 0);
Kaf_1:SetAnchor(12, pp, 12, 0, 0);
local pp = ZO_AchievementsContentsSummaryInsetProgressBarsScrollChildTotalGloss;
Kaf_1:SetValue(pp:GetValue() + 5000);
--[[ Textures I found that seem related to progress bars
/script d(Kaf_1:SetLeadingEdge("/esoui/art/miscellaneous/progressbar_genericfill_leadingedge_blunt.dds", 20, 20)); -- DOESNT WORK
The controls used on the ui, their attributes and methods etc. can be found there.
Some have descriptions, some don't. You need to ask then, at best within the addon dev channel over at www.gitter.im/esoui/esoui
Many UI elements use templates in xml files where they inherit a control from. So check the xml files first and then the source code lua files to get the stuff where the XML templates or UI elements are "connected".
Then search the source code for the functions or other stuff which ZOs uses to build the elements and assign the textures.
Most controls got something like a method GetTexturePath or something similar. But the achievement bars do not seem to be a texture but a control which sues a texture as a child (so check ZGOO, open the GetChildren() table and see if there is some texture in it).
Then search for the name of the texture in the github code to maybe find the creation of the achievement bar.
I guess it's some kind of "experience bar" which is used for achievements, ingame xp and others. So maybe its in the folder "ingame/utility" or "libraries".