From c4877df80c2b7c0b40fadbf76938013cf1a6e578 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 24 Jul 2013 02:16:21 +0400 Subject: [PATCH] Dashboard font lol --- .../modules/datatexts/dashboard/dashboard.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/datatexts/dashboard/dashboard.lua b/ElvUI_SLE/modules/datatexts/dashboard/dashboard.lua index 901beb5..1d9426a 100755 --- a/ElvUI_SLE/modules/datatexts/dashboard/dashboard.lua +++ b/ElvUI_SLE/modules/datatexts/dashboard/dashboard.lua @@ -5,6 +5,8 @@ made for ElvUI under Sinaris permission. Big thanks :) local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB local DTP = E:GetModule('DTPanels') +local DT = E:GetModule('DataTexts') +local LSM = LibStub("LibSharedMedia-3.0") if E.db.sle == nil then E.db.sle = {} end if E.db.sle.datatext == nil then E.db.sle.datatext = {} end if E.db.sle.datatext.dashboard == nil then E.db.sle.datatext.dashboard = {} end @@ -12,7 +14,7 @@ if E.db.sle.datatext.dashboard.width == nil then E.db.sle.datatext.dashboard.wid local DTPANELS_WIDTH = E.db.sle.datatext.dashboard.width local DTPANELS_HEIGHT = 20 local PANEL_SPACING = 1 -local font = P.general.font +local font = LSM:Fetch("font", E.db.datatexts.font) local fontsize = 10 local board = {} @@ -65,6 +67,15 @@ function DTP:DashboardShow() end end +DT.LoadDataTextsSLE = DT.LoadDataTexts +function DT:LoadDataTexts() + DT.LoadDataTextsSLE(self) + font = LSM:Fetch("font", E.db.datatexts.font) + for i = 1, 4 do + board[i].Text:SetFont(font, fontsize) + end +end + function DTP:DashWidth() for i = 1, 4 do board[i]:Size(E.db.sle.datatext.dashboard.width, DTPANELS_HEIGHT) -- 1.7.9.5