Mercurial > wow > skeletonkey
comparison SkeletonKey/SkeletonKey.lua @ 65:556e075983a6
check for valid spell name when updating talent data
author | Nenue |
---|---|
date | Sat, 10 Sep 2016 19:08:19 -0400 |
parents | d8bb2629fea8 |
children |
comparison
equal
deleted
inserted
replaced
64:178d489f387c | 65:556e075983a6 |
---|---|
154 return | 154 return |
155 end | 155 end |
156 | 156 |
157 if db.showUI then | 157 if db.showUI then |
158 db.showUI = false | 158 db.showUI = false |
159 kb:print('|cFFFFFF00KeyBinds|r trace, |cFFFF0000OFF|r.') | |
160 kb:Hide() | 159 kb:Hide() |
161 else | 160 else |
162 db.showUI = true | 161 db.showUI = true |
163 kb:print('|cFFFFFF00KeyBinds|r trace, |cFF00FF00ON|r.') | 162 if not InCombatLockdown() then |
163 kb:print(L('Config frame opened.')) | |
164 else | |
165 kb:print(L('Config frame will open upon exiting combat.')) | |
166 end | |
164 end | 167 end |
165 kb.ui(true) | 168 kb.ui(true) |
166 end | 169 end |
167 | 170 |
168 kb.InitProfile = function(profile, prototype) | 171 kb.InitProfile = function(profile, prototype) |
272 end | 275 end |
273 | 276 |
274 kb.ConfirmBindings = function() | 277 kb.ConfirmBindings = function() |
275 kb.ApplyAllBindings() | 278 kb.ApplyAllBindings() |
276 kb.ui() | 279 kb.ui() |
280 if #kb.pendingAttributes == 0 then | |
281 kb:print(L("Manual bindings update finished.")) | |
282 else | |
283 kb:print(L("Manual update will complete upon exiting combat.")) | |
284 end | |
277 end | 285 end |
278 | 286 |
279 --- post ADDON_LOADED | 287 --- post ADDON_LOADED |
280 kb.variables = function() | 288 kb.variables = function() |
281 _G.SkeletonKeyDB = kb.InitProfile(_G.SkeletonKeyDB, {}) | 289 _G.SkeletonKeyDB = kb.InitProfile(_G.SkeletonKeyDB, {}) |