-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCompat.lua
More file actions
57 lines (55 loc) · 1.87 KB
/
Copy pathCompat.lua
File metadata and controls
57 lines (55 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
local _, L = ...
----------------------------------
-- Compatibility list
----------------------------------
L.compat = {
----------------------------------
['ConsolePort'] = function(self)
if ConsolePortCursor then L.ToggleIgnoreFrame(ConsolePortCursor, true) end
if ConsolePortMouseHandle then L.ToggleIgnoreFrame(ConsolePortMouseHandle, true) end
if ConsolePortUIHandle then L.ToggleIgnoreFrame(ConsolePortUIHandle.HintBar, true) end
end;
----------------------------------
['Blitz'] = function(self)
local button, text = Blitz, BlitzText
if button and text then
button:SetParent(ImmersionContentFrame)
button:ClearAllPoints()
button:SetHitRectInsets(-100, 0, 0, 0)
button:SetPoint('TOPRIGHT')
text:ClearAllPoints()
text:SetPoint('RIGHT', button, 'LEFT', 0, 1)
text:SetJustifyH('RIGHT')
end
end;
----------------------------------
['NomiCakes'] = function(self)
NomiCakesGossipButtonName = _ .. 'TitleButton'
end;
----------------------------------
['!KalielsTracker'] = function(self)
local KTF = _G['!KalielsTrackerFrame']
L.ToggleIgnoreFrame(KTF, not L('hidetracker'))
Settings.SetOnValueChangedCallback(L.GetSettingVariable('hidetracker'), function(_, _, val)
L.ToggleIgnoreFrame(KTF, not val)
end)
-- this override keeps the tracker from popping back up due to events when faded
function KTF:SetAlpha(...)
local newAlpha = ...
if newAlpha and self.fadeInfo and abs(self:GetAlpha() - newAlpha) > 0.5 then
return
end
getmetatable(self).__index.SetAlpha(self, ...)
end
end;
----------------------------------
['ls_Toasts'] = function(self)
ls_Toasts[1].RegisterCallback({}, 'ToastCreated', function(_, toast)
L.ToggleIgnoreFrame(toast, true)
end)
end;
----------------------------------
['DialogKey'] = function(self) -- because dummies can't figure out this is already baked in
L.Set('enablenumbers', true)
end;
}