Skip to content

Commit

Permalink
Fixed Mirro bar movable and position save
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwyk committed Aug 21, 2019
1 parent c85c100 commit 6e1a276
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion eCastingBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ function testMode()
end

function testModeMirror()
--if true then return end
local mirrorName = "eCastingBarMirror1"
local dialog = _G[mirrorName]
local statusbar = _G[mirrorName.."StatusBar"]
Expand Down
4 changes: 2 additions & 2 deletions eCastingBarMirror.lua
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ function eCastingBarMirror_MouseUp( strButton )
if( eCastingBar_Saved.MirrorLocked == 0 ) then
eCastingBarMirror_Outline:StopMovingOrSizing()

eCastingBarMirror_Outline:GetLeft()
eCastingBarMirror_Outline:GetBottom()
eCastingBar_Saved.MirrorLeft = eCastingBarMirror_Outline:GetLeft()
eCastingBar_Saved.MirrorBottom = eCastingBarMirror_Outline:GetBottom()

eCastingBarMirrorLeftSlider:SetValue(eCastingBar_Saved.MirrorLeft)
eCastingBarMirrorBottomSlider:SetValue(eCastingBar_Saved.MirrorBottom)
Expand Down
8 changes: 5 additions & 3 deletions eCastingMirrorBar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
</OnLoad>
</Scripts>
</Frame>

<Frame name="eCastingBarMirror1" inherits="eCastingBarMirror">
<Scripts>
<OnMouseDown>
eCastingBarMirror_MouseDown( button, "eCastingBarMirror_Outline", "" );
</OnMouseDown>
Expand All @@ -278,9 +283,6 @@
</OnMouseUp>
</Scripts>
</Frame>

<Frame name="eCastingBarMirror1" inherits="eCastingBarMirror">
</Frame>
<Frame name="eCastingBarMirror2" inherits="eCastingBarMirror">
<Anchors>
<Anchor point="TOP" relativeTo="eCastingBarMirror1" relativePoint="BOTTOM"/>
Expand Down

0 comments on commit 6e1a276

Please sign in to comment.