Mercurial > wow > reaction
comparison Bar.lua @ 58:20003239af0b
changed "layout editor" to "bar editor"
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 28 Apr 2008 21:08:35 +0000 |
| parents | 54308b48123c |
| children | 768be7eb22a0 |
comparison
equal
deleted
inserted
replaced
| 57:b85118b61564 | 58:20003239af0b |
|---|---|
| 521 si1:Hide() | 521 si1:Hide() |
| 522 si2:Hide() | 522 si2:Hide() |
| 523 end | 523 end |
| 524 end | 524 end |
| 525 | 525 |
| 526 local function RefreshLayoutEditor() | 526 local function RefreshBarEditor() |
| 527 ReAction:CallModuleMethod("ConfigUI","RefreshLayoutEditor") | 527 ReAction:CallModuleMethod("ConfigUI","RefreshBarEditor") |
| 528 end | 528 end |
| 529 | 529 |
| 530 CreateControls = function(bar) | 530 CreateControls = function(bar) |
| 531 local f = bar.frame | 531 local f = bar.frame |
| 532 | 532 |
| 582 f.isMoving = false | 582 f.isMoving = false |
| 583 f:SetScript("OnUpdate",nil) | 583 f:SetScript("OnUpdate",nil) |
| 584 StoreSize(bar) | 584 StoreSize(bar) |
| 585 ClampToButtons(bar) | 585 ClampToButtons(bar) |
| 586 ApplyAnchor(bar) | 586 ApplyAnchor(bar) |
| 587 RefreshLayoutEditor() | 587 RefreshBarEditor() |
| 588 end | 588 end |
| 589 | 589 |
| 590 -- edge drag handles | 590 -- edge drag handles |
| 591 for _, point in pairs({"LEFT","TOP","RIGHT","BOTTOM"}) do | 591 for _, point in pairs({"LEFT","TOP","RIGHT","BOTTOM"}) do |
| 592 local edge = CreateFrame("Frame",nil,control) | 592 local edge = CreateFrame("Frame",nil,control) |
| 749 end | 749 end |
| 750 HideSnapIndicator() | 750 HideSnapIndicator() |
| 751 end | 751 end |
| 752 | 752 |
| 753 StoreExtents(bar) | 753 StoreExtents(bar) |
| 754 RefreshLayoutEditor() | 754 RefreshBarEditor() |
| 755 updateDragTooltip() | 755 updateDragTooltip() |
| 756 end | 756 end |
| 757 ) | 757 ) |
| 758 | 758 |
| 759 control:SetScript("OnEnter", | 759 control:SetScript("OnEnter", |
| 821 self.menuOpts = { | 821 self.menuOpts = { |
| 822 type = "group", | 822 type = "group", |
| 823 args = { | 823 args = { |
| 824 openConfig = { | 824 openConfig = { |
| 825 type = "execute", | 825 type = "execute", |
| 826 name = L["Layout..."], | 826 name = L["Settings..."], |
| 827 desc = L["Open the layout editor for this bar"], | 827 desc = L["Open the editor for this bar"], |
| 828 func = function() CloseMenu(self.controlFrame); ReAction:CallModuleMethod("ConfigUI","LaunchLayoutEditor",self) end, | 828 func = function() CloseMenu(self.controlFrame); ReAction:CallModuleMethod("ConfigUI","LaunchBarEditor",self) end, |
| 829 disabled = InCombatLockdown, | 829 disabled = InCombatLockdown, |
| 830 order = 1 | 830 order = 1 |
| 831 }, | 831 }, |
| 832 delete = { | 832 delete = { |
| 833 type = "execute", | 833 type = "execute", |
