From 96387f6e4f622d1b54493603e8b38a8fc93fd9a4 Mon Sep 17 00:00:00 2001 From: Crum Date: Tue, 19 Dec 2017 23:43:05 -0600 Subject: [PATCH] AceGUI update --- .../AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 2 +- .../AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua index 6e4ab45..3992757 100644 --- a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua +++ b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua @@ -452,7 +452,7 @@ function AceConfigDialog:SelectGroup(appName, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) args[10] = a10 for n = 1, 10 do local key = args[n] - arg[n] = nil + args[n] = nil if not key then break end diff --git a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua index 7764196..aa26131 100644 --- a/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua +++ b/2/3/4/5/6/7/ElvUI_Config/Libraries/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua @@ -7,7 +7,7 @@ local AceGUI = LibStub and LibStub("AceGUI-3.0", true) if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end -- Lua APIs -local min, max, floor = math.min, math.max, math.floor +local min, max, floor, format = math.min, math.max, math.floor, string.format local tonumber, pairs = tonumber, pairs -- WoW APIs @@ -24,7 +24,7 @@ Support functions local function UpdateText(self) local value = self.value or 0 if self.ispercent then - self.editbox:SetText(("%s%%"):format(floor(value * 1000 + 0.5) / 10)) + self.editbox:SetText(format("%s%%", floor(value * 1000 + 0.5) / 10)) else self.editbox:SetText(floor(value * 100 + 0.5) / 100) end @@ -33,8 +33,8 @@ end local function UpdateLabels(self) local min, max = (self.min or 0), (self.max or 100) if self.ispercent then - self.lowtext:SetFormattedText("%s%%", (min * 100)) - self.hightext:SetFormattedText("%s%%", (max * 100)) + self.lowtext:SetText(format("%s%%", (min * 100))) + self.hightext:SetText(format("%s%%", (max * 100))) else self.lowtext:SetText(min) self.hightext:SetText(max) @@ -106,7 +106,7 @@ local function EditBox_OnEnterPressed() else value = tonumber(value) end - + if value then PlaySound("igMainMenuOptionCheckBoxOn") self.slider:SetValue(value)