How do I figure out what api parameters are/do?
So I'm new to lua but not programming in general but I also don't do it for a living.. I'm trying to figure out how I can determine what the ZOS api calls are looking for as parameters and what they do. Specifically at the moment I'm looking at ZO_ReticleContainerInteract. I've looked at a couple addon's (craftautoloot) that use it and someone's example here but not clear on what the parameters are (and the board example is different than the addon code). I'm sure some of this confusion is due to not totally understanding lua yet.
Also why when I look at the wiki does it seem the esoui api is always behind? like right now it says "Page up-to-date to API Version 100020 (except ESOUI API which is at 100016)" Thanks for any assistance you can give a newcomer as I try to figure this all out. :) |
http://www.esoui.com/downloads/info1...ourcecode.html
Download, Browse, find. Quote:
And ZO_ReticleContainerInteract is not part of the API, ZO_ReticleContainerInteract is defined in the Lua code, it does not come from the C++ Code. And I would add that it's not even defined in a .lua file, but in an XML Definition. \esoui\ingame\reticle\reticle.xml So it don't have any parameter because it's not a function, it's a variable. Lua Code:
|
Ok cool I was not sure if there was a reason the versions were behind or just whoever did it was not able to get to it yet. I would hardly call anyone doing addon work for the community lazy. It "gets my goat" when people bitch about addon's not working especially right after a patch, like it's something they are owed. This is one reason I am trying to do one myself this time around (I avoided it in WoW and EQ).
The link to the source helps as well thanks. I guess I am still a bit confused about my question the line I was looking at shows this Code:
ZO_ReticleContainerInteract:SetHandler("OnShow", function() BTW I did actually find an example of that XML in all my googling somewhere and it actually added to my confusion since as you stated its clearly not a function there.. I do appreciate all the help. -E |
In that example, ZO_ReticleContainerInteract is the target, SetHandler is being executed on it and adding a function on show. The function is grabbing the data from GetGameCameraInteractableActionInfo() which is shown in the ESO API:
Returns: string:nilable action, string:nilable name, boolean interactBlocked, boolean isOwned, number additionalInfo, number:nilable contextualInfo, string:nilable contextualLink, boolean isCriminalInteract |
Ah thanks for the info!
|
|
Quote:
|
She was building on my response; not trying to answer the original question.
|
Quote:
|
All times are GMT -6. The time now is 08:57 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI