Crosslinking between extensions
I've made two extensions now, and I've also made an icon that I only want displayed if both of these extensions have been loaded at the same time.
(It's an button_roll icon graphic for the Kult ruleset, with a Ghost Theme background.)
Randomly surfing around on the internet, just randomly clicking at links to Fantasy Grounds sites that show up on the first hit page, "reveals" that there doesn't seem to be any onLoaded() function to keep track of what extensions are loaded into a session, but I've seen that instances can be checked for the existence of tags, by scripts inside templates, so there might be some "if exists" condition in a script, that could be able to either check the existence of another script, or the image to use itself.
Something like this, would be nice:
Code:
onDesktopInit()
if exists extension Ghost
<includefile source="crosslink/ghostkult.xml" />
end
end
First I thought that all extensions would share the same virtual folder structure, and that I could therefor just put "<includefile source="crosslink/kult.xml" />" into the initiation file of Kult, and "crosslink/kult.xml" (containing the merging instructions) in Ghost, but then FG refused to load Kult because it couldn't find the file to include, and this despite of it being present in Ghost. I don't know if changing the load order for Ghost would change anything, but I doubt it.
...so is there any way to do this sort of conditional "only if extension/ruleset is present" merge?