<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<context_menu
 layout="topleft"
 name="Participant List Context Menu">
    <menu_item_check
     label="Sort by Name"
     layout="topleft"
     name="SortByName">
        <on_check
         function="ParticipantList.CheckItem"
         parameter="is_sorted_by_name" />
        <on_click
         function="ParticipantList.Sort"
         parameter="sort_by_name" />
    </menu_item_check>
    <menu_item_check
     label="Sort by Recent Speakers"
     layout="topleft"
     name="SortByRecentSpeakers">
        <on_check
         function="ParticipantList.CheckItem"
         parameter="is_sorted_by_recent_speakers" />
        <on_click
         function="ParticipantList.Sort"
         parameter="sort_by_recent_speakers" />
    </menu_item_check>
    <menu_item_call
     label="View Profile"
     layout="topleft"
     name="View Profile">
        <on_click
         function="Avatar.Profile" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_view_profile" />
    </menu_item_call>
    <menu_item_call
     label="Add Friend"
     layout="topleft"
     name="Add Friend">
        <on_click
         function="Avatar.AddFriend" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_add" />
    </menu_item_call>
    <menu_item_call
     label="IM"
     layout="topleft"
     name="IM">
        <on_click
         function="Avatar.IM" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_im" />
    </menu_item_call>
    <menu_item_call
     label="Call"
     layout="topleft"
     name="Call">
        <on_click
         function="Avatar.Call" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_call" />
    </menu_item_call>
    <menu_item_call
     label="Share"
     layout="topleft"
     name="Share">
        <on_click
         function="Avatar.Share" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_share" />
    </menu_item_call>
    <menu_item_call
     label="Pay"
     layout="topleft"
     name="Pay">
        <on_click
         function="Avatar.Pay" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_pay" />
    </menu_item_call>
    <menu_item_separator
     layout="topleft"
     name="View Icons Separator" />
    <menu_item_check
     label="View People Icons"
     layout="topleft"
     name="View Icons">
        <on_check
         function="CheckControl"
         parameter="ParticipantListShowIcons" />
        <on_click
         function="ToggleControl"
         parameter="ParticipantListShowIcons" />
    </menu_item_check>
    <menu_item_separator
     layout="topleft" />
    <menu_item_check
     label="Block Voice"
     layout="topleft"
     name="Block/Unblock">
        <on_check
         function="ParticipantList.CheckItem"
         parameter="is_blocked" />
        <on_click
         function="Avatar.BlockUnblock" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_block" />
    </menu_item_check>
    <menu_item_check
     label="Block Text"
     layout="topleft"
     name="MuteText">
        <on_check
         function="ParticipantList.CheckItem"
         parameter="is_muted" />
        <on_click
         function="ParticipantList.ToggleMuteText" />
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_mute_text" />
    </menu_item_check>
    <menu_item_call
     label="Report"
     layout="topleft"
     name="AbuseReport">
        <on_click
         function="Avatar.ReportAbuse"/>
        <on_enable
         function="ParticipantList.EnableItem"
         parameter="can_report" />
    </menu_item_call>
    <menu_item_separator
     layout="topleft" 
     name="Moderator Options Separator"/>
    <context_menu
     label="Moderator Options"
     layout="topleft"
     name="Moderator Options">
        <menu_item_check
         label="Allow text chat"
         layout="topleft"
         name="AllowTextChat">
            <on_check
             function="ParticipantList.CheckItem"
             parameter="is_allowed_text_chat" />
            <on_click
             function="ParticipantList.ToggleAllowTextChat" />
            <on_enable
             function="ParticipantList.EnableItem"
             parameter="can_allow_text_chat" />
        </menu_item_check>
        <menu_item_separator
         layout="topleft"
         name="moderate_voice_separator" />
        <menu_item_call
         label="Mute this participant"
         layout="topleft"
         name="ModerateVoiceMuteSelected">
            <on_click
             function="ParticipantList.ModerateVoice"
             parameter="selected" />
            <on_enable
             function="ParticipantList.EnableItem.Moderate"
             parameter="can_moderate_voice" />
        </menu_item_call>
        <menu_item_call
         label="Unmute this participant"
         layout="topleft"
         name="ModerateVoiceUnMuteSelected">
            <on_click
             function="ParticipantList.ModerateVoice"
             parameter="selected" />
            <on_enable
             function="ParticipantList.EnableItem.Moderate"
             parameter="can_moderate_voice" />
        </menu_item_call>
        <menu_item_call
         label="Mute everyone"
         layout="topleft"
         name="ModerateVoiceMute">
            <on_click
             function="ParticipantList.ModerateVoice"
             parameter="mute_all" />
            <on_enable
             function="ParticipantList.EnableItem.Moderate"
             parameter="can_moderate_voice" />
        </menu_item_call>
        <menu_item_call
         label="Unmute everyone"
         layout="topleft"
         name="ModerateVoiceUnmute">
            <on_click
             function="ParticipantList.ModerateVoice"
             parameter="unmute_all" />
            <on_enable
             function="ParticipantList.EnableItem.Moderate"
             parameter="can_moderate_voice" />
        </menu_item_call>
        <menu_item_separator
         layout="topleft"
         name="saparator" />
        <menu_item_call
         label="Copy Avatar UUID"
         layout="topleft"
         name="CopyUUID">
            <on_click
             function="Avatar.GetUUID"/>
        </menu_item_call>
        <menu_item_call
         label="Copy Avatar SLURL"
         layout="topleft"
         name="CopySLURL">
            <on_click
             function="Avatar.GetSLURL"/>
        </menu_item_call>
    </context_menu>
</context_menu>
