<?xml version="1.0" encoding="UTF-8"?>

<MyGUI type="Skin">

    <!-- Horizontal Scrollbar -->

    <Skin name="MW_HScroll" size="90 14">
        <Property key="TrackRangeMargins" value="14 14" />
        <Property key="MinTrackSize" value="14" />
        <Property key="VerticalAlignment" value="false"/>
        <Property key="MoveToClick" value="true"/>

        <!-- Tracker must be last to be on top and receive mouse events -->

        <Child type="Button" skin="MW_Box" offset="18 0 54 14" align="ALIGN_STRETCH" name="Background"/>

        <!-- Arrows -->

        <Child type="Widget" skin="MW_Box" offset="0 0 15 14" align="ALIGN_LEFT ALIGN_VSTRETCH"/>
        <Child type="Button" skin="MW_ArrowLeft" offset="3 2 10 10" align="ALIGN_LEFT ALIGN_VSTRETCH" name="Start"/>

        <Child type="Widget" skin="MW_Box" offset="75 0 15 14" align="ALIGN_RIGHT ALIGN_VSTRETCH"/>
        <Child type="Button" skin="MW_ArrowRight" offset="76 2 10 10" align="ALIGN_RIGHT ALIGN_VSTRETCH" name="End"/>

        <!-- These are only provided to get mouse input, they should have no skin and be transparent -->

        <Child type="Button" skin="MW_ScrollEmptyPart" offset="14 0 24 14" align="ALIGN_TOP ALIGN_HSTRETCH" name="FirstPart"/>
        <Child type="Button" skin="MW_ScrollEmptyPart" offset="52 0 24 14" align="ALIGN_TOP ALIGN_HSTRETCH" name="SecondPart"/>

        <Child type="Button" skin="MW_ScrollTrackH" offset="38 2 30 9" align="ALIGN_LEFT ALIGN_VSTRETCH" name="Track"/>
    </Skin>

    <Skin name="MW_ScrollTrackH" size="16 16" texture="textures\tx_menubook_bookmark.dds">
        <BasisSkin type="TileRect" offset="6 0 3 16" align="Stretch">
            <State name="normal" offset="70 22 16 16">
                <Property key="TileSize" value="16 16"/>
                <Property key="TileH" value="true"/>
                <Property key="TileV" value="true"/>
            </State>
        </BasisSkin>
    </Skin>

    <!-- Vertical Scrollbar -->

    <Skin name="MW_VScroll" size="14 90">
        <Property key="TrackRangeMargins" value="14 14" />
        <Property key="MinTrackSize" value="14" />
        <Property key="MoveToClick" value="true"/>

        <!-- Background widget trick that must go first to be placed behind Track and FirstPart/SecondPart widgets, provides the bar texture -->

        <Child type="Button" skin="MW_Box" offset="0 18 14 55" align="ALIGN_STRETCH" name="Background"/>

        <!-- Arrows -->

        <Child type="Widget" skin="MW_Box" offset="0 0 14 15" align="ALIGN_TOP ALIGN_HSTRETCH"/>
        <Child type="Button" skin="MW_ArrowUp" offset="2 3 10 10" align="ALIGN_TOP ALIGN_HSTRETCH" name="Start"/>

        <Child type="Widget" skin="MW_Box" offset="0 76 14 15" align="ALIGN_BOTTOM ALIGN_HSTRETCH"/>
        <Child type="Button" skin="MW_ArrowDown" offset="2 77 10 10" align="ALIGN_BOTTOM ALIGN_HSTRETCH" name="End"/>

        <!-- These are only provided to get mouse input, they should have no skin and be transparent -->

        <Child type="Button" skin="MW_ScrollEmptyPart" offset="0 14 24 14" align="ALIGN_LEFT ALIGN_VSTRETCH" name="FirstPart"/>
        <Child type="Button" skin="MW_ScrollEmptyPart" offset="0 52 24 14" align="ALIGN_LEFT ALIGN_VSTRETCH" name="SecondPart"/>

        <!-- Tracker must be last to be on top and receive mouse events -->

        <Child type="Button" skin="MW_ScrollTrackV" offset="2 40 9 30" align="ALIGN_TOP ALIGN_HSTRETCH" name="Track"/>

    </Skin>

    <Skin name="MW_ScrollTrackV" size="16 16" texture="textures\tx_menubook_bookmark.dds">
        <BasisSkin type="TileRect" offset="0 7 16 3" align="Stretch">
            <State name="normal" offset="68 19 16 16">
                <Property key="TileSize" value="16 16"/>
                <Property key="TileH" value="true"/>
                <Property key="TileV" value="true"/>
            </State>
        </BasisSkin>
    </Skin>

    <!-- Empty space in scrollbar -->

    <Skin name="MW_ScrollEmptyPart" size="16 16" >
    </Skin>

    <!-- Header text -->

    <Skin name="HeaderText" size="16 16">
        <Property key="FontName" value="Default"/>
        <Property key="TextAlign" value="ALIGN_CENTER" />
        <Property key="TextColour" value="0.82 0.74 0.58" />

        <BasisSkin type="SimpleText" offset="0 0 16 16"  align="ALIGN_STRETCH"/>
    </Skin>

    <!-- list and multilist skins -->

    <Skin name="MW_ListLine" size="5 5">
        <Property key="FontName" value="Default" />
        <Property key="TextAlign" value="ALIGN_LEFT ALIGN_VCENTER" />

        <BasisSkin type="SimpleText" offset="2 0 1 5" align="ALIGN_STRETCH">
            <State name="disabled" colour="0.70 0.57 0.33" shift="0"/>
            <State name="normal" colour="0.70 0.57 0.33" shift="0"/>
            <State name="highlighted" colour="0.85 0.76 0.60" shift="0"/>
            <State name="pushed" colour="0.33 0.38 0.67" shift="0"/>
            <State name="disabled_checked" colour="0.33 0.38 0.67" shift="0"/>
            <State name="normal_checked" colour="0.33 0.38 0.67" shift="0"/>
            <State name="highlighted_checked" colour="0.33 0.38 0.67" shift="0"/>
            <State name="pushed_checked" colour="0.33 0.38 0.67" shift="0"/>
        </BasisSkin>
    </Skin>

    <Skin name="MW_List" size="516 516" align="ALIGN_LEFT ALIGN_TOP">
        <Property key="NeedKey" value="true" />
        <Property key="SkinLine" value="MW_ListLine" />
        <Property key="HeightLine" value="20" />

        <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="ALIGN_STRETCH"/>

        <Child type="ScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="ALIGN_RIGHT ALIGN_VSTRETCH" name="VScroll"/>

        <Child type="Widget" skin="" offset="3 3 493 509" align="ALIGN_STRETCH" name="Client"/>

    </Skin>

    <Skin name="MW_SimpleList" size="516 516" align="ALIGN_LEFT ALIGN_TOP">

        <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="ALIGN_STRETCH"/>

        <Child type="Widget" skin="" offset="3 3 510 510" align="Top Left ALIGN_STRETCH" name="Client"/>

    </Skin>

    <Skin name="MW_MultiSubList" size="516 516" align="ALIGN_LEFT ALIGN_TOP">
        <Property key="NeedKey" value="true" />
        <Property key="SkinLine" value="MW_ListLine" />
        <Property key="HeightLine" value="20" />

        <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="ALIGN_STRETCH"/>

        <Child type="ScrollBar" skin="MW_VScroll" offset="498 3 14 509" align="ALIGN_RIGHT ALIGN_VSTRETCH" name="VScroll"/>

        <Child type="Widget" skin="Default" offset="3 3 493 509" align="ALIGN_STRETCH" name="Client"/>

    </Skin>

    <Skin name="MW_MultiList" size="516 516" align="ALIGN_LEFT ALIGN_TOP">
        <Property key="NeedKey" value="true" />
        <Property key="SkinButton" value="ButtonSmall" />
        <Property key="_SkinButtonEmpty" value="EditBox" />
        <Property key="HeightButton" value="20" />

        <Property key="SkinList" value="MW_MultiSubList" />

        <Child type="Widget" skin="MW_Box" offset="0 0 516 516" align="ALIGN_STRETCH"/>

        <Child type="Widget" skin="" offset="3 3 516 516" align="ALIGN_STRETCH" name="Client"/>
    </Skin>

    <!-- Horizontal line -->

    <Skin name="MW_HLine" size="512 10"  texture="textures\menu_thin_border_top.dds">
        <BasisSkin type="SubSkin" offset="0 0 512 2" align="ALIGN_BOTTOM ALIGN_HSTRETCH">
            <State name="normal" offset="0 0 512 2"/>
        </BasisSkin>
    </Skin>

    <!-- Arrows -->

    <Skin name="MW_ArrowLeft" size="20 20" texture="textures\menu_scroll_left.dds">
        <BasisSkin type="SubSkin" offset="0 0 19 20" align="Stretch">
            <State name="normal" offset="0 0 19 20"/>
        </BasisSkin>
    </Skin>

    <Skin name="MW_ArrowRight" size="20 20" texture="textures\menu_scroll_right.dds">
        <BasisSkin type="SubSkin" offset="1 0 19 20" align="Stretch">
            <State name="normal" offset="1 0 19 20"/>
        </BasisSkin>
    </Skin>

    <Skin name="MW_ArrowUp" size="20 20" texture="textures\menu_scroll_up.dds">
        <BasisSkin type="SubSkin" offset="0 0 20 19" align="Stretch">
            <State name="normal" offset="0 0 20 19"/>
        </BasisSkin>
    </Skin>

    <Skin name="MW_ArrowDown" size="20 20" texture="textures\menu_scroll_down.dds">
        <BasisSkin type="SubSkin" offset="0 1 20 20" align="Stretch">
            <State name="normal" offset="0 1 20 20"/>
        </BasisSkin>
    </Skin>

</MyGUI>