From 1a936f7a43791bc801ce86320a9626a7dbbd4af5 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Wed, 20 Oct 2010 06:31:53 +0000 Subject: [PATCH] Default Nameplates module to on now that it's useful. --- Modules/Nameplates/Nameplates.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Modules/Nameplates/Nameplates.lua b/Modules/Nameplates/Nameplates.lua index 9a1fe76..939319c 100644 --- a/Modules/Nameplates/Nameplates.lua +++ b/Modules/Nameplates/Nameplates.lua @@ -2,7 +2,7 @@ local mod = StarTip:NewModule("Nameplates", "AceTimer-3.0") mod.name = "Hide Nameplates" mod.toggled = true mod.desc = "Toggle this module on to cause the tooltip to hide when mousing over nameplates." -mod.defaultOff = true +mod.defaultOff = false local _G = _G local StarTip = _G.StarTip local GameTooltip = _G.GameTooltip @@ -90,8 +90,9 @@ local function isNameplate(frame) end local anchor = CreateFrame("Frame") -anchor:SetWidth(200) -anchor:SetHeight(200) +local size = 50 +anchor:SetWidth(size) +anchor:SetHeight(size) anchor:Show() local frames = {} function update() @@ -101,7 +102,7 @@ function update() if UnitExists("mouseover") then local x, y = GetCursorPosition() anchor:ClearAllPoints() - anchor:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", x - 100, y - 100) + anchor:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", x - size / 2, y - size / 2) if PluginUtils.Intersect(anchor, frame) then GameTooltip:Hide() end -- 1.7.9.5