module: add option to disable pfUI-UnitFrames

This commit is contained in:
shagu
2016-11-13 15:02:13 +01:00
parent 00b7941de7
commit 0dac5bc1e0
9 changed files with 116 additions and 83 deletions
+3
View File
@@ -1,4 +1,7 @@
pfUI:RegisterModule("player", function ()
-- do not go further on disabled UFs
if pfUI_config.unitframes.disable == "1" then return end
PlayerFrame:Hide()
PlayerFrame:UnregisterAllEvents()