Closed MNoya closed 8 years ago
What's happened to cause this?
I believe adding some steps to the guide for include process, would be the most robust... as opposed to magic files.
Which way do you want to take it?
Just noticed the clientside javascript stuff is never running if the xml wasn't previously compiled (by being in the custom manifest, I already had it so I didn't realize until now when I wanted to use it for another library)
Include process would be the best.
<CustomUIElement type="Hud" layoutfile="file://{resources}/layout/custom_game/statcollection.xml" />
to content panorama/layout/custom_game/custom_ui_manifest.xml
or create a new one - example
After that, this line is no longer necessary: https://github.com/GetDotaStats/stat-collection/blob/master/game/dota_addons/YOUR_ADDON/scripts/vscripts/statcollection/lib/statcollection.lua#L195
Okay
We should either distribute the .xml_c and make modders copy it to their game panorama folder, or ask them to do the include process in the xml manifest.