comparison SkeletonKey/KeyButton.lua @ 29:bb160c04de88

- update matching patterns used for picking up profession keybinds
author Nenue
date Fri, 05 Aug 2016 12:25:18 -0400
parents 73df13211b22
children b0e4d04d428a
comparison
equal deleted inserted replaced
28:4d1c0a813411 29:bb160c04de88
385 if self.isDynamic then 385 if self.isDynamic then
386 print('|cFF00BBFFUpdateSlot|r:', self.isDynamic, self.isAvailable, self.actionID) 386 print('|cFF00BBFFUpdateSlot|r:', self.isDynamic, self.isAvailable, self.actionID)
387 end 387 end
388 388
389 if self.isDynamic == 'profession' then 389 if self.isDynamic == 'profession' then
390 local profText = (self.spellNum == 1) and TRADE_SKILLS or (BUTTON_HEADERS[self.profIndex] or GetProfessionInfo(self.profIndex))
391 if self.isAvailable then 390 if self.isAvailable then
391
392 local profText = (self.spellNum == 1) and TRADE_SKILLS or (BUTTON_HEADERS[self.profIndex] or GetProfessionInfo(self.profIndex))
392 print(self.profIndex, 'spnum', type(self.spellNum), (self.spellNum == 1)) 393 print(self.profIndex, 'spnum', type(self.spellNum), (self.spellNum == 1))
393 394
394 self.statusText = '|cFFFFFF00'..profText..'|r' 395 self.statusText = '|cFFFFFF00'..tostring(profText)..'|r'
395 self.bindingText = kb.BindingString(GetBindingKey(self.command)) 396 self.bindingText = kb.BindingString(GetBindingKey(self.command))
396 else 397 else
397 self.statusText = '|cFFFF4400'..profText..'|r' 398
398 self.actionName = '(need to train profession #'..self.profNum..')' 399 self.statusText = '|cFFFF4400Profession|r'
400 self.actionName = '(#'..self.professionNum..')'
399 self.bindingText ='?' 401 self.bindingText ='?'
400 end 402 end
401 elseif self.isDynamic == 'talent' then 403 elseif self.isDynamic == 'talent' then
402 404
403 self.statusText = '|cFF00FFFF'.. TALENT .. '|r' 405 self.statusText = '|cFF00FFFF'.. TALENT .. '|r'