Skip to content

Commit

Permalink
Updated for 5.1 patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Nov 28, 2012
1 parent ab4ec54 commit 45d160e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion !BaudErrorFrame.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 50001
## Interface: 50100
## Title: Baud Error Frame
## Notes: Improved error reporting
## Author: Baudzilla, wolftankk, Affli
Expand Down
2 changes: 1 addition & 1 deletion BaudErrorFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function BaudErrorFrame_OnLoad(self)
self:RegisterEvent("MACRO_ACTION_FORBIDDEN")
UIParent:UnregisterEvent("MACRO_ACTION_FORBIDDEN")

tinsert(UISpecialFrames,self:GetName())
tinsert(UISpecialFrames, self:GetName())

SlashCmdList["BaudErrorFrame"] = function()
if BaudErrorFrame:IsShown() then
Expand Down
22 changes: 7 additions & 15 deletions BaudErrorFrame.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Script file="BaudErrorFrame.lua"/>
<Button name="BaudErrorFrameEntryTemplate" virtual="true">
<Size>
Expand Down Expand Up @@ -81,7 +81,11 @@
BaudErrorFrameMinimapButton_OnLeave(self)
</OnLeave>
<OnClick>
BaudErrorFrame:Show()
if BaudErrorFrame:IsShown() then
BaudErrorFrame:Hide()
else
BaudErrorFrame:Show()
end
</OnClick>
<OnUpdate>
BaudErrorFrameMinimapButton_OnUpdate(self)
Expand Down Expand Up @@ -109,21 +113,9 @@
</Backdrop>
<Layers>
<Layer level="ARTWORK">
<Texture name="$parentHeader" file="">
<Size>
<AbsDimension x="300" y="64"/>
</Size>
<Anchors>
<Anchor point="TOP">
<Offset>
<AbsDimension y="5"/>
</Offset>
</Anchor>
</Anchors>
</Texture>
<FontString inherits="GameFontNormal" text="SHOW_LUA_ERRORS">
<Anchors>
<Anchor point="TOP" relativeTo="$parentHeader">
<Anchor point="TOP" relativeTo="$parent">
<Offset>
<AbsDimension y="-14"/>
</Offset>
Expand Down

0 comments on commit 45d160e

Please sign in to comment.