File attributes/properties - Is that VFS, InGameUIAddin or UpdateDatabase?

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,

InfoAddictInit.lua and InfoAddictScreen.xml
MapModData.InfoAddict.InfoAddictScreenContext = ContextPtr:LoadNewContext("InfoAddictScreen");
MapModData.InfoAddict.InfoAddictScreenContext:SetHide(true);

QuickTurnsDialog.lua and QuickTurnsDialog.xml
ContextPtr:SetHide(true);

function OpenDialog()
-- Show the dialog.
ContextPtr:SetHide(false);
end

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.
 
Top Bottom