Implied Target window visibility is likely controlled by the DD assigned to the top page object. You could probably disable the visibility switching on the window with a DD filter, or maybe remove the DD if its not doing anything else at that level.
Then you could apply the unfiltered DD to a button within another window that is always visible, but shoved out of its bounds so you never see it. Give that button onShow and onHide scripts that check your threat indicator.
OnHide, If threat indicator is visible reconfigure the IT window layout to hide all the usual contents and show a textbox with your playerName DD assigned to it. Else use the normal layout and hide the whole IT window.
OnShow, show the whole IT window with the normal layout.
You'd probably also need to add a similar button that uses the main Target window's targetName.onTextChanged to trigger a threat check and force the ImpliedTarget window to visible when you are hated. This way the IT visibility gets reset anytime you change targets or initially target something.
|