Mercurial > wow > inventory
comparison Modules/Scanner.lua @ 144:12a8ea5af671
Added a ?remove? button to the crafting queue.
When removing an item from the queue or when it is finished casting (when using the Inventorium queue processer), items are moved to the ?unqueuables? window.
Fixed auction price checking.
Now resetting filters before scanning the tradeskill recipes.
author | Zerotorescue |
---|---|
date | Wed, 19 Jan 2011 23:21:16 +0100 |
parents | 56f33abee1e3 |
children | 07263a435f3c |
comparison
equal
deleted
inserted
replaced
143:8eb0f5b5a885 | 144:12a8ea5af671 |
---|---|
65 else | 65 else |
66 return aName < bName; | 66 return aName < bName; |
67 end | 67 end |
68 end, | 68 end, |
69 ["sort"] = "asc", -- when the data is set, use this column so sort the default data | 69 ["sort"] = "asc", -- when the data is set, use this column so sort the default data |
70 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Item"), | 70 ["tooltipTitle"] = "Item", |
71 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by item quality then item name."), | 71 ["tooltip"] = "Click to sort the list by item quality then item name.", |
72 }, | 72 }, |
73 { | 73 { |
74 ["name"] = "Moving", | 74 ["name"] = "Moving", |
75 ["width"] = (scrollTableWidth * .15), | 75 ["width"] = (scrollTableWidth * .15), |
76 ["align"] = "RIGHT", | 76 ["align"] = "RIGHT", |
77 ["defaultsort"] = "dsc", | 77 ["defaultsort"] = "dsc", |
78 ["sortnext"] = 1, | 78 ["sortnext"] = 1, |
79 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Moving"), | 79 ["tooltipTitle"] = "Moving", |
80 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by the amount of movable items."), | 80 ["tooltip"] = "Click to sort the list by the amount of movable items.", |
81 }, | 81 }, |
82 { | 82 { |
83 ["name"] = "Available", | 83 ["name"] = "Available", |
84 ["width"] = (scrollTableWidth * .25), | 84 ["width"] = (scrollTableWidth * .25), |
85 ["align"] = "RIGHT", | 85 ["align"] = "RIGHT", |
93 return aAvailablePercent > bAvailablePercent; | 93 return aAvailablePercent > bAvailablePercent; |
94 else | 94 else |
95 return aAvailablePercent < bAvailablePercent; | 95 return aAvailablePercent < bAvailablePercent; |
96 end | 96 end |
97 end, | 97 end, |
98 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Item"), | 98 ["tooltipTitle"] = "Item", |
99 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by the availibility percentage."), | 99 ["tooltip"] = "Click to sort the list by the availibility percentage.", |
100 }, | 100 }, |
101 }; | 101 }; |
102 | 102 |
103 local proceedButton = { | 103 local proceedButton = { |
104 text = "Move Items", | 104 text = "Move Items", |
105 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Move Items"), | 105 tooltipTitle = "Move Items", |
106 tooltip = (not addon.db.profile.defaults.hideHelp and "Start moving these items from the bank."), | 106 tooltip = "Start moving these items from the bank.", |
107 onClick = OnMoveAccept, | 107 onClick = OnMoveAccept, |
108 }; | 108 }; |
109 local cancelButton = { | 109 local cancelButton = { |
110 text = "Cancel", | 110 text = "Cancel", |
111 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), | 111 tooltipTitle = "Cancel", |
112 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not move anything and close the window."), | 112 tooltip = "Do not move anything and close the window.", |
113 onClick = OnMoveCancel, | 113 onClick = OnMoveCancel, |
114 }; | 114 }; |
115 | 115 |
116 addon:SetMoverFrameSettings("Inventorium Storage Refill", "The items listed below can be refilled from this location, do you wish to move them to your bags?", proceedButton, cancelButton, headers); | 116 addon:SetMoverFrameSettings("Inventorium Storage Refill", "The items listed below can be refilled from this location, do you wish to move them to your bags?", proceedButton, cancelButton, headers); |
117 end | 117 end |
143 else | 143 else |
144 return aName < bName; | 144 return aName < bName; |
145 end | 145 end |
146 end, | 146 end, |
147 ["sort"] = "asc", -- when the data is set, use this column so sort the default data | 147 ["sort"] = "asc", -- when the data is set, use this column so sort the default data |
148 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Item"), | 148 ["tooltipTitle"] = "Item", |
149 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by item quality then item name."), | 149 ["tooltip"] = "Click to sort the list by item quality then item name.", |
150 }, | 150 }, |
151 { | 151 { |
152 ["name"] = "Buying", | 152 ["name"] = "Buying", |
153 ["width"] = (scrollTableWidth * .20), | 153 ["width"] = (scrollTableWidth * .20), |
154 ["align"] = "RIGHT", | 154 ["align"] = "RIGHT", |
155 ["defaultsort"] = "dsc", | 155 ["defaultsort"] = "dsc", |
156 ["sortnext"] = 1, | 156 ["sortnext"] = 1, |
157 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Buying"), | 157 ["tooltipTitle"] = "Buying", |
158 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by the amount of purchasable items."), | 158 ["tooltip"] = "Click to sort the list by the amount of purchasable items.", |
159 }, | 159 }, |
160 { | 160 { |
161 ["name"] = "Cost", | 161 ["name"] = "Cost", |
162 ["width"] = (scrollTableWidth * .20), | 162 ["width"] = (scrollTableWidth * .20), |
163 ["align"] = "RIGHT", | 163 ["align"] = "RIGHT", |
164 ["defaultsort"] = "dsc", | 164 ["defaultsort"] = "dsc", |
165 ["sortnext"] = 1, | 165 ["sortnext"] = 1, |
166 ["tooltipTitle"] = (not addon.db.profile.defaults.hideHelp and "Cost"), | 166 ["tooltipTitle"] = "Cost", |
167 ["tooltip"] = (not addon.db.profile.defaults.hideHelp and "Click to sort the list by the total cost of buying all these items."), | 167 ["tooltip"] = "Click to sort the list by the total cost of buying all these items.", |
168 }, | 168 }, |
169 }; | 169 }; |
170 | 170 |
171 local proceedButton = { | 171 local proceedButton = { |
172 text = "Purchase Items", | 172 text = "Purchase Items", |
173 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Purchase Items"), | 173 tooltipTitle = "Purchase Items", |
174 tooltip = (not addon.db.profile.defaults.hideHelp and "Start purchasing these items from this merchant."), | 174 tooltip = "Start purchasing these items from this merchant.", |
175 onClick = OnMoveAccept, | 175 onClick = OnMoveAccept, |
176 }; | 176 }; |
177 local cancelButton = { | 177 local cancelButton = { |
178 text = "Cancel", | 178 text = "Cancel", |
179 tooltipTitle = (not addon.db.profile.defaults.hideHelp and "Cancel"), | 179 tooltipTitle = "Cancel", |
180 tooltip = (not addon.db.profile.defaults.hideHelp and "Do not purchase anything and close the window."), | 180 tooltip = "Do not purchase anything and close the window.", |
181 onClick = OnMoveCancel, | 181 onClick = OnMoveCancel, |
182 }; | 182 }; |
183 | 183 |
184 addon:SetMoverFrameSettings("Inventorium Merchant Restock", ("The following items can be restocked from this merchant for a total of %s. Do you wish to proceed?"):format(GetSmallCoinTextureString(totalCost)), proceedButton, cancelButton, headers); | 184 addon:SetMoverFrameSettings("Inventorium Merchant Restock", ("The following items can be restocked from this merchant for a total of %s. Do you wish to proceed?"):format(GetSmallCoinTextureString(totalCost)), proceedButton, cancelButton, headers); |
185 end | 185 end |