<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<pie_menu
    name="Object Pie">

   <pie_slice
     enabled="false"
     label="Open"
     name="Open">
        <pie_slice.on_click
         function="Object.Open" />
        <pie_slice.on_enable
         function="Object.EnableOpen" />
   </pie_slice>
   <pie_slice
        label="Create"
        name="Build">
        <pie_slice.on_click
            function="Object.Build" />
        <pie_slice.on_enable
            function="EnableEdit"/>
    </pie_slice>
    <pie_slice
        enabled="false"
        label="Touch"
        name="Pie Object Touch">
        <pie_slice.on_click
            function="Object.Touch" />
        <pie_slice.on_enable
            function="Object.EnableTouch"
            name="EnableTouch"
            parameter="Touch" />
    </pie_slice>
    <pie_slice
        enabled="false"
        start_autohide="true"
        label="Sit Here"
        name="Pie Object Sit">
        <pie_slice.on_click
            function="Object.SitOrStand" />
        <pie_slice.on_enable
            function="Object.EnableSit" />
    </pie_slice>
    <pie_slice
        enabled="false"
        autohide="true"
        label="Stand Up"
        name="Object Stand Up">
        <pie_slice.on_click
            function="Object.SitOrStand" />
        <pie_slice.on_enable
            function="Object.EnableStandUp" />
    </pie_slice>
    <pie_slice
        start_autohide="true"
        enabled="false"
        label="Buy"
        name="Buy...">
        <pie_slice.on_click
            function="Object.Buy" />
        <pie_slice.on_enable
            function="Object.EnableBuy" />
    </pie_slice>
    <pie_slice
        autohide="true"
        label="Take"
        name="Pie Object Take">
        <pie_slice.on_click
            function="Object.Take"/>
        <pie_slice.on_enable
            function="Object.VisibleTake"/>
    </pie_slice>
    <pie_slice
        enabled="false"
        label="Pay"
        name="Pay...">
        <pie_slice.on_click
            function="PayObject" />
        <pie_slice.on_enable
            function="EnablePayObject" />
    </pie_slice>

    <pie_menu
        label="More &gt;"
        name="Object Pie More 1">

    <pie_slice
        enabled="false"
        label="Delete"
        name="Delete">
        <pie_slice.on_click
            function="Object.Delete" />
        <pie_slice.on_enable
            function="Object.EnableDelete" />
    </pie_slice>
    <pie_slice
        enabled="false"
        label="Wear"
        name="Wear">
        <pie_slice.on_click
            function="Object.AttachToAvatar" />
        <pie_slice.on_enable
            function="Object.EnableWear" />
    </pie_slice>
    <pie_slice
        enabled="false"
        label="Take Copy"
        name="Take Copy">
        <pie_slice.on_click
            function="Tools.TakeCopy" />
        <pie_slice.on_enable
            function="Tools.EnableTakeCopy" />
    </pie_slice>
    <pie_menu
        label="Attach HUD &gt;"
        name="Pie Object Attach HUD" />
    <pie_menu
        label="Attach &gt;"
        name="Pie Object Attach">
        <pie_menu
         label="Ext. Skeleton &gt;"
         name="Enhanced Skeleton">
            <pie_slice
             label="Right Wing"
             name="Right Wing">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="46"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="46"/>
            </pie_slice>
            <pie_slice
             label="Groin"
             name="Groin">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="53"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="53"/>
            </pie_slice>
            <pie_slice
             label="Tail Base"
             name="Tail Base">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="43"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="43"/>
            </pie_slice>
            <pie_slice
             label="Tail Tip"
             name="Tail Tip">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="44"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="44"/>
            </pie_slice>
            <pie_slice
             label="Left Wing"
             name="Left Wing">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="45"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="45"/>
            </pie_slice>
            <pie_slice
             label="L Hind Foot"
             name="Left Hind Foot">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="54"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="54"/>
            </pie_slice>
            <pie_menu
             label="More &gt;"
             name="Enhanced Skeleton More">
                <pie_slice
                 label="Alt R Ear"
                 name="Alt Right Ear">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="49"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="49"/>
                </pie_slice>
                <pie_slice
                 label="Alt R Eye"
                 name="Alt Right Eye">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="51"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="51"/>
                </pie_slice>
                <pie_slice
                 label="Tongue"
                 name="Tongue">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="52"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="52"/>
                </pie_slice>
                <pie_slice
                 label="Alt L Eye"
                 name="Alt Left Eye">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="50"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="50"/>
                </pie_slice>
                <pie_slice
                 label="Alt L Ear"
                 name="Alt Left Ear">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="48"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="48"/>
                </pie_slice>
                <pie_slice
                 label="L Ring Finger"
                 name="Left Ring Finger">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="41"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="41"/>
                </pie_slice>
                <pie_slice
                 label="Jaw"
                 name="Jaw">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="47"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                      parameter="47"/>
                </pie_slice>
                <pie_slice
                 label="R Ring Finger"
                 name="Right Ring Finger">
                    <pie_slice.on_click
                     function="Object.AttachToAvatar"
                     parameter="42"/>
                    <pie_slice.on_enable
                     function="Object.EnableWear"
                     parameter="42"/>
                </pie_slice>
            </pie_menu>
            <pie_slice
             label="R Hind Foot"
             name="Right Hind Foot">
                <pie_slice.on_click
                 function="Object.AttachToAvatar"
                 parameter="55"/>
                <pie_slice.on_enable
                 function="Object.EnableWear"
                 parameter="55"/>
            </pie_slice>
        </pie_menu>
    </pie_menu>
    <pie_slice
        enabled="false"
        label="Return"
        name="Return...">
        <pie_slice.on_click
            function="Object.Return" />
        <pie_slice.on_enable
            function="Object.EnableReturn" />
    </pie_slice>

    <pie_menu
        label="More &gt;"
        name="Object Pie More 2">
        <pie_menu
            name="ResetMenu"
            label="Reset &gt;">
            <pie_slice
                enabled="true"
                label="Tex Refresh"
                name="Texture Refresh">
                <pie_slice.on_click
                    function="Object.TexRefresh" />
            </pie_slice>
            <pie_slice
                 label="Skeleton"
                 name="Reset Skeleton">
                    <pie_slice.on_click
                        function="Avatar.ResetSkeleton" />
                    <pie_slice.on_visible
                     function="Avatar.EnableResetSkeleton"/>
            </pie_slice>
        </pie_menu>
        <pie_menu
            name="DerenderMenu"
            label="Derender &gt;">
            <pie_slice
                enabled="true"
                label="Blacklist"
                name="DerenderPermanent">
                <pie_slice.on_click
                    function="Object.DerenderPermanent" />
            </pie_slice>
            <pie_slice
                enabled="true"
                label="Temporary"
                name="Derender">
                <pie_slice.on_click
                    function="Object.Derender" />
            </pie_slice>
        </pie_menu>
        <pie_slice
            enabled="false"
            label="Report..."
            name="Report Abuse...">
            <pie_slice.on_click
                function="Object.ReportAbuse" />
            <pie_slice.on_enable
                function="Object.EnableReportAbuse" />
        </pie_slice>
        <pie_menu
            name="ExportMenu"
            label="Save as &gt;">
            <pie_slice
                enabled="false"
                label="Backup"
                name="Backup">
                <pie_slice.on_click
                    function="Object.Export" />
                <pie_slice.on_enable
                    function="Object.EnableExport" />
            </pie_slice>
            <pie_slice
                enabled="false"
                label="Collada"
                name="Collada">
                <pie_slice.on_click
                    function="Object.ExportCollada" />
                <pie_slice.on_enable
                    function="Object.EnableExport" />
            </pie_slice>
            <pie_slice
                 label="Dump XML"
                 name="Dump XML">
                    <pie_slice.on_click
                     function="Advanced.AppearanceToXML" />
                    <pie_slice.on_visible
                     function="Advanced.EnableAppearanceToXML"/>
            </pie_slice>
        </pie_menu>

