From e89cf335619714a667843b5abca65ad7ad17d248 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 13 Feb 2013 10:00:30 +0400 Subject: [PATCH] Whatever --- ElvUI_SLE/modules/marks/marks.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ElvUI_SLE/modules/marks/marks.lua b/ElvUI_SLE/modules/marks/marks.lua index 4a915ad..bc7d6d6 100644 --- a/ElvUI_SLE/modules/marks/marks.lua +++ b/ElvUI_SLE/modules/marks/marks.lua @@ -66,7 +66,7 @@ function RM:FrameButtonsGrowth() local db = E.db.sle.marks local size = db.size local width, height, x, y, anchor, point - local t = {8 * size + 11,size + 4,"LEFT","RIGHT","TOP","BOTTOM",1,0,-1} + local t = {8*size+11,size+4,"LEFT","RIGHT","TOP","BOTTOM",1,0,-1} for i = 1, 8 do MarkB[i]:ClearAllPoints() end @@ -114,12 +114,16 @@ function RM:UpdateVisibility() end end -function RM:Initialize() - RM:CreateFrame() +function RM:Update() RM:FrameButtonsSize() RM:FrameButtonsGrowth() - RM:CreateButtons() RM:UpdateVisibility() +end + +function RM:Initialize() + RM:CreateFrame() + RM:Update() + RM:CreateButtons() self:RegisterEvent("PLAYER_ENTERING_WORLD", "UpdateVisibility"); E:CreateMover(mark_menu, "MarkMover", "RM", nil, nil, nil, "S&L,S&L M") -- 1.7.9.5