<configs>
    <append xpath="/controls">
        <score_companion_entry2>
            <rect depth="1" width="900" height="43" pos="-3,-6" disabled_color="[disabledLabelColor]"
                  alternating_color="[darkestGrey]" controller="SCoreCompanion, SCore">
                <sprite depth="10" name="backgroundMain" sprite="menu_empty3px" pos="3,3" width="900" height="49" color="[black]" type="sliced" fillcenter="false"/>
                <sprite name="background" color="[darkGrey]" height="46" width="900" pos="4,2" type="sliced"/>

                <rect depth="1" name="npcName" width="154" height="46" pos="6,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="136" height="38" text="{name}" font_size="26" pivot="left"/>
                </rect>
                <rect depth="1" name="currentOrder" width="70" height="46" pos="160,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="70" height="38" text="{currentorder}" font_size="26" pivot="left"/>
                </rect>
                <rect depth="1" name="npcDistance" width="70" height="46" pos="230,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="70" height="38" text="{distance}" font_size="26" pivot="left" color="{distancecolor}" />
                </rect>
                <rect depth="1" name="npcOrderFollow" width="100" height="46" pos="300,-3">
                    <simplebutton name="btnFollow" depth="3" pos="5, 0" pivot="left" width="100" height="38" font_size="26" caption_key="xuiSCoreFollow" />
                </rect>

                <rect depth="1" name="npcOrderStayHere" width="100" height="46" pos="405,-3">
                    <simplebutton name="btnStayHere" depth="3" pos="5, 0" pivot="left" width="100" height="38" font_size="26" caption_key="xuiSCoreStayHere" buff="buffOrderStay2"/>
                </rect>

                <rect depth="1" name="npcOrderStayThere" width="110" height="46" pos="510,-3">
                    <simplebutton name="btnStayThere" depth="3" pos="5, 0" pivot="left" width="110" height="38" font_size="26" caption_key="xuiSCoreStayThere" />
                </rect>

                <rect depth="1" name="npcOrderTeleport" width="110" height="46" pos="630,-3">
                    <simplebutton name="btnTeleport" depth="3" pos="5, 0" pivot="left" width="110" height="38" font_size="26" caption_key="xuiSCoreTeleport" />
                </rect>

                <rect depth="1" name="npcOrderDismiss" width="100" height="46" pos="750,-3">
                    <simplebutton name="btnDismiss" depth="3" pos="5, 0" pivot="left" width="100" height="38" font_size="26" caption_key="xuiSCoreDismiss" />
                </rect>

            </rect>
        </score_companion_entry2>

        <score_companion_header>
            
            <panel name="header" depth="0" pos="-3,-150" height="746" disableautobackground="true"> 
                <sprite depth="10" name="backgroundMain" sprite="menu_empty3px" pos="3,3" width="900" height="52" color="[black]" type="sliced" fillcenter="false" />
                <sprite color="[mediumGrey]" type="sliced" pos="6,0" height="49" width="900" />
                <rect depth="1" name="npcName" width="154" height="46" pos="6,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="136" height="38" text="Name" font_size="26" pivot="left" justify="left"/>
                </rect>
                <rect depth="1" name="currentOrder" width="70" height="46" pos="160,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="70" height="38" text="Order" font_size="26" pivot="left" justify="center"/>
                </rect>
                <rect depth="1" name="npcDistance" width="70" height="46" pos="230,-6">
                    <label depth="1" name="TextContent" pos="4, -15" width="70" height="38" text="Distance" font_size="26" pivot="left" justify="center" />
                </rect>
                <rect depth="1" name="npcOrderFollow" width="310" height="46" pos="300,-3">
                    <label depth="1" name="TextContent" pos="4, -15" width="310" height="38" text="Orders" font_size="26" pivot="left" justify="center" />
                </rect>
             
            </panel>
        </score_companion_header>
        <togglebuttonCVar depth="3" pos="0,0" width="200" height="32"
                      enabled_font_color="[labelColor]" disabled_font_color="[disabledLabelColor]" visible="true" tooltip_key="" caption="" caption_key="" font_size="28" parse_actions="false">
            <rect name="${name}" depth="${depth}" pos="${pos}" width="${width}" height="${height}" enabled_font_color="${enabled_font_color}" cvar="${cvar}" disabled_font_color="${disabled_font_color}" controller="XUiC_ToggleButtonCVar, SCore" visible="${visible}">
                <button name="clickable" sprite="menu_empty" defaultcolor="[mediumGrey]" disabledcolor="[darkGrey]" hoversprite="ui_game_select_row" hovercolor="[white]" type="sliced" hoverscale="1.0" tooltip_key="${tooltip_key}" />
                <sprite depth="1" name="border" sprite="menu_empty2px" color="[black]" type="sliced" fillcenter="false" />
                <sprite depth="2" name="tickbox" width="${height-6}" height="${height-6}" pos="7,-4" color="[darkGrey]" sprite="Highlight - Shadowed" type="sliced" />
                <sprite depth="3" name="tickmark" width="${height-12}" height="${height-12}" pos="10,-7" color="[iconColor]" sprite="ui_game_symbol_check" visible="{value}" />
                <label depth="2" name="btnLabel" width="${width-height-8}" height="${height-2}" pos="${6+height},${Round(-height/2,0)}" justify="left" text="${caption}" text_key="${caption_key}" effect="outline" pivot="left" font_size="${font_size}" parse_actions="${parse_actions}" />
            </rect>
        </togglebuttonCVar>

    </append>
    
    
</configs>