From fd3bcb37a463b8697497e8c4ee83357a559744be Mon Sep 17 00:00:00 2001 From: Steven Jackson Date: Tue, 9 Sep 2014 00:29:59 -0500 Subject: [PATCH] patches --- Interface/AddOns/SVUI/libs/oUF/elements/health.lua | 4 +-- Interface/AddOns/SVUI/system/load.lua | 2 +- .../SVUI_TrackingDevice/SVUI_TrackingDevice.lua | 27 ++++++++++++++++++-- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/Interface/AddOns/SVUI/libs/oUF/elements/health.lua b/Interface/AddOns/SVUI/libs/oUF/elements/health.lua index d074b6a..570cab3 100644 --- a/Interface/AddOns/SVUI/libs/oUF/elements/health.lua +++ b/Interface/AddOns/SVUI/libs/oUF/elements/health.lua @@ -102,7 +102,7 @@ local Update = function(self, event, unit) health:SetOrientation("VERTICAL") end - if(health.percent < 10 and health.LowAlertFunc and UnitIsEnemy("target", "player") and not health.lowAlerted) then + if(health.percent < 6 and health.LowAlertFunc and UnitIsEnemy("target", "player") and not health.lowAlerted) then health.lowAlerted = true health.LowAlertFunc(self) end @@ -185,7 +185,7 @@ local CustomUpdate = function(self, event, unit) health:SetValue(-current) end - if(health.percent < 10 and health.LowAlertFunc and UnitIsEnemy("target", "player") and not health.lowAlerted) then + if(health.percent < 6 and health.LowAlertFunc and UnitIsEnemy("target", "player") and not health.lowAlerted) then health.lowAlerted = true health.LowAlertFunc(self) end diff --git a/Interface/AddOns/SVUI/system/load.lua b/Interface/AddOns/SVUI/system/load.lua index 3698311..6f4f3e4 100644 --- a/Interface/AddOns/SVUI/system/load.lua +++ b/Interface/AddOns/SVUI/system/load.lua @@ -305,7 +305,7 @@ local SVUISystem_OnEvent = function(self, event, arg, ...) forceClosed = true; end if forceClosed == true then - SendAddonMessage(ERR_NOT_IN_COMBAT) + SV:AddonMessage(ERR_NOT_IN_COMBAT) end elseif(event == "PLAYER_REGEN_ENABLED") then SV:ToggleConfig() diff --git a/Interface/AddOns/SVUI_TrackingDevice/SVUI_TrackingDevice.lua b/Interface/AddOns/SVUI_TrackingDevice/SVUI_TrackingDevice.lua index da9fafa..c44cadc 100644 --- a/Interface/AddOns/SVUI_TrackingDevice/SVUI_TrackingDevice.lua +++ b/Interface/AddOns/SVUI_TrackingDevice/SVUI_TrackingDevice.lua @@ -712,18 +712,41 @@ function PLUGIN:Load() NewHook(SV.SVUnit, "RefreshUnitLayout", RefreshGPS) - local fontSize = { + local options = { order = 3, + name = L["GPS"], + desc = L["Use group frame GPS elements"], + type = "toggle", + get = function() return SV.db.SVTracker.groups end, + set = function(key,value) PLUGIN:ChangeDBVar(value, key[#key]); PLUGIN:UpdateLogWindow() end + } + + self:AddOption("groups", options) + + options = { + order = 4, + name = L["GPS Proximity"], + desc = L["Only point to closest low health unit"], + type = "toggle", + get = function() return SV.db.SVTracker.proximity end, + set = function(key,value) PLUGIN:ChangeDBVar(value, key[#key]); PLUGIN:UpdateLogWindow() end + } + + self:AddOption("proximity", options) + + options = { + order = 5, name = L["Font Size"], desc = L["Set the font size of the range text"], type = "range", min = 6, max = 22, step = 1, + get = function() return SV.db.SVTracker.fontSize end, set = function(key,value) PLUGIN:ChangeDBVar(value, key[#key]); PLUGIN:UpdateLogWindow() end } - self:AddOption("fontSize", fontSize) + self:AddOption("fontSize", options) end CONFIGS[SCHEMA] = { -- 1.7.9.5