diff --git a/Localization/enUS.lua b/Localization/enUS.lua index 107968d..8644aaf 100644 --- a/Localization/enUS.lua +++ b/Localization/enUS.lua @@ -36,7 +36,7 @@ L["Error Level"] = true L["StarTip's error level"] = true L["StarTip can throttle your mouseovers, so it doesn't show a tooltip if you mouse over units really fast. There are a few bugs, which is why it's not enabled by default."] = true L["Throttle Threshold"] = true -L["Intersect Checks Rate"] = true +L["Intersect Check Rate"] = true L["The rate at which intersecting frames will be checked"] = true L["Settings"] = true L["Enable"] = true diff --git a/Modules/Gestures/Gestures.lua b/Modules/Gestures/Gestures.lua index c5185e2..8f3e1f7 100644 --- a/Modules/Gestures/Gestures.lua +++ b/Modules/Gestures/Gestures.lua @@ -4,6 +4,7 @@ mod.toggled = true mod.defaultOff = true local L = StarTip.L local WidgetGestures = LibStub("LibScriptableWidgetGestures-1.0") +local LibMouse = LibStub("LibMouseGestures-1.0") local LibCore = LibStub("LibScriptableLCDCore-1.0") local _G = _G local GameTooltip = _G.GameTooltip @@ -12,6 +13,9 @@ local UIParent = _G.UIParent local gestures = {} local environment = {} +local dw,dh = 1000,1000; -- default width/height. Used for the uniform coordinate system. +local odw,odh = 480, 320; -- default width/height for rev. 45 and older. + -- LeftButtonDown local buttonsList = {L["Left Button"], L["Right Button"], L["Center Button"]} local buttons = {"LeftButton", "RightButton", "CenterButton"} @@ -24,6 +28,7 @@ local defaults = { [1] = { name = "Wipe Data", enabled = true, + minGestures = 4, gestures = {{type="line", pattern="right"}, {type="line", pattern="left"}, {type="line", pattern="right"}, {type="line", pattern="left"}}, expression = [[ WipeDPS() diff --git a/StarTip.lua b/StarTip.lua index b758712..b9ae6fa 100644 --- a/StarTip.lua +++ b/StarTip.lua @@ -2,7 +2,7 @@ local addonName, addon = ... _G["StarTip"] = LibStub("AceAddon-3.0"):NewAddon("StarTip", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0") -StarTip.version = GetAddOnMetadata("StarTip", "Version") or "" +StarTip.version = GetAddOnMetadata("StarTip", "Version") or addonName local LibDBIcon = LibStub("LibDBIcon-1.0") local LSM = _G.LibStub("LibSharedMedia-3.0") @@ -193,7 +193,8 @@ local defaults = { otherFrameShow = 1, errorLevel = 2, throttleVal = 0, - intersectRate = 0, + intersectRate = 500, + intersect = false, modifierInverse = false, message = true, backup = true @@ -465,12 +466,12 @@ local options = { order = 13 }, intersectRate = { - name = L["Intersect Checks Rate"], + name = L["Intersect Check Rate"], desc = L["The rate at which intersecting frames will be checked"], type = "input", pattern = "%d", get = function() return tostring(StarTip.db.profile.intersectRate) end, - set = function(info, v) StarTip.db.profile.intersectRate = tonumber(v) end, + set = function(info, v) StarTip.db.profile.intersectRate = tonumber(v); makeNewTooltip() end, order = 14 }, }