PageRenderTime 72ms CodeModel.GetById 50ms app.highlight 3ms RepoModel.GetById 17ms app.codeStats 1ms

/Tukui/core/disable.lua

http://github.com/Asphyxia/Tukui
Lua | 39 lines | 25 code | 9 blank | 5 comment | 8 complexity | 97e4a626d4dc35beacb8587ee326ad43 MD5 | raw file
 1------------------------------------------------------------------------
 2-- auto-overwrite script config is X mod is found
 3------------------------------------------------------------------------
 4
 5-- because users are too lazy to disable feature in config file
 6-- adding an auto disable if some mods are loaded
 7local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
 8
 9if (IsAddOnLoaded("Stuf") or IsAddOnLoaded("PitBull4") or IsAddOnLoaded("ShadowedUnitFrames") or IsAddOnLoaded("ag_UnitFrames")) then
10	C["unitframes"].enable = false
11end
12
13if (IsAddOnLoaded("TidyPlates") or IsAddOnLoaded("Aloft")) then
14	C["nameplate"].enable = false
15end
16
17if (IsAddOnLoaded("Dominos") or IsAddOnLoaded("Bartender4") or IsAddOnLoaded("Macaroon")) then
18	C["actionbar"].enable = false
19end
20
21if (IsAddOnLoaded("Prat") or IsAddOnLoaded("Chatter")) then
22	C["chat"].enable = false
23end
24
25if (IsAddOnLoaded("Quartz") or IsAddOnLoaded("AzCastBar") or IsAddOnLoaded("eCastingBar")) then
26	C["unitframes"].unitcastbar = false
27end
28
29if (IsAddOnLoaded("TipTac")) then
30	C["tooltip"].enable = false
31end
32
33if (IsAddOnLoaded("Gladius")) then
34	C["arena"].unitframes = false
35end
36
37if (IsAddOnLoaded("SatrinaBuffFrame") or IsAddOnLoaded("ElkBuffBars")) then
38	C["auras"].player = false
39end