Mercurial > wow > skeletonkey
comparison SkeletonKey/KeyButton.lua @ 34:daff39af0c6d
changeset logjam
author | Nenue |
---|---|
date | Tue, 16 Aug 2016 10:24:55 -0400 |
parents | b0e4d04d428a |
children | 9a9d7f2a7c07 |
comparison
equal
deleted
inserted
replaced
33:d5e6b2265d6f | 34:daff39af0c6d |
---|---|
355 else | 355 else |
356 kb.ReleaseSlot(self) | 356 kb.ReleaseSlot(self) |
357 end | 357 end |
358 end | 358 end |
359 | 359 |
360 | |
360 if self.command then | 361 if self.command then |
361 print('['..slot..'] =', self.command, GetBindingKey(self.command)) | 362 print('['..slot..'] =', self.command, GetBindingKey(self.command)) |
362 | 363 |
363 if not self.isAvailable then | 364 if not self.isAvailable then |
364 self.border:SetColorTexture(1,0,0,1) | 365 self.border:SetColorTexture(1,0,0,1) |
445 | 446 |
446 if self.actionType == 'spell' then | 447 if self.actionType == 'spell' then |
447 self.icon:SetTexture(GetSpellTexture(self.actionID)) | 448 self.icon:SetTexture(GetSpellTexture(self.actionID)) |
448 end | 449 end |
449 else | 450 else |
451 if kb.saveTarget == self then | |
452 kb.DeactivateSlot(self) | |
453 end | |
454 | |
450 self.ignoreTexture:Hide() | 455 self.ignoreTexture:Hide() |
451 end | 456 end |
452 | 457 |
453 if not self.isAvailable then | 458 if not self.isAvailable then |
454 self.bind:SetTextColor(0.7,0.7,0.7,1) | 459 self.bind:SetTextColor(0.7,0.7,0.7,1) |