Quantcast

Color the comment lines, and move some of them so they are not misleading

p3lim [01-14-11 - 20:32]
Color the comment lines, and move some of them so they are not misleading
Filename
Broker_Equipment.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index e4994bc..fc0ead0 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -96,10 +96,8 @@ end

 local function OnTooltipShow(self)
 	self:AddLine('|cff0090ffBroker Equipment|r')
-	self:AddLine(localization['Left-click'])
-	self:AddLine(localization['Right-click'])
-	self:AddLine(localization['Shift-click'])
-	self:AddLine(localization['Ctrl-click'])
+	self:AddLine('|cff00ff00<' .. localization['Left-click'] .. '>|r')
+	self:AddLine('|cff00ff00<' .. localization['Right-click'] .. '>|r')
 end

 local function OnClick(self, button)
@@ -129,6 +127,15 @@ local function CreateMenu()

 		UIDropDownMenu_AddButton(menu)
 	end
+
+	menu = wipe(menu)
+	menu.notCheckable = true
+
+	menu.text = '|cff00ff00<' .. localization['Shift-click'] .. '>|r'
+	UIDropDownMenu_AddButton(menu)
+
+	menu.text = '|cff00ff00<' .. localization['Ctrl-click'] .. '>|r'
+	UIDropDownMenu_AddButton(menu)
 end

 function parent:PLAYER_LOGIN()