diff --git a/ElvUI_SLE/core/core.lua b/ElvUI_SLE/core/core.lua index a3bd729..113cc58 100644 --- a/ElvUI_SLE/core/core.lua +++ b/ElvUI_SLE/core/core.lua @@ -81,6 +81,11 @@ local function SetFonts() PVPArenaTextString:SetFont(LSM:Fetch('font', db.pvp.font), db.pvp.size, db.pvp.outline) SubZoneTextString:SetFont(LSM:Fetch('font', db.subzone.font), db.subzone.size, db.subzone.outline) + ZoneTextString:SetWidth(db.zone.width) + PVPInfoTextString:SetWidth(db.pvp.width) + PVPArenaTextString:SetWidth(db.pvp.width) + SubZoneTextString:SetWidth(db.subzone.width) + --Dat is like experiment, don't touch-- subOff = db.subzone.offset hooksecurefunc("SetZoneText", ZoneTextPos) diff --git a/ElvUI_SLE/defaults/private.lua b/ElvUI_SLE/defaults/private.lua index 24917e4..89c1507 100644 --- a/ElvUI_SLE/defaults/private.lua +++ b/ElvUI_SLE/defaults/private.lua @@ -78,17 +78,20 @@ G['sle'] = { ['font'] = "ElvUI Font", ['size'] = 32, ['outline'] = "OUTLINE", + ['width'] = 512, }, ['subzone'] = { ['font'] = "ElvUI Font", ['size'] = 25, ['outline'] = "OUTLINE", ['offset'] = 0, + ['width'] = 512, }, ['pvp'] = { ['font'] = "ElvUI Font", ['size'] = 22, ['outline'] = "OUTLINE", + ['width'] = 512, }, }, } \ No newline at end of file diff --git a/ElvUI_SLE/options/media_c.lua b/ElvUI_SLE/options/media_c.lua index 634fe5f..7627c88 100644 --- a/ElvUI_SLE/options/media_c.lua +++ b/ElvUI_SLE/options/media_c.lua @@ -72,6 +72,14 @@ E.Options.args.sle.args.media = { ['THICKOUTLINE'] = 'THICKOUTLINE', }, }, + width = { + order = 4, + name = L["Width"], + type = "range", + min = 512, max = E.screenwidth, step = 1, + get = function(info) return E.global.sle.fonts.zone.width end, + set = function(info, value) E.global.sle.fonts.zone.width = value; E:StaticPopup_Show("GLOBAL_RL") end, + }, }, }, subzone = { @@ -120,6 +128,14 @@ E.Options.args.sle.args.media = { get = function(info) return E.global.sle.fonts.subzone.offset end, set = function(info, value) E.global.sle.fonts.subzone.offset = value; E:StaticPopup_Show("GLOBAL_RL") end, }, + width = { + order = 5, + name = L["Width"], + type = "range", + min = 512, max = E.screenwidth, step = 1, + get = function(info) return E.global.sle.fonts.subzone.width end, + set = function(info, value) E.global.sle.fonts.subzone.width = value; E:StaticPopup_Show("GLOBAL_RL") end, + }, }, }, pvpstatus = { @@ -160,6 +176,14 @@ E.Options.args.sle.args.media = { ['THICKOUTLINE'] = 'THICKOUTLINE', }, }, + width = { + order = 4, + name = L["Width"], + type = "range", + min = 512, max = E.screenwidth, step = 1, + get = function(info) return E.global.sle.fonts.pvp.width end, + set = function(info, value) E.global.sle.fonts.pvp.width = value; E:StaticPopup_Show("GLOBAL_RL") end, + }, }, }, },