From 0c3c9780b410fa55ba3c6c033b91d24a0935a541 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 26 Aug 2014 09:15:27 +0400 Subject: [PATCH] New shit for toolkit --- ElvUI_SLE/core/toolkit.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua index fd162f6..5a8d419 100644 --- a/ElvUI_SLE/core/toolkit.lua +++ b/ElvUI_SLE/core/toolkit.lua @@ -11,6 +11,7 @@ local LT = E:GetModule('SLE_Loot') local UF = E:GetModule('UnitFrames') local M = E:GetModule('SLE_Media') local I = E:GetModule('SLE_InstDif') +local S = E:GetModule("SLE_ScreenSaver") local GetContainerNumSlots, GetContainerItemID = GetContainerNumSlots, GetContainerItemID @@ -46,6 +47,10 @@ function SLE:Print(msg) print(E["media"].hexvaluecolor..'S&L:|r', msg) end +function SLE:Scale(f) + return f*GetCVar('uiScale') +end + local function UpdateAll() BG:UpdateFrames() BG:RegisterHide() @@ -64,6 +69,7 @@ local function UpdateAll() CH:GMIconUpdate() M:TextWidth() I:UpdateFrame() + S:Reg(true) collectgarbage('collect'); end -- 1.7.9.5