As already mentioned, the API is not 100% complete.
So what to do if a Compile Error happens, easy fix inside the Start Code.
In this Example ,i used the SetState() Function of the Button Control.
The GetXML() Function doesn't support it yet automatically (will Update it of course later)
So here is how i fixed it:
Code:
if ESOAddonDev then
print("We are running inside ZeroBrane Studio Environment")
ESOAddonDev.ShowCreateControl = true
ESOAddonDev:GetXML([[MobileBank\MobileBank.xml]])
MBUI_ContainerTitleSwitchAll.SetState = function (self,state) end
MBUI_ContainerTitleSwitchInv.SetState = function (self,state) end
MBUI_ContainerTitleSwitchBank.SetState = function (self,state) end
MBUI_ContainerTitleSwitchGuild.SetState = function (self,state) end
MBUI_ContainerTitleSwitchRecipes.SetState = function (self,state) end
end
-----------------
As you can see the MBUI_ContainerTitleSwitchAll has just added a dummy function for SetState,
now the lua can be compiled and debugged again.
You can also overwrite existing defintions in the API ,for example to return better Values etc.