Quantcast

Make the buttons checkable

p3lim [01-14-11 - 20:23]
Make the buttons checkable
Filename
Broker_Equipment.lua
diff --git a/Broker_Equipment.lua b/Broker_Equipment.lua
index c7df1d7..e4994bc 100644
--- a/Broker_Equipment.lua
+++ b/Broker_Equipment.lua
@@ -121,11 +121,11 @@ local function CreateMenu()
 	for index = 1, GetNumEquipmentSets() do
 		local name, icon = GetEquipmentSetInfo(index)
 		menu.func = ModifiedClick
-		menu.text = string.format('%s%s', EquipmentLocated(name) and '|cff00ff00' or pendingName and pendingName == name and '|cffff0000' or '', name)
+		menu.text = string.format('%s%s', pendingName and pendingName == name and '|cffff0000' or '', name)
 		menu.icon = icon
 		menu.arg1 = name
 		menu.arg2 = icon
-		menu.notCheckable = 1
+		menu.checked = EquipmentLocated(name)

 		UIDropDownMenu_AddButton(menu)
 	end