Mercurial > wow > reaction
comparison Options.lua @ 194:55af1ebbec65
Remove silly 'close this window when you open the other one' checkboxes
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Mon, 15 Nov 2010 10:30:19 -0800 |
| parents | 2e7a322e0195 |
| children | 97949dbe987f |
comparison
equal
deleted
inserted
replaced
| 193:576c50e51fc5 | 194:55af1ebbec65 |
|---|---|
| 63 name = L["Edit Bars..."], | 63 name = L["Edit Bars..."], |
| 64 desc = L["Show the ReAction Bar Editor dialogue"], | 64 desc = L["Show the ReAction Bar Editor dialogue"], |
| 65 func = "OptionShowEditor", | 65 func = "OptionShowEditor", |
| 66 order = 5, | 66 order = 5, |
| 67 }, | 67 }, |
| 68 _closeThis = { | |
| 69 type = "toggle", | |
| 70 name = L["Close on Launch"], | |
| 71 desc = L["Close the Interface Options window when launching the ReAction Bar Editor"], | |
| 72 get = "OptionGetCloseThis", | |
| 73 set = "OptionSetCloseThis", | |
| 74 order = 6, | |
| 75 cmdHidden = true, | |
| 76 dropdownHidden = true, | |
| 77 }, | |
| 78 keybind = { | 68 keybind = { |
| 79 type = "execute", | 69 type = "execute", |
| 80 name = L["Key Bindings"], | 70 name = L["Key Bindings"], |
| 81 desc = L["Show the keybinding dialogue"], | 71 desc = L["Show the keybinding dialogue"], |
| 82 func = "OptionLaunchKeybindMode", | 72 func = "OptionLaunchKeybindMode", |
| 83 order = 7, | 73 order = 6, |
| 84 }, | 74 }, |
| 85 skipProfileWarning = { | 75 skipProfileWarning = { |
| 86 type = "toggle", | 76 type = "toggle", |
| 87 name = L["Skip profile keybind warning"], | 77 name = L["Skip profile keybind warning"], |
| 88 desc = L["Don't show a warning about updating keybinds when switching profiles"], | 78 desc = L["Don't show a warning about updating keybinds when switching profiles"], |
| 89 get = "OptionGetSkipKeybindWarning", | 79 get = "OptionGetSkipKeybindWarning", |
| 90 set = "OptionSetSkipKeybindWarning", | 80 set = "OptionSetSkipKeybindWarning", |
| 91 width = "double", | 81 width = "double", |
| 92 order = 8, | 82 order = 7, |
| 93 }, | 83 }, |
| 94 } | 84 } |
| 95 }, | 85 }, |
| 96 profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db), | 86 profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db), |
| 97 } | 87 } |
| 170 end | 160 end |
| 171 | 161 |
| 172 | 162 |
| 173 function ReAction:OptionShowEditor() | 163 function ReAction:OptionShowEditor() |
| 174 self:ShowEditor() | 164 self:ShowEditor() |
| 175 if self.db.profile.closeOptionsOnEditorLaunch then | 165 InterfaceOptionsFrame:Hide() |
| 176 InterfaceOptionsFrame:Hide() | |
| 177 end | |
| 178 end | |
| 179 | |
| 180 | |
| 181 function ReAction:OptionGetCloseThis() | |
| 182 return self.db.profile.closeOptionsOnEditorLaunch | |
| 183 end | |
| 184 | |
| 185 | |
| 186 function ReAction:OptionSetCloseThis(info,val) | |
| 187 self.db.profile.closeOptionsOnEditorLaunch = val | |
| 188 end | 166 end |
| 189 | 167 |
| 190 | 168 |
| 191 function ReAction:OptionLaunchKeybindMode() | 169 function ReAction:OptionLaunchKeybindMode() |
| 192 self:SetKeybindMode(true) | 170 self:SetKeybindMode(true) |
