Mercurial > wow > reaction
comparison Button.lua @ 279:5b9c0164a491
Fixed a number of problems with drag corners in config mode
- Fixed button resizing via dragging not updating until a reload
- Fixed pet/stance/vehicle buttons not always displaying in config mode
- Fixed error spam when making too many pet/bag buttons
author | Flick |
---|---|
date | Wed, 11 May 2011 16:19:17 -0700 |
parents | 4e325f1ea6e1 |
children | 7a9e82c0df15 |
comparison
equal
deleted
inserted
replaced
277:4e325f1ea6e1 | 279:5b9c0164a491 |
---|---|
186 else | 186 else |
187 n = i - 1 | 187 n = i - 1 |
188 if not success then | 188 if not success then |
189 bar:ClipNButtons(n) | 189 bar:ClipNButtons(n) |
190 cfgN = n | 190 cfgN = n |
191 geterrorhandler()(r) | 191 if r then |
192 geterrorhandler()(r) | |
193 end | |
192 end | 194 end |
193 end | 195 end |
194 end | 196 end |
195 i = i + 1 | 197 i = i + 1 |
196 until b == nil | 198 until b == nil |
233 end | 235 end |
234 end | 236 end |
235 end | 237 end |
236 if id == nil then | 238 if id == nil then |
237 if unique then | 239 if unique then |
238 error(("All action IDs for bars of type '%s' are in use, cannot create any more buttons"):format(self.config.barType)) | 240 ReAction:UserError(("All action IDs for bars of type '%s' are in use, cannot create any more buttons"):format(self.barType)) |
241 error(nil) -- no error message, user has already been notified, so don't put in Lua error handler | |
239 end | 242 end |
240 pool.nWraps = nWraps + 1 | 243 pool.nWraps = nWraps + 1 |
241 end | 244 end |
242 until id ~= nil | 245 until id ~= nil |
243 end | 246 end |