Mercurial > wow > itemauditor
changeset 22:66b7c3f5937e
I have removed the ability to show debug messages in the chat window and have replaced it with a new debug frame. /ia debug will show all of the debug messages and everything that IA has printed. This commit also has a small fix so that if you sell something for your exact cost you don't get a message that you made a profit of 0c.
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Thu, 08 Jul 2010 19:30:30 -0700 |
parents | d7f02c84994c |
children | 819bfdc5d73c |
files | .pkgmeta CHANGELOG.txt Core.lua ItemAuditor.toc ItemAuditor.xml Modules/Debug.lua Modules/Options.lua |
diffstat | 7 files changed, 180 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/.pkgmeta Tue Jul 06 23:48:54 2010 -0700 +++ b/.pkgmeta Thu Jul 08 19:30:30 2010 -0700 @@ -32,7 +32,10 @@ required-dependencies: - Altoholic + optional-dependencies: - QuickAuctions - Skillet - LilSparkysWorkshop + +manual-changelog: CHANGELOG.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CHANGELOG.txt Thu Jul 08 19:30:30 2010 -0700 @@ -0,0 +1,59 @@ +2010-07-08 Asa Ayers <Asa.Ayers@Gmail.com> + +- Added a (hopefully) more readable changelog. +- I have removed the ability to show debug messages in the chat window and have replaced it with a new debug frame. /ia debug will show all of the debug messages and everything that IA has printed. +- Fix a small bug so that if you sell something for your exact cost you don't get a message that says you made a profit of 0c. + +2010-07-06 Asa Ayers <Asa.Ayers@Gmail.com> + +- Changed QA to be an option part of /ia queue. If QA is there, IA will queue enough of an item to be created to have 1.25x QA auctino count x QA stack size (rounded up) items. If it is not there, it will create 1 on every profitable item. This commit also adds support for Auctioneer. + +2010-07-04 Asa Ayers <Asa.Ayers@Gmail.com> + +- Added options for the crafting threshold and auction threshold. I also fixed the queue to use the item cost to determine if there is enough profit instead of the auction (QA) threshold which already has profit built in. +- Expanded the queue system to calculate what the new QA threshold would be and to consider buying items from vendors. It also sets a threshold so that items with less than 5g profit will not be crafted. I will turn this into an option later. + +2010-07-03 Asa Ayers <Asa.Ayers@Gmail.com> + +- Added the missing QuickAuctions module. I've also added integration with Skillet and LilSparkysWorkshop. IA and queue any item set up in QuickAuctions where the reagent cost is less than the current price of the item. This is based on KevTool Queue. +- Changed tooltip to be less confusing on the price per item. +- Cleaned up the messages. You can turn the notifications of price changes off and those messages will only show gold or silver if they are more than 0. I have also removed the dependency on AceConsole because it doesn't allow changing the color of the addon name when I print messages. +- Merged utils into ItemAuditor. +- updated the toc and .pkgmeta info + +2010-07-02 Asa Ayers <Asa.Ayers@Gmail.com> +- OPTIONS! QuickAuctions is now an optional dependency. I have also added some configuration options for it. If you have QA but don't want IA to update your thresholds you can shut off the integration. I have also added other options so you can select your faction or the neutral AH and it will update the tooltip. + +2010-06-30 Asa Ayers <Asa.Ayers@Gmail.com> + +- Removed dependency on DevTools, completed chaning over the database to use links instead of names, Added integration with my version of QuickAuctions3 (I need to make this optional soon) +- Fixed the ability to toggle debug + +2010-06-25 Asa Ayers <Asa.Ayers@Gmail.com> + +- Updated version and added a dependency on my modified API for QuickAuctions. Next I need to make that dependency optional +- Changed the way things are stored so that items known only by name, usually from AH mail, will be stored by their name, but will get converted if the link is discovered through a tooltip. This version is funcioning again + +2010-06-23 Asa Ayers <Asa.Ayers@Gmail.com> + +- Working on converting the database to store items as links instead of names. + +2010-06-08 Asa Ayers <Asa.Ayers@Gmail.com> + +- Removed some of the extra debugging that isn't neccessary any more and abtracted out the item ids so they can be cached. + +2010-05-26 Asa Ayers <Asa.Ayers@Gmail.com> + +- Removed dependency on postal. It was only being used to determine the mail type which has been moved into ItemAuditor so I can support CODPayments. Paying for COD items works, but getting the payments back can't reliably associate the payment with an item yet. +- work in progress: I added Prospecting and Disenchanting and AHOutbid mail and I also changed the initialization to quit forcing debug every time ItemAuditor loads and have begun to implement the COD mail scanning. + +2010-05-22 Asa Ayers <Asa.Ayers@Gmail.com> +- Fixed Milling. Disenchating will probably have to be fixed the same way +- Code cleanup. + +2010-05-20 Asa Ayers <Asa.Ayers@Gmail.com> + +- Removing libs from my repo so I can use externals instead +- comment/debugging code cleanup +- First public revision. +- At this point ItemAuditor watches mail for auctions sold or purchased, watches for buy/sell (money and 1 item type change) and conversions/tradeskills. Milling isn't working yet because there is too much time between the first event and the last event. \ No newline at end of file
--- a/Core.lua Tue Jul 06 23:48:54 2010 -0700 +++ b/Core.lua Thu Jul 08 19:30:30 2010 -0700 @@ -24,7 +24,6 @@ }, profile = { messages = { - debug = false, cost_updates = true, queue_skip = false, } @@ -66,6 +65,7 @@ function addon:Print(message) local prefix = "|cFFA3CEFF"..tostring( self ).."|r: " DEFAULT_CHAT_FRAME:AddMessage( prefix .. tostring(message)) + self:Log(message) end function addon:GetCurrentInventory() @@ -243,7 +243,7 @@ end if abs(value) > 0 then - if item.invested <= 0 then + if item.invested < 0 then if self.db.profile.messages.cost_updates then self:Print(format("Updated price of %s from %s to %s. %sYou just made a profit of %s.", itemName, self:FormatMoney(item.invested - value), self:FormatMoney(0), GREEN, self:FormatMoney(abs(item.invested)))) end
--- a/ItemAuditor.toc Tue Jul 06 23:48:54 2010 -0700 +++ b/ItemAuditor.toc Thu Jul 08 19:30:30 2010 -0700 @@ -9,6 +9,7 @@ embeds.xml +ItemAuditor.xml Core.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ItemAuditor.xml Thu Jul 08 19:30:30 2010 -0700 @@ -0,0 +1,102 @@ +<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ + ../UI.xsd"> + + <Frame name="ItemAuditor_DebugFrame" toplevel="true" movable="false" parent="UIParent" enableMouse="true" resizable="false" frameStrata="MEDIUM" hidden="true"> + <Size x="640" y="512"/> + <Anchors> + <Anchor point="CENTER"/> + </Anchors> + <Layers> + <!-- + <Layer level="BACKGROUND"> + <Texture name="$parent_Background" setAllPoints="true"> + <Color r="0" g="0" b="1" a="0.5" /> + </Texture> + </Layer> + --> + <Layer level="ARTWORK"> + <Texture name="$parentTopLeft" file="Interface\HelpFrame\HelpFrame-TopLeft"> + <Size x="256" y="256"/> + <Anchors> + <Anchor point="TOPLEFT"/> + </Anchors> + </Texture> + <Texture name="$parentTopRight" file="Interface\HelpFrame\HelpFrame-TopRight"> + <Size x="128" y="256"/> + <Anchors> + <Anchor point="TOPRIGHT"> + <Offset x="42" y="0"/> + </Anchor> + </Anchors> + </Texture> + <Texture file="Interface\HelpFrame\HelpFrame-Top"> + <Size y="256"/> + <Anchors> + <Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT" /> + <Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="TOPLEFT" /> + </Anchors> + </Texture> + <Texture name="$parentBotLeft" file="Interface\HelpFrame\HelpFrame-BotLeft"> + <Size x="256" y="256"/> + <Anchors> + <Anchor point="BOTTOMLEFT"/> + </Anchors> + </Texture> + <Texture name="$parentBotRight" file="Interface\HelpFrame\HelpFrame-BotRight"> + <Size x="128" y="256"/> + <Anchors> + <Anchor point="BOTTOMRIGHT"> + <Offset x="42" y="0"/> + </Anchor> + </Anchors> + </Texture> + <Texture file="Interface\HelpFrame\HelpFrame-Bottom"> + <Size y="256"/> + <Anchors> + <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeft" relativePoint="BOTTOMRIGHT" /> + <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRight" relativePoint="BOTTOMLEFT" /> + </Anchors> + </Texture> + + <FontString name="$parentTitle" inherits="GameFontNormal" text="ItemAuditor|nPlease send a screenshot with a description of the problem to Asa.Ayers@Gmail.com"> + <Anchors> + <Anchor point="TOP"> + <Offset x="0" y="-15"/> + </Anchor> + </Anchors> + </FontString> + </Layer> + + </Layers> + <Frames> + <ScrollingMessageFrame name="$parentTxt" maxLines="100" fade="false" enableMouse="true"> + <Anchors> + <Anchor point="TOPLEFT" relativePoint="TOPLEFT"> + <Offset x="25" y="-45"/> + </Anchor> + <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> + <Offset x="-15" y="50"/> + </Anchor> + </Anchors> + <FontString font="Interface\AddOns\WowLua\fonts\VeraMono.ttf" justifyH="LEFT"> + <FontHeight val="14"/> + </FontString> + </ScrollingMessageFrame> + <Button name="ItemAuditorButton_Close" inherits="UIPanelCloseButton"> + <Anchors> + <Anchor point="TOPRIGHT"> + <Offset x="0" y="-3"/> + </Anchor> + </Anchors> + <Scripts> + <OnClick> + ItemAuditor_DebugFrame:Hide() + </OnClick> + </Scripts> + </Button> + </Frames> + </Frame> + <Scripts> + ItemAuditor_DebugFrame:Hide() + </Scripts> +</Ui> \ No newline at end of file
--- a/Modules/Debug.lua Tue Jul 06 23:48:54 2010 -0700 +++ b/Modules/Debug.lua Thu Jul 08 19:30:30 2010 -0700 @@ -5,9 +5,12 @@ function addon:Debug(msg) - if self.db.profile.messages.debug then - self:Print(msg) - end + self:Log(msg, " |cffffff00DEBUG") +end + +function addon:Log(message, prefix) + prefix = prefix or "" + ItemAuditor_DebugFrameTxt:AddMessage(format("%d%s|r: %s", time(), prefix, tostring(message))) end function addon:GetDebug(info)
--- a/Modules/Options.lua Tue Jul 06 23:48:54 2010 -0700 +++ b/Modules/Options.lua Thu Jul 08 19:30:30 2010 -0700 @@ -59,14 +59,6 @@ disabled = 'IsQADisabled', order = 1, }, - dbg = { - type = "toggle", - name = "Debug", - desc = "Toggles debug messages in chat", - get = "GetDebug", - set = "SetDebug", - order = 100, - }, }, }, @@ -150,8 +142,13 @@ func = "Queue", guiHidden = true, }, - - + debug = { + type = "execute", + name = "debug", + desc = "Shows the debug frame", + func = function() ItemAuditor_DebugFrame:Show() end, + guiHidden = true, + } }, }