Bug: SetMapToCurrentZone() inside OnUpdate

by Elizadeth | 29/05/2007 14:30:37

Elizadeth

Since the 2.1 patch, I've been having issues with right click menus not working.

I've isolated it to a UI mod that adds coordinates to the MiniMap.

The one I've been using is called MiniCoords but there are others that exhibit the same problem and are coded the same way.

Essentially, they all call SetMapToCurrentZone() inside the OnUpdate method of the coordinate frame.

This worked fine before 2.1 and I can't find anything in the change list that would indicate that it wouldn't work 2.1.

When you first load it up, you can right click on your portrait and get the menu. Then if you open the world map and close it, you can no longer get the right click portrait menu.

I've hacked MiniCoords down to the smallest example that I can that still demonstrates the problem...



<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=&quot;http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">

<Frame name="MiniCoordsMiniMapFrame" parent="MinimapCluster" hidden="false"
frameStrata="MEDIUM" movable="true">
<Size>
<AbsDimension x="40" y="10"/>
</Size>
<Anchors>
<Anchor point="BOTTOM" relativeTo="Minimap" relativePoint="BOTTOM">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer level="ARTWORK">
<FontString name="MiniCoords" toplevel="true" hidden="false"
inherits="GameFontNormal" text="">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Scripts>
<OnUpdate>
SetMapToCurrentZone()
MiniCoords:SetText("hello")
</OnUpdate>
</Scripts>
</Frame>

</Ui>


[ Post edited by Elizadeth ]


IM IN UR WARCRAFT
BREAKIN UR MODZ

by Slouken | 30/05/2007 03:59:11

Slouken

This should be fixed in the 2.1.2 update. Thanks!

Blizzard Announcement Recent Blizzard Announcements

 



Loaded in 0.04421 seconds