Language:
Lua     Change language:
Pastebin: 116670
Author: Anonymous
Subject: Untitled
Created: 2009-06-25 08:50:07
Download and save
Toggle line numbers
1hooksecurefunc("GameTooltip_SetDefaultAnchor", function(tooltip, parent) 
2    local anchors = layout["Anchors"
3    local frame = GetMouseFocus() 
4    if anchors then 
5        if anchors["ActionBar"] and frame and frame:IsObjectType("CheckButton") then 
6            local point, relpoint 
7            if type(anchors["ActionBar"]) == "table" then 
8                point, relpoint = anchors["ActionBar"][1], anchors["ActionBar"][2
9            end 
10            tooltip:SetOwner(parent, "ANCHOR_NONE"
11            tooltip:SetPoint(point or "BOTTOMLEFT", frame, relpoint or "TOPRIGHT"
12            return 
13        elseif anchors["UI Frames"] and frame ~= WorldFrame then 
14            local point, relpoint 
15            if type(anchors["UI Frames"]) == "table" then 
16                point, relpoint = anchors["UI Frames"][1], anchors["UI Frames"][2
17            end 
18            tooltip:SetOwner(parent, "ANCHOR_NONE"
19            tooltip:SetPoint(point or "CENTER", frame, relpoint or "TOPRIGHT"
20            return 
21        end 
22    end 
23    if IsAddOnLoaded("LonnyTooltip_Cursor") and frame == WorldFrame then 
24        tooltip:SetOwner(parent, "ANCHOR_CURSOR"
25        return 
26    elseif IsAddOnLoaded("LonnyTooltip_Mobility") then 
27        addon.Modules:SetMobility(tooltip, parent) 
28        return 
29    end 
30    tooltip:SetOwner(parent, "ANCHOR_PRESERVE"
31    tooltip.default = 1 
32end
Thread:
[116670] Untitled by Anonymous at 2009-06-25 08:50:07
Tip: Click the line numbers to toggle highliting on that line.

Paste followup:

Language:
Author:
Subject:


    Tabstop:     bigger biggest
Note: You can prefix a line with "@@@" to highlight it.