vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 AH_Mailcollect = {ACEUTIL_VERSION = 1.01}
2  
3 if not ace:LoadTranslation("AH_MailCollect") then
4 AH_MailCollectLocals = {}
5  
6 --[[ ================================================= ]]--
7 -- Section I: The Chat Options. --
8 --[[ ================================================= ]]--
9  
10 AH_MailCollectLocals.ChatCmd = {"/ahmailcollect", "/amc"}
11  
12 AH_MailCollectLocals.ChatOpt = {
13 {
14 option = "summary",
15 desc = "Toggles showing a summary of total money received.",
16 method = "ToggleGainLossSummaryMail",
17 args = {
18 {
19 option = "help",
20 desc = "Allows you to toggle whether or not to show a summary of total money received from your Inbox after closing the mailbox window."
21 }
22 }
23 },
24 {
25 option = "verbose",
26 desc = "Toggles showing each money amount as it's processed from mail.",
27 method = "ToggleGainLossDisplayMail",
28 args = {
29 {
30 option = "help",
31 desc = "Allows you to toggle whether or not to show a detailed list of money amounts received from your Inbox as it's being processed."
32 }
33 }
34 },
35 {
36 option = "items",
37 desc = "Toggles whether or not to loot item attachments when opening messages.",
38 method = "ToggleLootItems",
39 args = {
40 {
41 option = "help",
42 desc = "Allows you to toggle whether or not to automatically retrieve items from your inbox messages when you right-click on them.",
43 }
44 }
45 },
46 {
47 option = "auctionitems",
48 desc = "Toggles whether or not to loot all auction item attachments when opening messages.",
49 method = "ToggleAuctionItems",
50 args = {
51 {
52 option = "help",
53 desc = "Allows you to toggle whether or not to automatically retrieve all Auction items from your messages when you open the inbox.",
54 }
55 }
56 },
57 {
58 option = "deleteall",
59 desc = "Toggles whether or not to delete messages with attachments sent to you by others after looting.",
60 method = "ToggleDeleteAllMail",
61 args = {
62 {
63 option = "help",
64 desc = "Allows you to toggle whether or not to automatically delete a message with an item sent to you by anotherh player after you retreive the item from your inbox message. In some cases you may want to keep the test in the message and not delete right away, so this is an option.",
65 }
66 }
67 },
68 }
69  
70 --[[ ================================================= ]]--
71 -- Section II: AddOn Information. --
72 --[[ ================================================= ]]--
73  
74 AH_MailCollectLocals.Name = "AH_MailCollect"
75 AH_MailCollectLocals.Version = "0.9"
76 AH_MailCollectLocals.Description = "Automatically collects money from all successful auctions in your mailbox."
77 AH_MailCollectLocals.ReleaseDate = "04.28.06"
78  
79 --[[ ================================================= ]]--
80 -- Section III: Register Global Variables. --
81 --[[ ================================================= ]]--
82  
83 ace:RegisterGlobals({
84 version = AH_Mailcollect.ACEUTIL_VERSION,
85  
86 -- A list of hexadecimal values that can be used for conversion of a 0-15
87 -- decimal value into hex. Use: ACE_HEX[int+1]
88 ACEG_HEX = {0,1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f"},
89  
90 -- Value maps for use in displaying values in a more readable format.
91 ACEG_MAP_ONOFF = {[0]="|cffff5050Off|r",[1]="|cff00ff00On|r"},
92  
93 -- Standard gold, silver, and copper colors in hex format.
94 ACEG_COLOR_HEX_GOLD = "ffd700",
95 ACEG_COLOR_HEX_SILVER = "c7c7cf",
96 ACEG_COLOR_HEX_COPPER = "eda55f",
97  
98 -- References for the first letters of the words gold, silver, and copper that
99 -- can be used for localization purposes.
100 ACEG_LETTER_GOLD = "g",
101 ACEG_LETTER_SILVER = "s",
102 ACEG_LETTER_COPPER = "c",
103 })
104  
105 AH_MailCollectLocals.TEXT_DISPLAY_MAIL = "Display each gain at the mailbox."
106 AH_MailCollectLocals.TEXT_SUM_MAIL = "Summary of all money received."
107 AH_MailCollectLocals.TEXT_DELETE_ALL = "Delete messages from other players with an item after loot."
108 AH_MailCollectLocals.TEXT_SUM_MAIL = "Summary of all money received."
109 AH_MailCollectLocals.TEXT_LOOT_ITEMS = "Retrieve items from a message automatically on right-click."
110 AH_MailCollectLocals.TEXT_AUCTION_ITEMS = "Retrieve all Auction items automatically when opening the mailbox."
111  
112 AH_MailCollectLocals.GAINED_MSG = "%s received."
113 AH_MailCollectLocals.GAINED_SUM_MSG = "You gained a total of %s."
114 AH_MailCollectLocals.LOST_CASH_MSG = "You lost %s."
115 AH_MailCollectLocals.LOST_SUM_MSG = "You lost a total of %s."
116 AH_MailCollectLocals.TEXT_INV_FULL = "Your inventory is full!"
117  
118 -- AH_MailCollectLocals.AUCTION_SUCCESS_MSG = "Auction successful"
119 -- AH_MailCollectLocals.AUCTION_OUTBID_MSG = "Outbid"
120 -- AH_MailCollectLocals.AUCTION_WON_MSG = "Auction won"
121  
122 end