diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-04-05 22:56:18 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2012-04-05 22:56:18 +0300 |
commit | 2dc032e3e582d39a04c40b7cfb3366424491b491 (patch) | |
tree | 57cf77b61463a74117c4e504eb53529f27ba463d /indra/newview/skins/default | |
parent | 177c1f80bc132fdad4e46009b074c0609454332f (diff) |
CHUI-78 WIP Added drop-down menus and connected callbacks to the new view/sort/add/remove buttons.
Diffstat (limited to 'indra/newview/skins/default')
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_group_plus.xml | 4 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_friends_sort.xml | 26 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_friends_view.xml (renamed from indra/newview/skins/default/xui/en/menu_people_friends_view_sort.xml) | 21 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_groups_view.xml (renamed from indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml) | 9 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_nearby_sort.xml (renamed from indra/newview/skins/default/xui/en/menu_people_nearby_view_sort.xml) | 23 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_nearby_view.xml | 31 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_recent_sort.xml (renamed from indra/newview/skins/default/xui/en/menu_people_recent_view_sort.xml) | 13 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_recent_view.xml | 18 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/panel_people.xml | 152 |
9 files changed, 195 insertions, 102 deletions
diff --git a/indra/newview/skins/default/xui/en/menu_group_plus.xml b/indra/newview/skins/default/xui/en/menu_group_plus.xml index fce7414d80..eca9e7f3c9 100644 --- a/indra/newview/skins/default/xui/en/menu_group_plus.xml +++ b/indra/newview/skins/default/xui/en/menu_group_plus.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" standalone="yes" ?> -<menu name="menu_group_plus" +<toggleable_menu name="menu_group_plus" left="0" bottom="0" visible="false" mouse_opaque="false"> <menu_item_call name="item_join" label="Join Group..."> @@ -8,4 +8,4 @@ <menu_item_call name="item_new" label="New Group..."> <menu_item_call.on_click function="People.Group.Plus.Action" userdata="new_group" /> </menu_item_call> -</menu> +</toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_friends_sort.xml b/indra/newview/skins/default/xui/en/menu_people_friends_sort.xml new file mode 100644 index 0000000000..532e295386 --- /dev/null +++ b/indra/newview/skins/default/xui/en/menu_people_friends_sort.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<toggleable_menu + name="menu_group_plus" + left="0" bottom="0" visible="false" + mouse_opaque="false"> + <menu_item_check + label="Sort by Name" + name="sort_name"> + <menu_item_check.on_click + function="People.Friends.ViewSort.Action" + parameter="sort_name" /> + <menu_item_check.on_check + function="People.Friends.ViewSort.CheckItem" + parameter="sort_name" /> + </menu_item_check> + <menu_item_check + label="Sort by Status" + name="sort_status"> + <menu_item_check.on_click + function="People.Friends.ViewSort.Action" + parameter="sort_status" /> + <menu_item_check.on_check + function="People.Friends.ViewSort.CheckItem" + parameter="sort_status" /> + </menu_item_check> +</toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_friends_view_sort.xml b/indra/newview/skins/default/xui/en/menu_people_friends_view.xml index b452f96e7a..be23e91587 100644 --- a/indra/newview/skins/default/xui/en/menu_people_friends_view_sort.xml +++ b/indra/newview/skins/default/xui/en/menu_people_friends_view.xml @@ -3,27 +3,6 @@ name="menu_group_plus" left="0" bottom="0" visible="false" mouse_opaque="false"> - <menu_item_check - label="Sort by Name" - name="sort_name"> - <menu_item_check.on_click - function="People.Friends.ViewSort.Action" - parameter="sort_name" /> - <menu_item_check.on_check - function="People.Friends.ViewSort.CheckItem" - parameter="sort_name" /> - </menu_item_check> - <menu_item_check - label="Sort by Status" - name="sort_status"> - <menu_item_check.on_click - function="People.Friends.ViewSort.Action" - parameter="sort_status" /> - <menu_item_check.on_check - function="People.Friends.ViewSort.CheckItem" - parameter="sort_status" /> - </menu_item_check> - <menu_item_separator layout="topleft" /> <menu_item_check name="view_icons" label="View People Icons"> <menu_item_check.on_click function="People.Friends.ViewSort.Action" diff --git a/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml b/indra/newview/skins/default/xui/en/menu_people_groups_view.xml index c710fe3b9b..73f79f1e70 100644 --- a/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml +++ b/indra/newview/skins/default/xui/en/menu_people_groups_view.xml @@ -14,13 +14,4 @@ function="CheckControl" parameter="GroupListShowIcons" /> </menu_item_check> - <menu_item_call - label="Leave Selected Group" - layout="topleft" - name="Leave Selected Group"> - <menu_item_call.on_click - function="People.Group.Minus.Action"/> - <menu_item_call.on_enable - function="People.Group.Minus.Enable"/> - </menu_item_call> </toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_nearby_view_sort.xml b/indra/newview/skins/default/xui/en/menu_people_nearby_sort.xml index 614dd693c5..cf7f4f4fce 100644 --- a/indra/newview/skins/default/xui/en/menu_people_nearby_view_sort.xml +++ b/indra/newview/skins/default/xui/en/menu_people_nearby_sort.xml @@ -33,25 +33,4 @@ function="People.Nearby.ViewSort.CheckItem" parameter="sort_distance"/> </menu_item_check> - <menu_item_separator layout="topleft" /> - <menu_item_check name="view_icons" label="View People Icons"> - <menu_item_check.on_click - function="People.Nearby.ViewSort.Action" - parameter="view_icons" /> - <menu_item_check.on_check - function="CheckControl" - parameter="NearbyListShowIcons" /> - </menu_item_check> - <menu_item_check name ="view_map" label="View Map"> - <menu_item_check.on_check - function="CheckControl" - parameter="NearbyListShowMap" /> - <menu_item_check.on_click - function="ToggleControl" - parameter="NearbyListShowMap" /> - </menu_item_check> - <menu_item_separator layout="topleft" /> - <menu_item_call name="show_blocked_list" label="Show Blocked Residents & Objects"> - <menu_item_call.on_click function="People.Nearby.ViewSort.Action" userdata="panel_block_list_sidetray" /> - </menu_item_call> -</toggleable_menu> + </toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_nearby_view.xml b/indra/newview/skins/default/xui/en/menu_people_nearby_view.xml new file mode 100644 index 0000000000..187dd3bcb5 --- /dev/null +++ b/indra/newview/skins/default/xui/en/menu_people_nearby_view.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<toggleable_menu + name="menu_group_plus" + left="0" bottom="0" visible="false" + mouse_opaque="false"> + <menu_item_check name="view_icons" label="View People Icons"> + <menu_item_check.on_click + function="People.Nearby.ViewSort.Action" + parameter="view_icons" /> + <menu_item_check.on_check + function="CheckControl" + parameter="NearbyListShowIcons" /> + </menu_item_check> + <menu_item_check name ="view_map" label="View Map"> + <menu_item_check.on_check + function="CheckControl" + parameter="NearbyListShowMap" /> + <menu_item_check.on_click + function="ToggleControl" + parameter="NearbyListShowMap" /> + </menu_item_check> + <menu_item_separator + layout="topleft" /> + <menu_item_call + name="show_blocked_list" + label="Show Blocked Residents & Objects"> + <menu_item_call.on_click + function="People.Nearby.ViewSort.Action" + userdata="panel_block_list_sidetray" /> + </menu_item_call> +</toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_recent_view_sort.xml b/indra/newview/skins/default/xui/en/menu_people_recent_sort.xml index 485a5a658c..f14be88780 100644 --- a/indra/newview/skins/default/xui/en/menu_people_recent_view_sort.xml +++ b/indra/newview/skins/default/xui/en/menu_people_recent_sort.xml @@ -23,17 +23,4 @@ function="People.Recent.ViewSort.CheckItem" parameter="sort_name" /> </menu_item_check> - <menu_item_separator layout="topleft" /> - <menu_item_check name="view_icons" label="View People Icons"> - <menu_item_check.on_click - function="People.Recent.ViewSort.Action" - parameter="view_icons" /> - <menu_item_check.on_check - function="CheckControl" - parameter="RecentListShowIcons" /> - </menu_item_check> - <menu_item_separator layout="topleft" /> - <menu_item_call name="show_blocked_list" label="Show Blocked Residents & Objects"> - <menu_item_call.on_click function="People.Recent.ViewSort.Action" userdata="panel_block_list_sidetray" /> - </menu_item_call> </toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/menu_people_recent_view.xml b/indra/newview/skins/default/xui/en/menu_people_recent_view.xml new file mode 100644 index 0000000000..5520bc993c --- /dev/null +++ b/indra/newview/skins/default/xui/en/menu_people_recent_view.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes" ?> +<toggleable_menu + name="menu_group_plus" + left="0" bottom="0" visible="false" + mouse_opaque="false"> + <menu_item_check name="view_icons" label="View People Icons"> + <menu_item_check.on_click + function="People.Recent.ViewSort.Action" + parameter="view_icons" /> + <menu_item_check.on_check + function="CheckControl" + parameter="RecentListShowIcons" /> + </menu_item_check> + <menu_item_separator layout="topleft" /> + <menu_item_call name="show_blocked_list" label="Show Blocked Residents & Objects"> + <menu_item_call.on_click function="People.Recent.ViewSort.Action" userdata="panel_block_list_sidetray" /> + </menu_item_call> +</toggleable_menu> diff --git a/indra/newview/skins/default/xui/en/panel_people.xml b/indra/newview/skins/default/xui/en/panel_people.xml index 919661eff6..f61b0b3dbd 100644 --- a/indra/newview/skins/default/xui/en/panel_people.xml +++ b/indra/newview/skins/default/xui/en/panel_people.xml @@ -73,6 +73,9 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M top="0" halign="center" width="319"> + +<!-- ================================= NEARBY tab =========================== --> + <panel background_opaque="true" background_visible="true" @@ -117,19 +120,23 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="10" - name="nearby_sort_btn" + menu_filename="menu_people_nearby_view.xml" + menu_position="bottomleft" + name="nearby_view_btn" top="1" width="31" /> <menu_button follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" - image_overlay="Hierarchy_View_Disabled" + image_overlay="Inv_Underpants" image_selected="Toolbar_Middle_Selected" image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="nearby_view_btn" + menu_filename="menu_people_nearby_sort.xml" + menu_position="bottomleft" + name="nearby_sort_btn" top="1" width="31" /> <button @@ -141,10 +148,14 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="nearby_add_btn" + name="add_friend_btn" top="1" - width="31" /> + width="31"> + <commit_callback + function="People.AddFriend" /> + </button> <dnd_button + enabled="false" follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" @@ -155,7 +166,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M layout="topleft" name="nearby_del_btn" top="1" - width="31"/> + width="31"> + <commit_callback + function="People.DelFriend" /> + </dnd_button> </panel> <layout_stack clip="false" @@ -208,6 +222,9 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M </layout_panel> </layout_stack> </panel> + +<!-- ================================= FRIENDS tab ========================== --> + <panel background_opaque="true" background_visible="true" @@ -252,19 +269,23 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="10" - name="friends_sort_btn" + menu_filename="menu_people_friends_view.xml" + menu_position="bottomleft" + name="friends_view_btn" top="1" width="31" /> <menu_button follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" - image_overlay="Hierarchy_View_Disabled" + image_overlay="Inv_Underpants" image_selected="Toolbar_Middle_Selected" image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="friends_view_btn" + menu_filename="menu_people_friends_sort.xml" + menu_position="bottomleft" + name="friends_sort_btn" top="1" width="31" /> <button @@ -278,7 +299,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M left_pad="2" name="friends_add_btn" top="1" - width="31" /> + width="31"> + <commit_callback + function="People.AddFriendWizard" /> + </button> <dnd_button follows="right" height="25" @@ -290,7 +314,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M layout="topleft" name="friends_del_btn" top="1" - width="31"/> + width="31"> + <commit_callback + function="People.DelFriend" /> + </dnd_button> </panel> <accordion background_visible="true" @@ -348,6 +375,9 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M width="293" wrap="true" /> </panel> + +<!-- ================================= GROUPS tab =========================== --> + <panel background_opaque="true" background_visible="true" @@ -396,19 +426,22 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="10" - name="groups_sort_btn" + menu_filename="menu_people_groups_view.xml" + menu_position="bottomleft" + name="groups_view_btn" top="1" width="31" /> <menu_button + enabled="false" follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" - image_overlay="Hierarchy_View_Disabled" + image_overlay="Inv_Underpants" image_selected="Toolbar_Middle_Selected" image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="groups_view_btn" + name="groups_sort_btn" top="1" width="31" /> <button @@ -420,10 +453,13 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="groups_activate_btn" + name="activate_btn" top="1" - width="31" /> - <button + width="31"> + <commit_callback + function="People.Group.Activate" /> + </button> + <menu_button follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" @@ -432,9 +468,14 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="groups_add_btn" + menu_filename="menu_group_plus.xml" + menu_position="bottomleft" + name="minus_btn" top="1" - width="31" /> + width="31"> + <validate_callback + function="People.Group.Plus.Validate" /> + </menu_button> <dnd_button follows="right" height="25" @@ -444,9 +485,12 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" left_pad="2" layout="topleft" - name="groups_del_btn" + name="minus_btn" top="1" - width="31"/> + width="31"> + <commit_callback + function="People.Group.Minus" /> + </dnd_button> </panel> <group_list allow_select="true" @@ -458,6 +502,9 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M top_pad="0" width="307" /> </panel> + +<!-- ================================= RECENT tab =========================== --> + <panel background_opaque="true" background_visible="true" @@ -502,19 +549,23 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="10" - name="recent_sort_btn" + menu_filename="menu_people_recent_view.xml" + menu_position="bottomleft" + name="recent_view_btn" top="1" width="31" /> <menu_button follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" - image_overlay="Hierarchy_View_Disabled" + image_overlay="Inv_Underpants" image_selected="Toolbar_Middle_Selected" image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="recent_view_btn" + menu_filename="menu_people_recent_sort.xml" + menu_position="bottomleft" + name="recent_sort_btn" top="1" width="31" /> <button @@ -526,10 +577,14 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M image_unselected="Toolbar_Middle_Off" layout="topleft" left_pad="2" - name="recent_add_btn" + name="add_friend_btn" top="1" - width="31" /> + width="31"> + <commit_callback + function="People.AddFriend" /> + </button> <dnd_button + enabled="false" follows="right" height="25" image_hover_unselected="Toolbar_Middle_Over" @@ -540,7 +595,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M layout="topleft" name="recent_del_btn" top="1" - width="31"/> + width="31"> + <commit_callback + function="People.DelFriend" /> + </dnd_button> </panel> <avatar_list allow_select="true" @@ -592,7 +650,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="view_profile_btn" tool_tip="Show picture, groups, and other Residents information" top="0" - width="67" /> + width="67"> + <commit_callback + function="People.ViewProfile" /> + </button> </layout_panel> <layout_panel @@ -612,7 +673,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="im_btn" tool_tip="Open instant message session" top="0" - width="40" /> + width="40"> + <commit_callback + function="People.IM" /> + </button> </layout_panel> <layout_panel @@ -632,7 +696,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="call_btn" tool_tip="Call this Resident" top="0" - width="51" /> + width="51"> + <commit_callback + function="People.Call" /> + </button> </layout_panel> <layout_panel @@ -652,7 +719,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="share_btn" tool_tip="Share an inventory item" top="0" - width="65" /> + width="65"> + <commit_callback + function="People.Share" /> + </button> </layout_panel> <layout_panel @@ -672,7 +742,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="teleport_btn" tool_tip="Offer teleport" top="0" - width="76" /> + width="76"> + <commit_callback + function="People.Teleport" /> + </button> </layout_panel> </layout_stack> @@ -706,7 +779,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="group_info_btn" tool_tip="Show group information" top="0" - width="107" /> + width="107"> + <commit_callback + function="People.GroupInfo" /> + </button> </layout_panel> <layout_panel @@ -728,7 +804,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="chat_btn" tool_tip="Open chat session" top="0" - width="100" /> + width="100"> + <commit_callback + function="People.Chat" /> + </button> </layout_panel> <layout_panel @@ -750,7 +829,10 @@ Looking for people to hang out with? Try the [secondlife:///app/worldmap World M name="group_call_btn" tool_tip="Call this group" top="0" - width="95" /> + width="95"> + <commit_callback + function="People.GroupCall" /> + </button> </layout_panel> </layout_stack> </panel> |