Quantcast

The info are for "newbs", treat it like that

Adrian L Lange [06-25-10 - 15:38]
The info are for "newbs", treat it like that
Filename
Broker_Equipment.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index bb927c2..a6c938e 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -111,15 +111,17 @@ function addon:initialize(...)
 		UIDropDownMenu_AddButton(info, ...)
 	end

-	wipe(info)
-	info.disabled = 1
-	info.notCheckable = 1
+	if(SHOW_NEWBIE_TIPS == '1') then
+		wipe(info)
+		info.disabled = 1
+		info.notCheckable = 1

-	info.text = ns.L[3]
-	UIDropDownMenu_AddButton(info, ...)
+		info.text = ns.L[3]
+		UIDropDownMenu_AddButton(info, ...)

-	info.text = ns.L[4]
-	UIDropDownMenu_AddButton(info, ...)
+		info.text = ns.L[4]
+		UIDropDownMenu_AddButton(info, ...)
+	end
 end

 function addon:ADDON_LOADED(name, event)