When making new UI Context, You always should set your UI xml file VFS: true.
And if you add xml file into InGameUIAddin Entry, not lua file, you also should set your UI lua file VFS: true.
Otherwise it won't work.
Really? I should set my mod VFS true to work correctly on LuaEvents.AdditionalInformationDropdownGatherEntries.
Otherwise its window won't appear. Weird.
I referenced some mods, such as Quick Turns, IGE, InfoAddict and they also set their UI file VFS true.
For example,
If I write just like these, My mod appears on Additional Information list.
But unless setting my UI file VFS true, No window shows up. Of course I checked log and it surely trigger OpenDialog().
I don't know why it won't work. Is this kind of replacement for a core game UI context file?
OK. I've figured it out. The Lua and XML which have same file name must be in same directory. If not, it seems to that they won't associated.
But when VFS true, they associate each other.
Because of this ContextPtr:SetHide and other xml related functions didn't work at all.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.