From b796210230b6c0753c9d9215c74b1d1c684ebcc2 Mon Sep 17 00:00:00 2001 From: Merathilis Date: Wed, 21 Dec 2016 21:07:32 +0100 Subject: [PATCH] Fix options for Font selection to use LibSharedMedia. The previous method seems a bit buggy. --- core.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index 6a5c1e7..65c44b9 100644 --- a/core.lua +++ b/core.lua @@ -505,11 +505,12 @@ function XIVBar:GetGeneralOptions() end function XIVBar:GetTextOptions() - local t = self.LSM:List(self.LSM.MediaType.FONT); + -- Don't know if this still needed, so i keep it commendet out. + --[[local t = self.LSM:List(self.LSM.MediaType.FONT); local fontList = {}; for k,v in pairs(t) do fontList[v] = v; - end + end]] return { name = LOCALE_TEXT_LABEL, type = "group", @@ -519,8 +520,9 @@ function XIVBar:GetTextOptions() font = { name = L['Font'], type = "select", + dialogControl = 'LSM30_Font', order = 1, - values = fontList, + values = AceGUIWidgetLSMlists.font, style = "dropdown", get = function() return self.db.profile.text.font; end, set = function(info, val) self.db.profile.text.font = val; self:Refresh(); end -- 1.7.9.5