Quantcast

v2.0 - fluid action bar support

Pawel [11-24-16 - 04:14]
v2.0 - fluid action bar support
Filename
TDButtons.lua
TDDps.lua
TDDps.toc
diff --git a/TDButtons.lua b/TDButtons.lua
index 3b6775b..24f9aa5 100644
--- a/TDButtons.lua
+++ b/TDButtons.lua
@@ -147,7 +147,7 @@ function TDButton.Fetch()
 	end

 	TDDps.rotationEnabled = origEna;
-	TDDps:Print(_tdInfo, 'Fetched action bars!');
+	--TDDps:Print(_tdInfo, 'Fetched action bars!');
 	-- after fetching invoke spell check
 	if TDDps.rotationEnabled then
 		TDDps:InvokeNextSpell();
diff --git a/TDDps.lua b/TDDps.lua
index dda2cef..58d7c77 100644
--- a/TDDps.lua
+++ b/TDDps.lua
@@ -37,11 +37,9 @@ TDDps_TargetGuid = nil;
 TD_Hp0, TD_T0, TD_Hpm, TD_Tm = nil, nil, nil, nil;

 function TDDps:Print(color, message, force)
-	if (TDDps_Options.disabledInfo and not TDDps_Options.debugMode) or force then
-		return;
+	if force or TDDps_Options.debugMode or (not TDDps_Options.disabledInfo and color == _tdError) then
+		print(color .. TDDpsName .. ': ' .. message);
 	end
-
-	print(color .. TDDpsName .. ': ' .. message);
 end

 ----------------------------------------------
diff --git a/TDDps.toc b/TDDps.toc
index 0ead109..532179c 100644
--- a/TDDps.toc
+++ b/TDDps.toc
@@ -1,6 +1,6 @@
 ## Title: TDDps
 ## Notes: Rotation helper framework.
-## Version: 1.18
+## Version: 2.0
 ## Author: Kaminaris
 ## Interface: 70100
 ## SavedVariables: TDDps_Options