annotate ItemAuditor.xml @ 121:f7efbd879062

Update GetItemCost to return the total invested even if you have none of that item left. If you sell all of an item but are waiting for the mail to arrive, you can still see how much you have invested even though you don't actually own any more of that item.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 02 Sep 2010 21:40:08 -0700
parents 60ab9a4d2de1
children
rev   line source
Asa@22 1 <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/
Asa@22 2 ../UI.xsd">
Asa@22 3
Asa@43 4 <Frame name="ItemAuditor_DebugFrame" toplevel="true" movable="true" parent="UIParent" enableMouse="true" resizable="false" frameStrata="LOW" hidden="true">
Asa@22 5 <Size x="640" y="512"/>
Asa@22 6 <Anchors>
Asa@22 7 <Anchor point="CENTER"/>
Asa@22 8 </Anchors>
Asa@22 9 <Layers>
Asa@22 10 <!--
Asa@22 11 <Layer level="BACKGROUND">
Asa@22 12 <Texture name="$parent_Background" setAllPoints="true">
Asa@22 13 <Color r="0" g="0" b="1" a="0.5" />
Asa@22 14 </Texture>
Asa@22 15 </Layer>
Asa@22 16 -->
Asa@22 17 <Layer level="ARTWORK">
Asa@22 18 <Texture name="$parentTopLeft" file="Interface\HelpFrame\HelpFrame-TopLeft">
Asa@22 19 <Size x="256" y="256"/>
Asa@22 20 <Anchors>
Asa@22 21 <Anchor point="TOPLEFT"/>
Asa@22 22 </Anchors>
Asa@22 23 </Texture>
Asa@22 24 <Texture name="$parentTopRight" file="Interface\HelpFrame\HelpFrame-TopRight">
Asa@22 25 <Size x="128" y="256"/>
Asa@22 26 <Anchors>
Asa@22 27 <Anchor point="TOPRIGHT">
Asa@22 28 <Offset x="42" y="0"/>
Asa@22 29 </Anchor>
Asa@22 30 </Anchors>
Asa@22 31 </Texture>
Asa@22 32 <Texture file="Interface\HelpFrame\HelpFrame-Top">
Asa@22 33 <Size y="256"/>
Asa@22 34 <Anchors>
Asa@22 35 <Anchor point="TOPLEFT" relativeTo="$parentTopLeft" relativePoint="TOPRIGHT" />
Asa@22 36 <Anchor point="TOPRIGHT" relativeTo="$parentTopRight" relativePoint="TOPLEFT" />
Asa@22 37 </Anchors>
Asa@22 38 </Texture>
Asa@22 39 <Texture name="$parentBotLeft" file="Interface\HelpFrame\HelpFrame-BotLeft">
Asa@22 40 <Size x="256" y="256"/>
Asa@22 41 <Anchors>
Asa@22 42 <Anchor point="BOTTOMLEFT"/>
Asa@22 43 </Anchors>
Asa@22 44 </Texture>
Asa@22 45 <Texture name="$parentBotRight" file="Interface\HelpFrame\HelpFrame-BotRight">
Asa@22 46 <Size x="128" y="256"/>
Asa@22 47 <Anchors>
Asa@22 48 <Anchor point="BOTTOMRIGHT">
Asa@22 49 <Offset x="42" y="0"/>
Asa@22 50 </Anchor>
Asa@22 51 </Anchors>
Asa@22 52 </Texture>
Asa@22 53 <Texture file="Interface\HelpFrame\HelpFrame-Bottom">
Asa@22 54 <Size y="256"/>
Asa@22 55 <Anchors>
Asa@22 56 <Anchor point="BOTTOMLEFT" relativeTo="$parentBotLeft" relativePoint="BOTTOMRIGHT" />
Asa@22 57 <Anchor point="BOTTOMRIGHT" relativeTo="$parentBotRight" relativePoint="BOTTOMLEFT" />
Asa@22 58 </Anchors>
Asa@22 59 </Texture>
Asa@22 60
Asa@22 61 <FontString name="$parentTitle" inherits="GameFontNormal" text="ItemAuditor|nPlease send a screenshot with a description of the problem to Asa.Ayers@Gmail.com">
Asa@22 62 <Anchors>
Asa@22 63 <Anchor point="TOP">
Asa@22 64 <Offset x="0" y="-15"/>
Asa@22 65 </Anchor>
Asa@22 66 </Anchors>
Asa@22 67 </FontString>
Asa@22 68 </Layer>
Asa@22 69
Asa@22 70 </Layers>
Asa@22 71 <Frames>
Asa@23 72 <ScrollingMessageFrame name="$parentTxt" maxLines="999" fade="false" enableMouse="true">
Asa@22 73 <Anchors>
Asa@22 74 <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
Asa@22 75 <Offset x="25" y="-45"/>
Asa@22 76 </Anchor>
Asa@22 77 <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT">
Asa@22 78 <Offset x="-15" y="50"/>
Asa@22 79 </Anchor>
Asa@22 80 </Anchors>
Asa@22 81 <FontString font="Interface\AddOns\WowLua\fonts\VeraMono.ttf" justifyH="LEFT">
Asa@22 82 <FontHeight val="14"/>
Asa@22 83 </FontString>
Asa@23 84 <Scripts>
Asa@23 85 <OnMouseWheel>
Asa@23 86 local direction;
Asa@23 87 if delta > 0 then
Asa@23 88 direction = "up";
Asa@23 89 self:ScrollUp()
Asa@23 90 else
Asa@23 91 direction = "down";
Asa@23 92 self:ScrollDown()
Asa@23 93 end
Asa@23 94
Asa@23 95 -- WowLua:ScrollingMessageFrameScroll(self, direction, type);
Asa@23 96 </OnMouseWheel>
Asa@23 97
Asa@23 98 </Scripts>
Asa@22 99 </ScrollingMessageFrame>
Asa@22 100 <Button name="ItemAuditorButton_Close" inherits="UIPanelCloseButton">
Asa@22 101 <Anchors>
Asa@22 102 <Anchor point="TOPRIGHT">
Asa@22 103 <Offset x="0" y="-3"/>
Asa@22 104 </Anchor>
Asa@22 105 </Anchors>
Asa@22 106 <Scripts>
Asa@22 107 <OnClick>
Asa@22 108 ItemAuditor_DebugFrame:Hide()
Asa@22 109 </OnClick>
Asa@22 110 </Scripts>
Asa@22 111 </Button>
Asa@23 112 <Button name="$parentDragHeader">
Asa@23 113 <Size y="60"/>
Asa@23 114 <Anchors>
Asa@23 115 <Anchor point="TOPLEFT">
Asa@23 116 <Offset x="0" y="-13"/>
Asa@23 117 </Anchor>
Asa@23 118 <Anchor point="TOPRIGHT">
Asa@23 119 <Offset x="0" y="0"/>
Asa@23 120 </Anchor>
Asa@23 121 </Anchors>
Asa@23 122 <Layer level="BACKGROUND">
Asa@23 123 <Texture name="$parent_Background" setAllPoints="true">
Asa@23 124 <Color r="0" g="0" b="1" a="0.5" />
Asa@23 125 </Texture>
Asa@23 126 </Layer>
Asa@23 127 <Scripts>
Asa@23 128 <OnMouseDown>
Asa@23 129 local parent = self:GetParent()
Asa@23 130 if parent:IsMovable() then
Asa@23 131 parent:StartMoving()
Asa@23 132 end
Asa@23 133 </OnMouseDown>
Asa@23 134 <OnMouseUp>
Asa@23 135 local parent = self:GetParent()
Asa@23 136 parent:StopMovingOrSizing()
Asa@23 137 </OnMouseUp>
Asa@23 138 </Scripts>
Asa@23 139 </Button>
Asa@22 140 </Frames>
Asa@23 141 <Scripts>
Asa@23 142
Asa@23 143 </Scripts>
Asa@22 144 </Frame>
Asa@22 145 <Scripts>
Asa@22 146 ItemAuditor_DebugFrame:Hide()
Asa@22 147 </Scripts>
Asa@22 148 </Ui>