<!-- Phoenix has "Disable" here, which we haven't implemented yet.
     Might get interesting when we finally do ... -->
<!-- <pie_separator name="disable_placeholder" /> -->
        <pie_menu
         label="Pathfinding &gt;"
         name="Pathfinding">
            <pie_slice
             start_autohide="true"
             label="Show in linksets"
             name="show_in_linksets">
                <pie_slice.on_click
                 function="Pathfinding.Linksets.Select" />
                <pie_slice.on_enable
                 function="EnableSelectInPathfindingLinksets"/>
            </pie_slice>

            <pie_slice
             autohide="true"
             label="Show in characters"
             name="show_in_characters">
                <pie_slice.on_click
                 function="Pathfinding.Characters.Select" />
                <pie_slice.on_enable
                 function="EnableSelectInPathfindingCharacters"/>
            </pie_slice>
            <!-- FIXME: pie menu crashes if the last item in a pie_menu is an autohide item -Zi -->
            <pie_separator name="autohide_end_crash_protection" />
        </pie_menu>

    <pie_menu
        name="mute_menu"
        label="Mute &gt;">
        <pie_slice
            enabled="true"
            label="Mute"
            name="Object Mute">
            <pie_slice.on_click
                function="Object.Mute" />
<!--            <pie_slice.on_enable
                    function="Object.EnableMute" /> -->
        </pie_slice>
        <pie_slice
            enabled="false"
            label="Part. Owner"
            name="Mute Particle">
            <pie_slice.on_click
                function="Particle.Mute" />
            <pie_slice.on_enable
                function="EnableMuteParticle" />
        </pie_slice>
    </pie_menu>
        
        <pie_menu
            label="Scripts &gt;"
            name="ScriptsMenu">
            
            <pie_slice
                enabled="false"
                label="Compile (Mono)"
                name="CompileMono">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="compile mono" />
                <pie_slice.on_enable
                    function="EditableSelectedMono" />
            </pie_slice>

            <pie_slice
                enabled="false"
                label="Compile (LSL)"
                name="CompileLSL">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="compile lsl" />
                <pie_slice.on_enable
                    function="EditableSelected" />
            </pie_slice>

            <pie_slice
                enabled="false"
                label="Reset Scripts"
                name="Object Reset Scripts">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="reset" />
                <pie_slice.on_enable
                    function="EditableSelected" />
            </pie_slice>

            <pie_slice
                enabled="false"
                label="Run Scripts"
                name="Object Set Scripts to Running">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="start" />
                <pie_slice.on_enable
                    function="EditableSelected" />
            </pie_slice>

            <pie_slice
                enabled="false"
                label="Stop Scripts"
                name="Object Set Scripts to Not Running">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="stop" />
                <pie_slice.on_enable
                    function="EditableSelected" />
            </pie_slice>

            <pie_slice
                enabled="false"
                label="Remove Scripts"
                name="Remove Scripts From Selection">
                <pie_slice.on_click
                    function="Tools.SelectedScriptAction"
                    parameter="delete" />
                <pie_slice.on_enable
                    function="EditableSelected" />
            </pie_slice>
            
            <pie_slice
                enabled="true"
                label="Script Info"
                name="ScriptInfo">
                <pie_slice.on_click
                    function="Tools.ScriptInfo" />
                <pie_slice.on_enable
                    function="Object.EnableScriptInfo" />
            </pie_slice>
        
        </pie_menu>
        
        <pie_slice
            label="Inspect"
            name="Object Inspect">
            <pie_slice.on_click
                function="Floater.Show"
                parameter="inspect" />
        </pie_slice>

    </pie_menu>

    <pie_slice
        enabled="false"
        label="Buy"
        name="Buy...">
        <pie_slice.on_click
            function="Object.Buy" />
        <pie_slice.on_enable
            function="Object.EnableBuy" />
        </pie_slice>

    </pie_menu>

    <pie_slice
        label="Edit"
        name="Edit...">
        <pie_slice.on_click
            function="Object.Edit" />
        <pie_slice.on_enable
            function="EnableEdit"/>
    </pie_slice>

</pie_menu>
