<Ui>
	<Frame name="ItemSelector" hidden="false" movable="false" enableMouse="false" clampedToScreen="true">
		<Size>
			<AbsDimension x="548" y="72"/>
		</Size>
		<Anchors>
			<Anchor point="BOTTOM"/>
		</Anchors>
		<Frames>
		    <Frame name="$parentSelector">
	            <Size>
                    <AbsDimension x="72" y="72"/>
                </Size>
	            <Anchors>
		            <Anchor point="CENTER" relativeTo="$parentSlot1"/>
	            </Anchors>
	            <Backdrop>
	                <EdgeColor r="1" g="1" b="1"/>
	                <EdgeSize>
	                    <AbsValue x="4"/>
	                </EdgeSize>
	            </Backdrop>
		    </Frame>
		</Frames>
		<Scripts>
		    <OnLoad>
		        this:RegisterEvent("ITEM_SLOT_CHANGED");
		        this:RegisterEvent("ITEM_SLOT_SELECTED");
		        this.selected = 0;
		    </OnLoad>
		    <OnEvent>
		        if (event == "ITEM_SLOT_CHANGED") then
		            this:SetSlotTexture(arg1, arg2, arg3);
		            
		        elseif (event == "ITEM_SLOT_SELECTED") then
		            this.selected = arg1;
		            this.Selector:SetPoint("CENTER", "ItemSelectorSlot"..(arg1+1));
		        end
		    </OnEvent>
		</Scripts>
		<Layers>
		    <Layer>
		        <Texture name="$parentSlot1">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT">
			                <Offset>
			                    <AbsDimension x="4" y="0"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot2">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot1" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot3">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot2" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot4">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot3" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot5">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot4" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot6">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot5" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot7">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot6" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		        <Texture name="$parentSlot8">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot7" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		        </Texture>
		    </Layer>
		    <Layer level="BACKGROUND">
		        <Texture name="$parentSlot1Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT">
			                <Offset>
			                    <AbsDimension x="4" y="0"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot2Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot1Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot3Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot2Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot4Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot3Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot5Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot4Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot6Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot5Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot7Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot6Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		        <Texture name="$parentSlot8Bg">
		            <Size>
                        <AbsDimension x="64" y="64"/>
                    </Size>
		            <Anchors>
			            <Anchor point="LEFT" relativeTo="$parentSlot7Bg" relativePoint="RIGHT">
			                <Offset>
			                    <AbsDimension x="4"/>
			                </Offset>
			            </Anchor>
		            </Anchors>
		            <Color a="0.5" r="0" g="0" b="0"/>
		        </Texture>
		    </Layer>
		</Layers>
	</Frame>
</Ui>
