CS fixes
This commit is contained in:
@ -1,53 +1,53 @@
|
|||||||
<Ui xmlns="http://www.blizzard.com/wow/ui/"
|
<Ui xmlns="http://www.blizzard.com/wow/ui/"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML/UI.xsd">
|
xsi:schemaLocation="http://www.blizzard.com/wow/ui/FrameXML/UI.xsd">
|
||||||
<Script file="MyEquipment.lua" />
|
<Script file="MyEquipment.lua" />
|
||||||
|
|
||||||
<!-- Templates -->
|
<!-- Templates -->
|
||||||
<Button name="MyEquipmentItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
|
<Button name="MyEquipmentItemButtonTemplate" inherits="ItemButtonTemplate" virtual="true">
|
||||||
<Frames>
|
<Frames>
|
||||||
<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate"/>
|
<Cooldown name="$parentCooldown" inherits="CooldownFrameTemplate"/>
|
||||||
</Frames>
|
</Frames>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
MyEquipment:MyEquipmentItemSlotButton_OnLoad(self)
|
MyEquipment:MyEquipmentItemSlotButton_OnLoad(self)
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
if ( not IsModifierKeyDown() ) then
|
if (not IsModifierKeyDown()) then
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnClick(self, button)
|
mybags:MyEquipmentItemSlotButton_OnClick(self, button)
|
||||||
end
|
end
|
||||||
</OnClick>
|
</OnClick>
|
||||||
<PostClick>
|
<PostClick>
|
||||||
if ( IsModifierKeyDown() ) then
|
if (IsModifierKeyDown()) then
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnModifiedClick(self, button)
|
mybags:MyEquipmentItemSlotButton_OnModifiedClick(self, button)
|
||||||
end
|
end
|
||||||
</PostClick>
|
</PostClick>
|
||||||
<OnDragStart>
|
<OnDragStart>
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnClick(self, "LeftButton", 1)
|
mybags:MyEquipmentItemSlotButton_OnClick(self, "LeftButton", 1)
|
||||||
</OnDragStart>
|
</OnDragStart>
|
||||||
<OnReceiveDrag>
|
<OnReceiveDrag>
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnClick(self, "LeftButton", 1)
|
mybags:MyEquipmentItemSlotButton_OnClick(self, "LeftButton", 1)
|
||||||
</OnReceiveDrag>
|
</OnReceiveDrag>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnEnter(self)
|
mybags:MyEquipmentItemSlotButton_OnEnter(self)
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
<OnLeave>
|
<OnLeave>
|
||||||
GameTooltip:Hide()
|
GameTooltip:Hide()
|
||||||
</OnLeave>
|
</OnLeave>
|
||||||
<OnUpdate>
|
<OnUpdate>
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnUpdate(self, elapsed);
|
mybags:MyEquipmentItemSlotButton_OnUpdate(self, elapsed);
|
||||||
</OnUpdate>
|
</OnUpdate>
|
||||||
<OnEvent>
|
<OnEvent>
|
||||||
mybags = self:GetParent():GetParent().self
|
mybags = self:GetParent():GetParent().self
|
||||||
mybags:MyEquipmentItemSlotButton_OnEvent(self, event)
|
mybags:MyEquipmentItemSlotButton_OnEvent(self, event)
|
||||||
</OnEvent>
|
</OnEvent>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Frame name="MyEquipmentTemplate" virtual="true">
|
<Frame name="MyEquipmentTemplate" virtual="true">
|
||||||
@ -76,161 +76,161 @@
|
|||||||
<Button name="$parentItem18" inherits="MyEquipmentItemButtonTemplate" id="18"/>
|
<Button name="$parentItem18" inherits="MyEquipmentItemButtonTemplate" id="18"/>
|
||||||
<Button name="$parentItem19" inherits="MyEquipmentItemButtonTemplate" id="19"/>
|
<Button name="$parentItem19" inherits="MyEquipmentItemButtonTemplate" id="19"/>
|
||||||
</Frames>
|
</Frames>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
<Frame name="MyEquipmentFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" hidden="true">
|
<Frame name="MyEquipmentFrameTemplate" virtual="true" movable="true" enableMouse="true" toplevel="true" hidden="true">
|
||||||
<Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
<Backdrop bgFile="Interface\ChatFrame\ChatFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||||
<BackgroundInsets><AbsInset left="5" right="5" top="5" bottom="5"/></BackgroundInsets>
|
<BackgroundInsets><AbsInset left="5" right="5" top="5" bottom="5"/></BackgroundInsets>
|
||||||
<TileSize><AbsValue val="16"/></TileSize>
|
<TileSize><AbsValue val="16"/></TileSize>
|
||||||
<EdgeSize><AbsValue val="16"/></EdgeSize>
|
<EdgeSize><AbsValue val="16"/></EdgeSize>
|
||||||
</Backdrop>
|
</Backdrop>
|
||||||
<Layers>
|
<Layers>
|
||||||
<!-- -LITE{{{ -->
|
<!-- -LITE{{{ -->
|
||||||
<Layer level="BACKGROUND">
|
<Layer level="BACKGROUND">
|
||||||
<Texture name="$parentPortrait" hidden="false" file="Interface\AddOns\MyBags\Skin\Backpack" > <!-- -->
|
<Texture name="$parentPortrait" hidden="false" file="Interface\AddOns\MyBags\Skin\Backpack" > <!-- -->
|
||||||
<Size><AbsDimension x="58" y="58"/></Size>
|
<Size><AbsDimension x="58" y="58"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset><AbsDimension x="-5" y="1"/></Offset>
|
<Offset><AbsDimension x="-5" y="1"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureTopLeft" file="Interface\AddOns\MyBags\Skin\TopLeft" hidden="false">
|
<Texture name="$parentTextureTopLeft" file="Interface\AddOns\MyBags\Skin\TopLeft" hidden="false">
|
||||||
<Size><AbsDimension x="128" y="128"/></Size>
|
<Size><AbsDimension x="128" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset><AbsDimension x="-65" y="58"/></Offset>
|
<Offset><AbsDimension x="-65" y="58"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureTopRight" file="Interface\AddOns\MyBags\Skin\TopRight" hidden="false">
|
<Texture name="$parentTextureTopRight" file="Interface\AddOns\MyBags\Skin\TopRight" hidden="false">
|
||||||
<Size><AbsDimension x="64" y="128"/></Size>
|
<Size><AbsDimension x="64" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPRIGHT">
|
<Anchor point="TOPRIGHT">
|
||||||
<Offset><AbsDimension x="36" y="58"/></Offset>
|
<Offset><AbsDimension x="36" y="58"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureTopCenter" file="Interface\AddOns\MyBags\Skin\TopCenter" hidden="false">
|
<Texture name="$parentTextureTopCenter" file="Interface\AddOns\MyBags\Skin\TopCenter" hidden="false">
|
||||||
<Size><AbsDimension x="128" y="128"/></Size>
|
<Size><AbsDimension x="128" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
|
||||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureBottomLeft" file="Interface\AddOns\MyBags\Skin\BottomLeft" hidden="false">
|
<Texture name="$parentTextureBottomLeft" file="Interface\AddOns\MyBags\Skin\BottomLeft" hidden="false">
|
||||||
<Size><AbsDimension x="128" y="128"/></Size>
|
<Size><AbsDimension x="128" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMLEFT">
|
<Anchor point="BOTTOMLEFT">
|
||||||
<Offset><AbsDimension x="-65" y="-60"/></Offset>
|
<Offset><AbsDimension x="-65" y="-60"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureBottomRight" file="Interface\AddOns\MyBags\Skin\BottomRight" hidden="false">
|
<Texture name="$parentTextureBottomRight" file="Interface\AddOns\MyBags\Skin\BottomRight" hidden="false">
|
||||||
<Size><AbsDimension x="64" y="128"/></Size>
|
<Size><AbsDimension x="64" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMRIGHT">
|
<Anchor point="BOTTOMRIGHT">
|
||||||
<Offset><AbsDimension x="36" y="-60"/></Offset>
|
<Offset><AbsDimension x="36" y="-60"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureBottomCenter" file="Interface\AddOns\MyBags\Skin\BottomCenter" hidden="false">
|
<Texture name="$parentTextureBottomCenter" file="Interface\AddOns\MyBags\Skin\BottomCenter" hidden="false">
|
||||||
<Size><AbsDimension x="128" y="128"/></Size>
|
<Size><AbsDimension x="128" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
|
<Anchor point="TOPLEFT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
|
||||||
<Anchor point="TOPRIGHT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
|
<Anchor point="TOPRIGHT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureLeft" file="Interface\AddOns\MyBags\Skin\Left" hidden="false">
|
<Texture name="$parentTextureLeft" file="Interface\AddOns\MyBags\Skin\Left" hidden="false">
|
||||||
<Size><AbsDimension x="64" y="128"/></Size>
|
<Size><AbsDimension x="64" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
|
<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
|
||||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureRight" file="Interface\AddOns\MyBags\Skin\Right" hidden="false">
|
<Texture name="$parentTextureRight" file="Interface\AddOns\MyBags\Skin\Right" hidden="false">
|
||||||
<Size><AbsDimension x="64" y="128"/></Size>
|
<Size><AbsDimension x="64" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
|
<Anchor point="TOPLEFT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
|
||||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
<Texture name="$parentTextureCenter" file="Interface\AddOns\MyBags\Skin\Center" hidden="false">
|
<Texture name="$parentTextureCenter" file="Interface\AddOns\MyBags\Skin\Center" hidden="false">
|
||||||
<Size><AbsDimension x="128" y="128"/></Size>
|
<Size><AbsDimension x="128" y="128"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMLEFT"/>
|
<Anchor point="TOPLEFT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMLEFT"/>
|
||||||
<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMRIGHT"/>
|
<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMRIGHT"/>
|
||||||
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPLEFT"/>
|
<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPLEFT"/>
|
||||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPRIGHT"/>
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPRIGHT"/>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Texture>
|
</Texture>
|
||||||
</Layer>
|
</Layer>
|
||||||
<!-- }}}-LITE -->
|
<!-- }}}-LITE -->
|
||||||
<Layer level="ARTWORK">
|
<Layer level="ARTWORK">
|
||||||
<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
|
<FontString name="$parentName" inherits="GameFontNormal" justifyH="LEFT">
|
||||||
<Color r="1.0" g="1.0" b="1.0" />
|
<Color r="1.0" g="1.0" b="1.0" />
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="TOPLEFT">
|
<Anchor point="TOPLEFT">
|
||||||
<Offset><AbsDimension x="7" y="-10"/></Offset>
|
<Offset><AbsDimension x="7" y="-10"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</FontString>
|
</FontString>
|
||||||
<FontString name="$parentSlots" inherits="GameFontNormal" justifyH="LEFT">
|
<FontString name="$parentSlots" inherits="GameFontNormal" justifyH="LEFT">
|
||||||
<Color r="1.0" g="1.0" b="1.0" />
|
<Color r="1.0" g="1.0" b="1.0" />
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMLEFT">
|
<Anchor point="BOTTOMLEFT">
|
||||||
<Offset><AbsDimension x="7" y="10"/></Offset>
|
<Offset><AbsDimension x="7" y="10"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</FontString>
|
</FontString>
|
||||||
</Layer>
|
</Layer>
|
||||||
</Layers>
|
</Layers>
|
||||||
<Frames>
|
<Frames>
|
||||||
<Frame name="MyEquipmentSlots" inherits="MyEquipmentTemplate"/>
|
<Frame name="MyEquipmentSlots" inherits="MyEquipmentTemplate"/>
|
||||||
<Frame name="$parentButtons" inherits="MyBagsButtonBarTemplate"/>
|
<Frame name="$parentButtons" inherits="MyBagsButtonBarTemplate"/>
|
||||||
<Frame name="$parentCharSelect" inherits="MyBagsCharSelectTemplate"/>
|
<Frame name="$parentCharSelect" inherits="MyBagsCharSelectTemplate"/>
|
||||||
<Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false">
|
<Frame name="$parentMoneyFrame" inherits="SmallMoneyFrameTemplate" hidden="false">
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
|
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
|
||||||
<Offset><AbsDimension x="0" y="8"/></Offset>
|
<Offset><AbsDimension x="0" y="8"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
</Frame>
|
</Frame>
|
||||||
</Frames>
|
</Frames>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnShow>
|
<OnShow>
|
||||||
PlaySound("igBackPackOpen")
|
PlaySound("igBackPackOpen")
|
||||||
</OnShow>
|
</OnShow>
|
||||||
<OnHide>
|
<OnHide>
|
||||||
PlaySound("igBackPackClose")
|
PlaySound("igBackPackClose")
|
||||||
</OnHide>
|
</OnHide>
|
||||||
<OnMouseDown>
|
<OnMouseDown>
|
||||||
mybags = self.self
|
mybags = self.self
|
||||||
if not mybags.GetOpt("Lock") then
|
if not mybags.GetOpt("Lock") then
|
||||||
self:GetParent():StartMoving()
|
self:GetParent():StartMoving()
|
||||||
end
|
end
|
||||||
</OnMouseDown>
|
</OnMouseDown>
|
||||||
<OnMouseUp>
|
<OnMouseUp>
|
||||||
self:GetParent():StopMovingOrSizing()
|
self:GetParent():StopMovingOrSizing()
|
||||||
</OnMouseUp>
|
</OnMouseUp>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
<!-- Frame -->
|
<!-- Frame -->
|
||||||
<Frame name="MyEquipmentAnchorFrame" hidden="false" movable="true" parent="UIParent">
|
<Frame name="MyEquipmentAnchorFrame" hidden="false" movable="true" parent="UIParent">
|
||||||
<Size><AbsDimension x="10" y="10"/></Size>
|
<Size><AbsDimension x="10" y="10"/></Size>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="BOTTOMRIGHT" >
|
<Anchor point="BOTTOMRIGHT" >
|
||||||
<Offset><AbsDimension x="-5" y="100"/></Offset>
|
<Offset><AbsDimension x="-5" y="100"/></Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
<Frames>
|
<Frames>
|
||||||
<Frame name="MyEquipmentFrame" inherits="MyEquipmentFrameTemplate">
|
<Frame name="MyEquipmentFrame" inherits="MyEquipmentFrameTemplate">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="500" y="500"/>
|
<AbsDimension x="500" y="500"/>
|
||||||
</Size>
|
</Size>
|
||||||
<Anchors><Anchor point="BOTTOMRIGHT"/></Anchors>
|
<Anchors><Anchor point="BOTTOMRIGHT"/></Anchors>
|
||||||
</Frame>
|
</Frame>
|
||||||
</Frames>
|
</Frames>
|
||||||
</Frame>
|
</Frame>
|
||||||
</Ui>
|
</Ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user