Mercurial > wow > mailopener
comparison Core.lua @ 60:4cd3b02f6840
Added a part for Mail Opener tips to the bottom of the general config. Also, the first time you start the config you will be prompted to enable continuous opening or not.
| author | Zerotorescue |
|---|---|
| date | Mon, 13 Sep 2010 23:58:48 +0200 |
| parents | 75c36b3d5443 |
| children | 4166a335ca81 |
comparison
equal
deleted
inserted
replaced
| 59:92b98a9000b8 | 60:4cd3b02f6840 |
|---|---|
| 14 | 14 |
| 15 | 15 |
| 16 -- SAVED VARIABLES | 16 -- SAVED VARIABLES |
| 17 | 17 |
| 18 local defaults = { | 18 local defaults = { |
| 19 global = { | |
| 20 currentTip = -1, -- even though LUA table indexes start at one, Config's OnEnable will increase this value by one the first time you run it and another 1 to adjust for the % modifier, so we still actually start at the table index 1 | |
| 21 }, | |
| 19 profile = { | 22 profile = { |
| 20 uses = 0, | 23 uses = 0, |
| 21 general = { | 24 general = { |
| 22 defaultStatus = "disabled", -- addon enabled, but mail opening not auto on | 25 defaultStatus = "disabled", -- addon enabled, but mail opening not auto on |
| 23 defaultQAStatus = "__remember", | 26 defaultQAStatus = "__remember", |
| 712 end | 715 end |
| 713 end | 716 end |
| 714 | 717 |
| 715 -- Toggle Postal's opening modules on or off | 718 -- Toggle Postal's opening modules on or off |
| 716 function MailOpener:TogglePostalModule(name, status) | 719 function MailOpener:TogglePostalModule(name, status) |
| 717 if MailOpener.PostalEnabled and Postal then | 720 if self.PostalEnabled and Postal then |
| 718 -- Postal must be enabled | 721 -- Postal must be enabled |
| 719 | 722 |
| 720 -- Toggle module (let Postal handle this) | 723 -- Toggle module (let Postal handle this) |
| 721 Postal.ToggleModule(nil, name, Postal:GetModule(name), status); | 724 Postal.ToggleModule(nil, name, Postal:GetModule(name), status); |
| 722 end | 725 end |
