It would be useful to be able set UI elements attached to objects to appear on-screen instead of on the object.

The reason we need this is that it's hard to share custom on-screen UI currently. You have to copy all the xml code and add it to your mod, and copy all the logic code and add it to your mod. If xml tied to an object could be display on-screen, then to add it to your mod/game, you'd only need to import that object (and reload), which is a much simpler process!

The way i think this would work is just having a new attribute, something like onscreen="true", that would make this whole element (and child elements) be displayed on-screen instead of around the object