⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myinventory.xml

📁 时间太紧了
💻 XML
📖 第 1 页 / 共 2 页
字号:
<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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="localization.lua"/> 
	<Script file="MyInventory.lua"/> 
	<Button name="MyInventoryFrameItemButtonTemplate" inherits="ItemButtonTemplate" hidden="true" virtual="true">
		<Frames>
			<Model name="$parentCooldown" inherits="CooldownFrameTemplate"/>
		</Frames>
		<Scripts>
			<OnClick>
				MyInventoryFrameItemButton_OnClick(arg1);
			</OnClick>
			<OnLoad>
				MyInventoryFrameItemButton_OnLoad();
			</OnLoad>
			<OnEnter>
				MyInventoryFrameItemButton_OnEnter();
			</OnEnter>
			<OnLeave>
				MyInventoryFrameItemButton_OnLeave();
			</OnLeave>
			<OnHide>
				if ( this.hasStackSplit and (this.hasStackSplit == 1) ) then
					StackSplitFrame:Hide();
				end
			</OnHide>
			<OnDragStart>
				MyInventoryFrameItemButton_OnClick("LeftButton", 1);
			</OnDragStart>
			<OnReceiveDrag>
				MyInventoryFrameItemButton_OnClick("LeftButton", 1);
			</OnReceiveDrag>
			<OnUpdate>
				MyInventoryFrameItemButton_OnUpdate(arg1);
			</OnUpdate>
	</Scripts>
	</Button>
	<CheckButton name="MyInventoryBackpackButtonTemplate" inherits="ItemButtonTemplate" id="0" hidden="false" virtual="true">
		<CheckedTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
		<Size><AbsDimension x="37" y="37"/></Size>
		<Scripts>
			<OnLoad>
				local button = getglobal(this:GetName().."IconTexture");
				button:SetTexture("Interface\\Buttons\\Button-Backpack-Up");
				--MainMenuBarBackpackButton:Hide();
			</OnLoad>
			<OnClick>
				MyInventory_Backpack_OnClick();
			</OnClick>
			<OnReceiveDrag>
				PutItemInBackpack();
			</OnReceiveDrag>
			<OnEnter>
				MyInventory_Backpack_OnEnter();
			</OnEnter>
			<OnLeave>
				MyInventory_Backpack_OnLeave();
			</OnLeave>
		</Scripts>
	</CheckButton>
	<CheckButton name="MyInventoryBagButtonTemplate" inherits="BagSlotButtonTemplate" hidden="false" virtual="true">
		<CheckedTexture alphaMode="ADD" file="Interface\Buttons\ButtonHilight-Square"/>
		<HighlightTexture alphaMode="ADD" file="Interface\Buttons\CheckButtonHilight"/>
		<Scripts>
			<OnEnter>
				MyInventory_BagButton_OnEnter();
			</OnEnter>
			<OnLeave>
				MyInventory_BagButton_OnLeave();
			</OnLeave>
			<OnLoad>
				this.isBag = 1;
				local getBag = getglobal("Character"..strsub(this:GetName(),10));
				this:SetID(getBag:GetID());
				PaperDollItemSlotButton_OnLoad();
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnClick>
				MyInventory_BagButton_OnClick();
			</OnClick>
			<OnDragStart>
				MyInventory_BagButton_OnDragStart();
			</OnDragStart>
			<OnReceiveDrag>
				MyInventory_BagButton_OnReceiveDrag();
			</OnReceiveDrag>
		</Scripts>
	</CheckButton>
	<Button name="MIStealBagSlotTemplate" enableMouse="true" hidden="false" virtual="true">
		<Scripts>
			<OnLoad>
				this:SetAllPoints(this:GetParent():GetName());
				this:GetParent():EnableMouse(0);
				this:SetID(this:GetParent():GetID());
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnEnter>
				if strfind(this:GetName(), "Backpack") then
					MyInventory_Backpack_OnEnter();
				else
					MyInventory_BagButton_OnEnter();
				end
			</OnEnter>
			<OnLeave>
				if strfind(this:GetName(), "Backpack") then
					MyInventory_Backpack_OnLeave();
				else
					MyInventory_BagButton_OnLeave();
				end
			</OnLeave>
			<OnClick>
				if strfind(this:GetName(), "Backpack") then
					MyInventory_Backpack_OnClick(true);
				else
					MyInventory_BagButton_OnClick(true);
				end
			</OnClick>
			<OnDragStart>
				if strfind(this:GetName(), "Backpack") then
				else
					MyInventory_BagButton_OnDragStart();
				end
			</OnDragStart>
			<OnReceiveDrag>
				if strfind(this:GetName(), "Backpack") then
					PutItemInBackpack();
				else
					MyInventory_BagButton_OnReceiveDrag();
				end
			</OnReceiveDrag>
		</Scripts>
	</Button>
	<Button name="MIStealBackpackButton" parent="MainMenuBarBackpackButton" inherits="MIStealBagSlotTemplate"/>
	<Button name="MIStealItBag0Slot" parent="CharacterBag0Slot" inherits="MIStealBagSlotTemplate"/>
	<Button name="MIStealItBag1Slot" parent="CharacterBag1Slot" inherits="MIStealBagSlotTemplate"/>
	<Button name="MIStealItBag2Slot" parent="CharacterBag2Slot" inherits="MIStealBagSlotTemplate"/>
	<Button name="MIStealItBag3Slot" parent="CharacterBag3Slot" inherits="MIStealBagSlotTemplate"/>
	<Frame name="MyInventoryAnchorFrame" parent="UIParent" hidden="false" movable="true">
		<Size><AbsDimension x="1" y="1"/></Size>
		<Anchors>
			<Anchor point="BOTTOMRIGHT" >
				<Offset><AbsDimension x="0" y="50"/></Offset>
			</Anchor>
		</Anchors>
	</Frame>
	<Frame name="MyInventoryFrame" parent="UIParent" toplevel="true" frameStrata="MEDIUM" movable="true" resizable="true" enableMouse="true" hidden="true">
		<Anchors>
			<Anchor point="BOTTOMRIGHT" relativeto="MyInventoryAnchorFrame" relativePoint="BOTTOMRIGHT" >
				<Offset><AbsDimension x="0" y="0"/></Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets><AbsInset left="5" right="5" top="5" bottom="5"/></BackgroundInsets>
			<TileSize><AbsValue val="16"/></TileSize>
			<EdgeSize><AbsValue val="16"/></EdgeSize>
		</Backdrop>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentPortrait" hidden="true" file="Interface\AddOns\AllInOneInventory\Skin\Backpack" > <!--   -->
					<Size><AbsDimension x="58" y="58"/></Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset><AbsDimension x="-7" y="2"/></Offset>
						</Anchor>
					</Anchors>
				</Texture>
	<!-- -LITE{ -->
				<Texture name="$parentTextureTopLeft" file="Interface\AddOns\AllInOneInventory\Skin\TopLeft" hidden="true">
					<Size><AbsDimension x="128" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset><AbsDimension x="-67" y="60"/></Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureTopRight" file="Interface\AddOns\AllInOneInventory\Skin\TopRight" hidden="true">
					<Size><AbsDimension x="64" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPRIGHT"> 
							<Offset><AbsDimension x="36" y="60"/></Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureTopCenter" file="Interface\AddOns\AllInOneInventory\Skin\TopCenter" hidden="true">
					<Size><AbsDimension x="128" y="128"/></Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<!-- }-LITE -->
				<!-- -LITE{ -->
				<Texture name="$parentTextureBottomLeft" file="Interface\AddOns\AllInOneInventory\Skin\BottomLeft" hidden="true">
					<Size><AbsDimension x="128" y="128"/></Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset><AbsDimension x="-67" y="-60"/></Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureBottomRight" file="Interface\AddOns\AllInOneInventory\Skin\BottomRight" hidden="true">
					<Size><AbsDimension x="64" y="128"/></Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"> 
							<Offset><AbsDimension x="36" y="-60"/></Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureBottomCenter" file="Interface\AddOns\AllInOneInventory\Skin\BottomCenter" hidden="true">
					<Size><AbsDimension x="128" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<!-- }-LITE -->
				<!-- -LITE{ -->
				<Texture name="$parentTextureLeft" file="Interface\AddOns\AllInOneInventory\Skin\Left" hidden="true">
					<Size><AbsDimension x="64" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopLeft" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomLeft" relativePoint="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureRight" file="Interface\AddOns\AllInOneInventory\Skin\Right" hidden="true">
					<Size><AbsDimension x="64" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTextureTopRight" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomRight" relativePoint="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture name="$parentTextureCenter" file="Interface\AddOns\AllInOneInventory\Skin\Center" hidden="true">
					<Size><AbsDimension x="128" y="128"/></Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMLEFT"/>
						<Anchor point="TOPRIGHT" relativeTo="$parentTextureTopCenter" relativePoint="BOTTOMRIGHT"/>
						<Anchor point="BOTTOMLEFT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentTextureBottomCenter" relativePoint="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<!-- }-LITE -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -