Mercurial > wow > reaction
comparison ReAction.lua @ 122:a2d2f23137c8
- Rearranged and consolidated some files in modules directory
- Added 'classes' directory, moved Bar and Overlay there
- Added Button, ActionButton, and GridProxy classes, not in use yet
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 23 Feb 2009 18:56:57 +0000 |
parents | fb48811a8736 |
children | 29dacbecdb52 |
comparison
equal
deleted
inserted
replaced
121:fb6c3a642ae3 | 122:a2d2f23137c8 |
---|---|
520 function ReAction:PopKeybindWarning() | 520 function ReAction:PopKeybindWarning() |
521 if not self.db.global.skipKeybindWarning then | 521 if not self.db.global.skipKeybindWarning then |
522 StaticPopup_Show("REACTION_KB_WARN") | 522 StaticPopup_Show("REACTION_KB_WARN") |
523 end | 523 end |
524 end | 524 end |
525 | |
526 -- Export ReAction launcher to LibDataBroker-aware displays | |
527 LibStub:GetLibrary("LibDataBroker-1.1"):NewDataObject( "ReAction", | |
528 { | |
529 type = "launcher", | |
530 icon = "Interface\\Icons\\INV_Qiraj_JewelEncased", | |
531 | |
532 OnClick = function( frame, button ) | |
533 if not InCombatLockdown() then | |
534 if IsAltKeyDown() then | |
535 ReAction:SetKeybindMode( not ReAction:GetKeybindMode() ) | |
536 elseif IsShiftKeyDown() then | |
537 ReAction:SetConfigMode( not ReAction:GetConfigMode() ) | |
538 elseif button == "RightButton" then | |
539 ReAction:ShowEditor() | |
540 else | |
541 ReAction:ShowConfig() | |
542 end | |
543 else | |
544 ReAction:UserError(L["ReAction: can't configure in combat"]) | |
545 end | |
546 end, | |
547 | |
548 -- this isn't included in the 'launcher' type LDB spec but it seems all launcher displays use it | |
549 OnTooltipShow = function( tooltip ) | |
550 tooltip:AddLine(format("|cffffffff%s|r %s",L["Click"],L["for global configuration"])) | |
551 tooltip:AddLine(format("|cffffd200%s|r %s",L["Right-click"],L["for bar editor dialog"])) | |
552 tooltip:AddLine(format("|cff00ff00%s|r %s",L["Shift-click"],L["to unlock bars"])) | |
553 tooltip:AddLine(format("|cff00cccc%s|r %s",L["Alt-click"],L["for keybind mode"])) | |
554 end, | |
555 | |
556 } | |
557 ) |