Mercurial > wow > skeletonkey
comparison SkeletonKey/UI.lua @ 11:f9c18c0a6377
- refresh button text
author | Nenue |
---|---|
date | Thu, 28 Jul 2016 17:43:16 -0400 |
parents | e7977b336bf7 |
children | 8f8917d111c9 |
comparison
equal
deleted
inserted
replaced
10:e7977b336bf7 | 11:f9c18c0a6377 |
---|---|
199 | 199 |
200 | 200 |
201 | 201 |
202 --portraitLayers[1] = KeyBinderCharacterTab.icon | 202 --portraitLayers[1] = KeyBinderCharacterTab.icon |
203 | 203 |
204 saveButton = kb:button('KeyBinderSaveButton', 'Save', 'Commit all changes.', SaveButton_OnClick) | 204 saveButton = kb:button('KeyBinderSaveButton', 'Refresh', 'Reload current bindings and refresh panel.', SaveButton_OnClick) |
205 --restoreButton = kb:button('KeyBinderRestoreButton', 'Discard', 'Revert all changes.', CancelButton_OnClick) | 205 --restoreButton = kb:button('KeyBinderRestoreButton', 'Discard', 'Revert all changes.', CancelButton_OnClick) |
206 --clearButton = kb:button('KeyBinderClearButton', 'Clear Page', 'Release all buttons.', ResetButton_OnClick) | 206 --clearButton = kb:button('KeyBinderClearButton', 'Clear Page', 'Release all buttons.', ResetButton_OnClick) |
207 | 207 |
208 kb:uibutton( | 208 kb:uibutton( |
209 'KeyBinderSpellBookButton', 'SpellBook', nil, | 209 'KeyBinderSpellBookButton', 'SpellBook', nil, |
518 self.bind:SetTextColor(1,1,1,1) | 518 self.bind:SetTextColor(1,1,1,1) |
519 end | 519 end |
520 | 520 |
521 self.header:SetText(self.statusText) | 521 self.header:SetText(self.statusText) |
522 self.bind:SetText(self.bindingText) | 522 self.bind:SetText(self.bindingText) |
523 self.macro:SetText(self.macroName) | |
524 self.details:SetText(self.actionName) | 523 self.details:SetText(self.actionName) |
525 end | 524 end |
526 | 525 |
527 --- push current information into living UI | 526 --- push current information into living UI |
528 kb.ui = function(force) | 527 kb.ui = function(force) |
544 local button = kb.GetSlot(i) | 543 local button = kb.GetSlot(i) |
545 button:SetID(i+kb.scrollOffset) | 544 button:SetID(i+kb.scrollOffset) |
546 kb.UpdateSlot(button, force) | 545 kb.UpdateSlot(button, force) |
547 end | 546 end |
548 | 547 |
549 if kb.bindsCommitted then | |
550 KeyBinderSaveButton:Disable() | |
551 --KeyBinderRestoreButton:Disable() | |
552 else | |
553 KeyBinderSaveButton:Enable() | |
554 --KeyBinderRestoreButton:Enable() | |
555 end | |
556 | 548 |
557 --- Frame Sizing | 549 --- Frame Sizing |
558 kb.profilebg:SetHeight(kb.tabSize[2] + BUTTON_PADDING * 2 + kb.profiletext:GetStringHeight()) | 550 kb.profilebg:SetHeight(kb.tabSize[2] + BUTTON_PADDING * 2 + kb.profiletext:GetStringHeight()) |
559 | 551 |
560 kb.bg:SetWidth((KEY_BUTTON_SIZE + BUTTON_HSPACING + BUTTON_SPACING) * BINDS_PER_ROW + BUTTON_PADDING*2 - BUTTON_SPACING) | 552 kb.bg:SetWidth((KEY_BUTTON_SIZE + BUTTON_HSPACING + BUTTON_SPACING) * BINDS_PER_ROW + BUTTON_PADDING*2 - BUTTON_SPACING) |