Mercurial > wow > reaction
comparison modules/ReAction_ConfigUI/ReAction_ConfigUI.lua @ 83:1ad208c25618
Fixed display issues with renaming states/bars
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Wed, 25 Jun 2008 23:35:24 +0000 |
| parents | 57f8151ea0f0 |
| children | fc83b3f5b322 |
comparison
equal
deleted
inserted
replaced
| 82:5b7fd67a28ea | 83:1ad208c25618 |
|---|---|
| 291 AceConfigDialog:Open(editorName,self) | 291 AceConfigDialog:Open(editorName,self) |
| 292 end | 292 end |
| 293 | 293 |
| 294 function editor:Refresh() | 294 function editor:Refresh() |
| 295 AceConfigReg:NotifyChange(editorName) | 295 AceConfigReg:NotifyChange(editorName) |
| 296 if frame:IsShown() then | |
| 297 self:Open() -- do I need this? | |
| 298 end | |
| 299 end | 296 end |
| 300 | 297 |
| 301 function editor:CreateBarTree(bar) | 298 function editor:CreateBarTree(bar) |
| 302 local name = bar:GetName() | 299 local name = bar:GetName() |
| 303 -- AceConfig doesn't allow spaces, etc, in arg key names, and they must be | 300 -- AceConfig doesn't allow spaces, etc, in arg key names, and they must be |
| 436 options.args[key] = nil | 433 options.args[key] = nil |
| 437 self:Refresh() | 434 self:Refresh() |
| 438 end | 435 end |
| 439 end | 436 end |
| 440 | 437 |
| 441 function editor:OnRenameBar(evt, oldname, newname) | 438 function editor:OnRenameBar(evt, bar, oldname, newname) |
| 442 local key = barOptMap[oldname] | 439 local key = barOptMap[oldname] |
| 443 barOptMap[oldname], barOptMap[newname] = nil, key | 440 barOptMap[oldname], barOptMap[newname] = nil, key |
| 444 if key then | 441 if key then |
| 445 options.args[key].name = newname | 442 options.args[key].name = newname |
| 446 self:Refresh() | 443 self:Refresh() |
