Mercurial > wow > reaction
comparison ReAction.lua @ 234:0e20f65375d5
Reworked button creation to not use goofy event driven semantics.
author | Flick |
---|---|
date | Tue, 22 Mar 2011 17:05:51 -0700 |
parents | 158c9299185b |
children | 704f4a05a1d7 |
comparison
equal
deleted
inserted
replaced
233:9b9f5fc84d34 | 234:0e20f65375d5 |
---|---|
183 end | 183 end |
184 class = self.barTypes[config.type] | 184 class = self.barTypes[config.type] |
185 end | 185 end |
186 | 186 |
187 profile.bars[name] = config | 187 profile.bars[name] = config |
188 local bar = self.Bar:New( name, config ) -- ReAction.Bar defined in Bar.lua | 188 local bar = self.Bar:New( name, config, class ) -- ReAction.Bar defined in Bar.lua |
189 self.bars[name] = bar | 189 self.bars[name] = bar |
190 self.callbacks:Fire("OnCreateBar", bar, name) | 190 self.callbacks:Fire("OnCreateBar", bar, name) |
191 if self.configMode then | 191 if self.configMode then |
192 bar:ShowControls(true) | 192 bar:ShowControls(true) |
193 end | 193 end |