comparison classes/Button.lua @ 236:dcdc0235d489

Really don't remove buttons if the current character doesn't support the spell
author Flick
date Thu, 24 Mar 2011 13:09:44 -0700
parents 1663c78a7f31
children
comparison
equal deleted inserted replaced
235:1663c78a7f31 236:dcdc0235d489
181 btnCfg[i] = cfg 181 btnCfg[i] = cfg
182 b:Refresh() 182 b:Refresh()
183 hint = b:GetActionID() 183 hint = b:GetActionID()
184 else 184 else
185 n = i - 1 185 n = i - 1
186 bar:ClipNButtons(n)
187 if not success then 186 if not success then
187 bar:ClipNButtons(n)
188 cfgN = n
188 geterrorhandler()(r) 189 geterrorhandler()(r)
189 end 190 end
190 end 191 end
191 end 192 end
192 i = i + 1 193 i = i + 1