Mercurial > wow > itemauditor
comparison Modules/Utils.lua @ 101:53147a647e28
Converted the crafting threshold option to allow input instead of a drop down.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Thu, 19 Aug 2010 23:26:54 -0700 |
| parents | 4ec8611d9466 |
| children |
comparison
equal
deleted
inserted
replaced
| 100:e6292f1a0cf3 | 101:53147a647e28 |
|---|---|
| 2 local Utils = ItemAuditor:NewModule("Utils") | 2 local Utils = ItemAuditor:NewModule("Utils") |
| 3 | 3 |
| 4 function Utils.FormatMoney(copper, color, textOnly) | 4 function Utils.FormatMoney(copper, color, textOnly) |
| 5 color = color or "|cFFFFFFFF" | 5 color = color or "|cFFFFFFFF" |
| 6 local prefix = "" | 6 local prefix = "" |
| 7 copper = copper or 0 | |
| 7 if copper < 0 then | 8 if copper < 0 then |
| 8 prefix = "-" | 9 prefix = "-" |
| 9 copper = abs(copper) | 10 copper = abs(copper) |
| 10 end | 11 end |
| 11 | 12 |
