View Single Post
12/19/23, 04:27 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,993
Moved to dev tools forum.

I'm not sure how VScode can do that, i'm using IntelliJ IDEA and if you include teh esoui source code (you can download it here at esoui like an addon: https://www.esoui.com/downloads/info...ourcecode.html).
Extract the zip file -> esoui folder with all folders and files somewhere -> Not in live/Addons!!! I'd e.g. put it somewhere totally different so it get's not loaded "as an addon".

In IntelliJ IDEA you need to define that folder then in the project config as an "SDK" e.g. "SDK - ESO live".
And if you include that SDK to the project it will find globals like GuiRoot and others and you can search and naviggate them via CTRL+left click etc.

Not sure how VScode does that but must be similar.

btw: XML created controls can be created via lua code too so there is no "only XML" or "only lua".
The only thing that's different is that the XML attributes and tags and the code to craete them there looks different.

Here is a XML valdator scheme for ESOUI, by sirinsidiator.
If you include that into your XML files top line you can auto complete some XML attributes and tags via SHIFT+SPACE or whatever VSCode supports for auto completion there.

Overwrite <GuiXml> with this:

Code:
<GuiXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sir.insidi.at/or/schema/esoui.xsd">
Edit:
GuiRoot is never defined in any esoui lua files I just saw, there is no "GuiRoot =" or similar.
So that's why VScode and IntelliJ IDEA might not know such globals.

Guess you would have to define them yourself in the auto completion files if you really need them.
There is only GuiRoot for all controls of the UI and GuiMouse for the mouse cursor area.

Last edited by Baertram : 12/19/23 at 04:37 PM.
  Reply With Quote