vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 <!--
2 AutoProfit
3 Version: 2.55
4 Notes: Check out www.gameguidesonline.com for the latest version.
5 To learn how I used the 3D model read this: (http://www.gameguidesonline.com/guides/articles/ggoarticleoctober05_02.asp)
6 -->
7  
8 <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/
9 C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
10  
11 <Script file="AutoProfit.lua"/>
12  
13 <Frame name="AutoProfit" parent="UIParent" hidden="true">
14 <Frames>
15 <!-- <Button name="AutosellButton" parent="MerchantBuyBackItem" inherits="UIPanelButtonTemplate" text="Sell Junk"> -->
16  
17 <PlayerModel name="TreasureModel" parent="MerchantBuyBackItem">
18 <Size>
19 <AbsDimension x="32" y="32"/>
20 </Size>
21 <Anchors>
22 <Anchor point="TOPRIGHT" relativeTo="MerchantFrame">
23 <Offset>
24 <AbsDimension x="-40" y="-38"/>
25 </Offset>
26 </Anchor>
27 </Anchors>
28 <Scripts>
29 <OnLoad>
30 TreasureModel:SetModel("World/Generic/PassiveDoodads/TreasurePiles/GoldPileLarge01.m2");
31 TreasureModel:SetScale(1);
32 TreasureModel:SetPosition(-1, -.5, 0);
33 </OnLoad>
34 <OnUpdate>
35 AutoProfit_RotateModel(arg1);
36 </OnUpdate>
37 <OnShow>
38 TreasureModel:SetModel("World/Generic/PassiveDoodads/TreasurePiles/GoldPileLarge01.m2");
39 TreasureModel:SetScale(1);
40 TreasureModel:SetPosition(-1, -.5, 0);
41 rotation = 0;
42 </OnShow>
43  
44 </Scripts>
45  
46 </PlayerModel>
47  
48  
49 <Button name="AutosellButton" parent="MerchantBuyBackItem">
50 <Size>
51 <AbsDimension x="32" y="32"/>
52 </Size>
53 <Anchors>
54 <Anchor point="TOPRIGHT" relativeTo="MerchantFrame">
55 <Offset>
56 <AbsDimension x="-40" y="-38"/>
57 </Offset>
58 </Anchor>
59 </Anchors>
60 <Scripts>
61 <OnEnter>
62 rotrate = .6;
63 GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
64 GameTooltip:SetText("Sell Junk Items");
65 AutoProfit_Calculate();
66 if (totalProfit > 0) then
67 SetTooltipMoney(GameTooltip, totalProfit);
68 else
69 GameTooltip:AddLine("You have no junk items in your inventory.", 1.0, 1.0, 1.0, 1);
70 rotrate = 0;
71 end
72  
73 GameTooltip:Show();
74 </OnEnter>
75 <OnLeave>
76 GameTooltip:Hide();
77 totalProfit = 0;
78 rotrate = 0;
79 </OnLeave>
80 <OnClick>
81 if (totalProfit > 0) then GameTooltip:Hide(); end
82 rotrate = 0;
83 SellJunk();
84 </OnClick>
85 <OnLoad>
86 AutoProfit_OnLoad();
87 </OnLoad>
88 </Scripts>
89 <NormalTexture file="Interface\Buttons\UI-Quickslot2">
90 <Size>
91 <AbsDimension x="64" y="64"/>
92 </Size>
93 <Anchors>
94 <Anchor point="CENTER">
95 <Offset>
96 <AbsDimension x="0" y="0"/>
97 </Offset>
98 </Anchor>
99 </Anchors>
100 </NormalTexture>
101 <PushedTexture file="Interface\Buttons\UI-Quickslot-Depress">
102 <Size>
103 <AbsDimension x="40" y="40"/>
104 </Size>
105 <Anchors>
106 <Anchor point="CENTER">
107 <Offset>
108 <AbsDimension x="0" y="0"/>
109 </Offset>
110 </Anchor>
111 </Anchors>
112 </PushedTexture>
113 <HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD">
114 <Size>
115 <AbsDimension x="34" y="34"/>
116 </Size>
117 <Anchors>
118 <Anchor point="CENTER">
119 <Offset>
120 <AbsDimension x="0" y="0"/>
121 </Offset>
122 </Anchor>
123 </Anchors>
124 </HighlightTexture>
125 </Button>
126  
127  
128 </Frames>
129 </Frame>
130  
131 <GameTooltip name="AutoProfit_Tooltip" inherits="GameTooltipTemplate" hidden="true">
132 <Scripts>
133 <OnLoad>
134 this:SetScript("OnTooltipAddMoney", AutoProfit_AddCoin);
135 </OnLoad>
136 </Scripts>
137 </GameTooltip>
138 </Ui>