Files
SingularityViewer/indra/newview/skins/default/xui/en-us/menu_pie_attachment.xml
Inusaito Sayori 511b0cfb9c ContextMenu Support!
LLContextMenu functionality pulled out of LLPieMenu, PieMenu is now derived from LLContextMenu
- The more attribute boolean of pie_menu element determines whether or not to have an actual submenu if it's not a pie, defaults to false which means actual submenu..
-- in the future we may want to have more more="true" depending on feedback
- Pie menu labels now dynamically get " >" appended to them (avoids stupid looking context menus)
- Positioning logic combined in part, mostly conditional still, in the future we could probably combine it more.
- handleHoverOver function combines common functionality between context and pies given an item and hover mouse coords.

LiruUseContextMenus debug setting determines which to use, default is pie, of course
- Context(/Pie) Menus are rebuilt when the setting changes value
-- this is safe at any point because all startup states have been accounted for
- "Use context menus instead of pie menus" added to System->General preferences (it's close to the bottom)
2013-11-06 18:47:02 -05:00

89 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<pie_menu name="Attachment Pie">
<menu_item_call enabled="true" label="Profile..." name="Profile...">
<on_click function="ShowAgentProfile" userdata="agent" />
</menu_item_call>
<menu_item_call enabled="false" label="Drop" mouse_opaque="true" name="Drop">
<on_click function="Attachment.Drop" />
<on_enable function="Attachment.EnableDrop" />
</menu_item_call>
<menu_item_call enabled="false" label="Touch" mouse_opaque="true" name="Attachment Object Touch">
<on_click function="Object.Touch" />
<on_enable function="Object.EnableTouch" userdata="Touch" name="EnableTouch"/>
</menu_item_call>
<menu_item_call enabled="true" label="Stand Up" name="Stand Up">
<on_click function="Self.SitOrStand"/>
<on_enable function="Self.EnableSitOrStand" userdata="Sit Down,Stand Up"/>
</menu_item_call>
<menu_item_call enabled="false" label="Detach" mouse_opaque="true" name="Detach">
<on_click function="Attachment.Detach" />
<on_enable function="Attachment.EnableDetach" />
</menu_item_call>
<pie_menu label="Tools" name="Tools">
<pie_menu label="Scripts" name="ScriptsMenu">
<menu_item_call mouse_opaque="true" label="Make Mono" name="CompileMono">
<on_click function="Tools.SelectedScriptAction" userdata="compile mono" />
<on_enable function="EditableSelectedMono" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Make LSL" name="CompileLSL">
<on_click function="Tools.SelectedScriptAction" userdata="compile lsl" />
<on_enable function="EditableSelected" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Reset" name="Reset Scripts">
<on_click function="Tools.SelectedScriptAction" userdata="reset" />
<on_enable function="EditableSelected" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Start" name="Object Set Scripts to Running">
<on_click function="Tools.SelectedScriptAction" userdata="start" />
<on_enable function="EditableSelected" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Stop" name="Object Set Scripts to Not Running">
<on_click function="Tools.SelectedScriptAction" userdata="stop" />
<on_enable function="EditableSelected" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Remove" name="Remove Scripts From Selection">
<on_click function="Tools.ScriptDelete" />
<on_enable function="Tools.EnableScriptDelete" />
</menu_item_call>
<menu_item_call mouse_opaque="true" label="Count" name="ScriptCount">
<on_click function="Object.ScriptCount" />
<on_visible function="Object.VisibleScriptCount" />
</menu_item_call>
<menu_item_call label="Script Info" mouse_opaque="true" name="Script Info">
<on_click function="ShowFloater" userdata="script info" />
<on_visible function="Self.VisibleScriptInfo" />
</menu_item_call>
</pie_menu>
<menu_item_call enabled="true" label="Inspect" mouse_opaque="true" name="Object Inspect">
<on_click function="Object.Inspect" />
<on_enable function="Object.EnableInspect"/>
</menu_item_call>
<menu_item_call enabled="false" label="Data" mouse_opaque="true" name="Data">
<on_click function="Object.Data" />
</menu_item_call>
<menu_item_call enabled="true" label="Derender" mouse_opaque="true" name="Derender">
<on_click function="Object.DERENDER" />
<on_enable function="Object.EnableDerender" />
</menu_item_call>
<menu_item_call enabled="true" label="Reload" mouse_opaque="true" name="Reload Textures">
<on_click function="Object.ReloadTextures" />
</menu_item_call>
<menu_item_call label="Save OBJ..." mouse_opaque="true" name="Save OBJ...">
<on_click function="Object.SaveAsOBJ" />
<on_enable function="Object.EnableExport" />
</menu_item_call>
<menu_item_call label="Save DAE..." mouse_opaque="true" name="Save DAE...">
<on_click function="Object.SaveAsDAE" />
<on_enable function="Object.EnableExport" />
</menu_item_call>
</pie_menu>
<menu_item_call enabled="true" label="Appearance..." name="Appearance...">
<on_click function="ShowFloater" userdata="appearance" />
<on_enable function="Edit.EnableCustomizeAvatar" />
</menu_item_call>
<menu_item_call enabled="false" label="Edit..." mouse_opaque="true" name="Edit...">
<on_click function="Object.Edit" />
<on_enable function="EnableEdit" />
</menu_item_call>
</pie_menu>