Mercurial > wow > reaction
comparison modules/Totem.lua @ 164:363dd8130205
minor tweak to facilitate picking up the bar when training Call of Elements
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sat, 22 Aug 2009 00:26:29 +0000 |
parents | ab5c37989986 |
children | df68b5a40490 |
comparison
equal
deleted
inserted
replaced
163:ab5c37989986 | 164:363dd8130205 |
---|---|
87 Button.SetupBarHeader(bar) | 87 Button.SetupBarHeader(bar) |
88 for i = 1, n do | 88 for i = 1, n do |
89 if btnCfg[i] == nil then | 89 if btnCfg[i] == nil then |
90 btnCfg[i] = {} | 90 btnCfg[i] = {} |
91 end | 91 end |
92 if btns[i] == nil then | 92 if not btns[i] then |
93 local success, r = pcall(Button.New,Button,i,btnCfg,bar) | 93 local success, r = pcall(Button.New,Button,i,btnCfg,bar) |
94 if success then | 94 if success then |
95 btns[i] = r | 95 btns[i] = r |
96 if r then | 96 if r then |
97 bar:AddButton(i,r) | 97 bar:AddButton(i,r) |