Mercurial > wow > reaction
comparison Editor.lua @ 258:a7d2efb6ffc9 stable
Merge 1.1 beta 5 to stable
author | Flick |
---|---|
date | Tue, 12 Apr 2011 16:07:21 -0700 |
parents | d7a7ef367faf |
children | 5ab04f393b0b |
comparison
equal
deleted
inserted
replaced
257:920d17851a93 | 258:a7d2efb6ffc9 |
---|---|
41 | 41 |
42 local frame = self.gui.frame | 42 local frame = self.gui.frame |
43 frame:SetClampedToScreen(true) | 43 frame:SetClampedToScreen(true) |
44 frame:Hide() | 44 frame:Hide() |
45 | 45 |
46 frame:SetScript("OnHide", | |
47 function(...) | |
48 ReAction:SetConfigMode(false) | |
49 end) | |
50 | |
51 self.title = ("%s - %s"):format(L["ReAction"],L["Bar Editor"]) | 46 self.title = ("%s - %s"):format(L["ReAction"],L["Bar Editor"]) |
52 self.gui:SetTitle(self.title) | 47 self.gui:SetTitle(self.title) |
53 | 48 |
54 self.options = { | 49 self.options = { |
55 type = "group", | 50 type = "group", |
59 args = { | 54 args = { |
60 launchConfig = { | 55 launchConfig = { |
61 type = "execute", | 56 type = "execute", |
62 name = L["Global Config"], | 57 name = L["Global Config"], |
63 desc = L["Opens ReAction global configuration settings panel"], | 58 desc = L["Opens ReAction global configuration settings panel"], |
64 func = function() ReAction:ShowOptions(); self:Close() end, | 59 func = function() |
60 -- AceConfigDialog calls :Open() after every selection, making it | |
61 -- generally not possible to cleanly close from a menu item. | |
62 -- If you don't use a custom frame, you can use ACD:Close(), but since | |
63 -- we're using a custom frame, we have to do the work of closing later in an | |
64 -- OnUpdate script. | |
65 ReAction:ShowOptions(); | |
66 frame:SetScript("OnUpdate", | |
67 function() | |
68 self:Close() | |
69 frame:SetScript("OnUpdate",nil) | |
70 end) | |
71 end, | |
65 order = 1 | 72 order = 1 |
66 }, | 73 }, |
67 desc = { | 74 desc = { |
68 type = "description", | 75 type = "description", |
69 name = L["Use the mouse to arrange and resize the bars on screen. Tooltips on bars indicate additional functionality."], | 76 name = L["Use the mouse to arrange and resize the bars on screen. Tooltips on bars indicate additional functionality."], |