<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/ ..\..\FrameXML\UI.xsd"> <!-- $Revision: 194 $ --> <!-- templates --> <Frame name="CauldronShoppingListRequestorTemplate" virtual="true"> <Size x="240" y="12" /> <Layers> <Layer level="OVERLAY"> <FontString name="$parentName" inherits="GameFontNormal" text="(name)" justifyH="LEFT" justifyV="CENTER"> <Size x="240" y="12"/> <Anchors> <Anchor point="TOPLEFT"> <Offset x="0" y="0"/> </Anchor> </Anchors> </FontString> </Layer> </Layers> </Frame> <Frame name="CauldronShoppingListItemTemplate" virtual="true"> <Size x="240" y="12" /> <Layers> <Layer level="OVERLAY"> <FontString name="$parentItem" inherits="GameFontNormal" text="(item)" justifyH="LEFT" justifyV="CENTER"> <Size x="225" y="12"/> <Anchors> <Anchor point="TOPLEFT"> <Offset x="10" y="0"/> </Anchor> </Anchors> <Color r="1.0" g="1.0" b="1.0" /> </FontString> </Layer> </Layers> <Frames> <!-- <Frame name="$parentItemTooltipFrame" enableMouse="true"> <Size x="200" y="12"/> <Anchors> <Anchor point="TOPLEFT"> <Offset x="10" y="0"/> </Anchor> </Anchors> <Scripts> <OnClick> if self.itemLink then HandleModifiedItemClick(self.itemLink); end </OnClick> <OnEnter> if self.itemLink then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetHyperlink(self.itemLink); CursorUpdate(self); end </OnEnter> <OnLeave> GameTooltip:Hide(); ResetCursor(); </OnLeave> <OnUpdate> if self.itemLink and GameTooltip:IsOwned(self) then GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:SetHyperlink(self.itemLink); CursorUpdate(self); end CursorOnUpdate(self); </OnUpdate> </Scripts> </Frame> --> <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> self:SetScale(0.6); </OnLoad> <OnEnter> GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:ClearLines(); GameTooltip:AddLine(Cauldron:LocaleString("Remove this item from the shopping list")); GameTooltip:Show(); CursorUpdate(self); </OnEnter> <OnLeave> GameTooltip:Hide(); ResetCursor(); </OnLeave> <OnClick> Cauldron:RemoveShoppingListItem(self:GetParent().requestor, self:GetParent().itemName); Cauldron:UpdateShoppingList(); </OnClick> </Scripts> </Button> </Frames> </Frame> <!-- main window --> <Frame name="CauldronShoppingListFrame" toplevel="true" frameStrata="LOW" parent="UIParent" movable="true" resizable="true" enableMouse="true" hidden="true"> <Size x="250" y="300" /> <ResizeBounds> <minResize> <AbsDimension x="75" y="75"/> </minResize> <maxResize> <AbsDimension x="400" y="900"/> </maxResize> </ResizeBounds> <Anchors> <Anchor point="TOPRIGHT" relativeTo="UIParent" relativePoint="TOPRIGHT"> <Offset> <AbsDimension x="-50" y="-200" /> </Offset> </Anchor> </Anchors> <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="false"> <BackgroundInsets> <AbsInset left="0" right="0" top="0" bottom="0" /> </BackgroundInsets> <EdgeSize> <AbsValue val="2" /> </EdgeSize> </Backdrop> <!-- Window Title --> <Layers> <Layer level="BORDER"> <FontString name="$parentTitleText" inherits="GameFontNormal" text="Shopping List"> <Anchors> <Anchor point="TOP" relativeTo="CauldronShoppingListFrame" relativePoint="TOP"> <Offset> <AbsDimension x="0" y="-4"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <!-- Close button --> <Button name="$parentCloseButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> self:SetScale(0.75); </OnLoad> <OnClick> Cauldron:HideShoppingList(); </OnClick> </Scripts> </Button> <ScrollFrame name="$parentItemsScrollFrame"> <Size x="240" y="280" /> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="5" y="-20" /> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5" y="5" /> </Offset> </Anchor> </Anchors> <ScrollChild> <Frame name="$parentScrollChild"> <Size x="240" y="280" /> <Anchors> <Anchor point="TOPLEFT"> <Offset x="0" y="0"/> </Anchor> </Anchors> </Frame> </ScrollChild> </ScrollFrame> <Button name="$parentResizeCorner"> <Size x="16" y="16"/> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset x="-3" y="3"/> </Anchor> </Anchors> <Scripts> <OnMouseDown> if button == "LeftButton" then self:GetParent():StartSizing(); self:GetParent().isResizing = true; end </OnMouseDown> <OnLoad> self:GetNormalTexture():SetVertexColor(0.6, 0.6, 0.6); </OnLoad> <OnMouseUp> if button == "LeftButton" then self:GetParent():StopMovingOrSizing(); self:GetParent().isResizing = false; Cauldron:UpdateShoppingList(); end </OnMouseUp> <OnHide> self:GetParent():StopMovingOrSizing() </OnHide> </Scripts> <NormalTexture file="Interface\AddOns\Cauldron\Artwork\resize"/> </Button> <CheckButton name="$parentAutoBuyButton" hidden="false" inherits="UICheckButtonTemplate" text=""> <Size x="18" y="18" /> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset x="0" y="0"/> </Anchor> </Anchors> <Layers> <Layer level="OVERLAY"> <FontString name="$parentText" inherits="GameFontNormal" text=""> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="2" y="0"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnLoad> getglobal(self:GetName().."Text"):SetText(Cauldron:LocaleString("Auto-buy?")); </OnLoad> <OnEnter> GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); GameTooltip:ClearLines(); GameTooltip:AddLine(Cauldron:LocaleString("If this option is checked, then any item that is in the list will be automatically purchased when a vendor window is opened, if that vendor has the items."), 1, 1, 1, 1); GameTooltip:Show(); CursorUpdate(self); </OnEnter> <OnLeave> GameTooltip:Hide(); ResetCursor(); </OnLeave> <OnClick> PlaySound("igMainMenuOptionCheckBoxOn"); Cauldron:AutoBuyShoppingList_OnClick(self); </OnClick> </Scripts> </CheckButton> </Frames> <Scripts> <OnLoad> self:SetBackdropColor(.05,.05,.05,.8); self:SetBackdropBorderColor(.4,.4,.4,1); -- tinsert(UISpecialFrames, self:GetName()); </OnLoad> <OnShow> PlaySound("igCharacterInfoOpen"); </OnShow> <OnHide> PlaySound("igCharacterInfoClose"); </OnHide> <OnMouseWheel> return; </OnMouseWheel> <OnMouseDown> if button == "LeftButton" then self:StartMoving(); self.isResizing = true; end </OnMouseDown> <OnMouseUp> if button == "LeftButton" then self:StopMovingOrSizing(); self.isResizing = false; Cauldron:UpdateShoppingList(); -- TradeskillInfoUI:Frame_Update() -- CauldronShopping:SaveShoppingListFramePosition(); end </OnMouseUp> <OnSizeChanged> -- TradeskillInfoUI:Frame_Update() </OnSizeChanged> </Scripts> </Frame> </Ui>