From a3ededd5331da2bbf88cd6cb144b56fa92586d9a Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Wed, 17 Nov 2010 20:06:44 +0000 Subject: [PATCH] Added two new gestures to turn data collection on and off. This turns on and off the DPS and Noise plugins. --- Modules/Gestures/Gestures.lua | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/Modules/Gestures/Gestures.lua b/Modules/Gestures/Gestures.lua index 758b43c..a8c7654 100644 --- a/Modules/Gestures/Gestures.lua +++ b/Modules/Gestures/Gestures.lua @@ -32,6 +32,24 @@ else _G.StarTip:ShowTooltip() end ]] + }, + [2] = { + name = "Start Data", + enabled = false, + gestures = {{type="circle", pattern="clockwise"}}, + expression = [[ +StartDPS() +StartNoise() +]] + }, + [3] = { + name = "Stop Data", + enabled = false, + gestures = {{type="circle", pattern="counterclockwise"}}, + expression = [[ +StopDPS() +StopNoise() +]] } } } @@ -64,8 +82,9 @@ local optionsDefaults = { desc = "Restore Defaults", type = "execute", func = function() - mod.db.profile.gestures = copy(defaultWidgets); + mod.db.profile.gestures = {} StarTip:RebuildOpts() + StarTip:Print("You'll need to reload your UI. Type /reload") end, order = 6 }, @@ -138,7 +157,7 @@ function mod:RebuildOpts() desc = "Delete this widget", type = "execute", func = function() - self.db.profile.gestures[i] = nil + self.db.profile.gestures[i] = {} StarTip:RebuildOpts() end, order = 100 -- 1.7.9.5