Mercurial > wow > buffalo2
comparison Veneer.lua @ 75:d9d16e67725c
- refactor objectives plugin
| author | Nenue |
|---|---|
| date | Sat, 27 Aug 2016 07:09:54 -0400 |
| parents | cd6e78091b04 |
| children | 83b3cdaae6a5 |
comparison
equal
deleted
inserted
replaced
| 74:cd6e78091b04 | 75:d9d16e67725c |
|---|---|
| 1 -- Veneer | 1 -- Veneer |
| 2 -- Base framework for making things draggable. | 2 -- Base framework for making things draggable. |
| 3 | 3 |
| 4 local vn, print = LibStub("LibKraken").register(VeneerController) | 4 local vn, print = LibStub("LibKraken").register(Veneer) |
| 5 | 5 |
| 6 | 6 |
| 7 local defaults = { | 7 local defaults = { |
| 8 enableAll = true, | 8 enableAll = true, |
| 9 enableModule = { | 9 enableModule = { |
| 176 end | 176 end |
| 177 | 177 |
| 178 SLASH_VENEER1 = "/veneer" | 178 SLASH_VENEER1 = "/veneer" |
| 179 SLASH_VENEER2 = "/vn" | 179 SLASH_VENEER2 = "/vn" |
| 180 | 180 |
| 181 SlashCmdList.VENEER = function() | 181 SlashCmdList.VENEER = function(cmd) |
| 182 for i, module in pairs(vn.modules) do | |
| 183 if module.cmd then | |
| 184 local result = module.cmd(cmd) | |
| 185 if result then | |
| 186 return | |
| 187 end | |
| 188 end | |
| 189 end | |
| 190 | |
| 182 ToggleVeneerConfig() | 191 ToggleVeneerConfig() |
| 183 end | 192 end |
