Talyns, are you trying it out in the game and the UIBuilder? It looks like it fixes the missing border problem in the game.
But, when I look in the UIBuilder the script isn't doing what you want it to do. Here's what I see in the UIBuilder. The eq2ui_mainhud_map.xml first page starts out as
<Page eq2opensound="ui_window_book_open" eq2usescomwndcontrols="true" Location="237,105" Name="Map" NormalSize="484,640" OnHide="StartUp=False" OnHoverIn="TM_Plugins.OnHoverInWindow.Activated=true UserResizable=false" OnHoverOut="TM_Plugins.OnHoverOutWindow.Activated=true" OnShow="TM_Plugins.OnShowWindow.Activated=true Reset.Activated=True QM_Process.Activated=true StartUp=True" ScrollExtent="484,640" Size="484,640" UserMovable="true" UserResizable="true" version="1.1.0">
If you hide and show the window that triggers the "Reset" button which changes it to
<Page eq2opensound="ui_window_book_open" eq2usescomwndcontrols="true" Location="237,105" Name="Map" NormalSize="484,640" OnHide="&" OnHoverIn="TM_Plugins.OnHoverInWindow.Activated=true UserResizable=false" OnHoverOut="TM_Plugins.OnHoverOutWindow.Activated=true" OnShow="TM_Plugins.OnShowWindow.Activated=true Reset.Activated=True QM_Process.Activated=true StartUp=True" ScrollExtent="484,640" Size="484,640" StartUp="True" UserMovable="true" UserResizable="true" version="1.1.0">
And the "Reset" button itself gets a junk property of
apos;TM_Plugins.OnHideWindow.Activated=true
In general I just use a single quote ' instead of ' since they're legal in xml and easier to read. I tried changing the script in the Reset button from
Parent.OnHide='TM_Plugins.OnHideWindow.Activated=true'
to
Parent.OnHide='TM_Plugins.OnHideWindow.Activated=true'
and it seems to work fine in the UIBuilder. I don't know if the OnHide="StartUp=False" is needed for anything but the script overwrites that.
|