Ok, see attached, I've only included the changed files. It works with both an <include> in mainhud or custom, so your users will never know.
I had to do some fancy coding in the plugin for that because I discovered a bug with the custom branch. You can /show_window MainHUD.POIFinder even if you <include> it in custom, i.e. when it technically is not in MainHUD. However, something apparently goes wrong then, because it does not correctly read the styles in that case. On the other hand, you cannot /show_window Custom.POIFinder if you include in the mainhud branch. But that just as background information.
PS: I did not understand why you renamed the close button in the poifinder.xml just to add a OnPress="hide_window ..." to it. Note that I renamed the button back to close and removed the OnPress. If there is a reason why you did as you did you will need to retrieve the correct window location from the variable I store in the plugin.
|