Skip to content
Snippets Groups Projects
Commit cf86247b authored by Seth ProductEngine's avatar Seth ProductEngine
Browse files

CHUI-78 WIP Reordered and added missing items for People floater gear menus.

parent 2babcb4a
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,7 @@ LLContextMenu* NearbyMenu::createMenu() ...@@ -67,6 +67,7 @@ LLContextMenu* NearbyMenu::createMenu()
registrar.add("Avatar.Share", boost::bind(&LLAvatarActions::share, id)); registrar.add("Avatar.Share", boost::bind(&LLAvatarActions::share, id));
registrar.add("Avatar.Pay", boost::bind(&LLAvatarActions::pay, id)); registrar.add("Avatar.Pay", boost::bind(&LLAvatarActions::pay, id));
registrar.add("Avatar.BlockUnblock", boost::bind(&LLAvatarActions::toggleBlock, id)); registrar.add("Avatar.BlockUnblock", boost::bind(&LLAvatarActions::toggleBlock, id));
registrar.add("Avatar.InviteToGroup", boost::bind(&LLAvatarActions::inviteToGroup, id));
enable_registrar.add("Avatar.EnableItem", boost::bind(&NearbyMenu::enableContextMenuItem, this, _2)); enable_registrar.add("Avatar.EnableItem", boost::bind(&NearbyMenu::enableContextMenuItem, this, _2));
enable_registrar.add("Avatar.CheckItem", boost::bind(&NearbyMenu::checkContextMenuItem, this, _2)); enable_registrar.add("Avatar.CheckItem", boost::bind(&NearbyMenu::checkContextMenuItem, this, _2));
......
...@@ -2,6 +2,16 @@ ...@@ -2,6 +2,16 @@
<toggleable_menu name="menu_group_plus" <toggleable_menu name="menu_group_plus"
left="0" bottom="0" visible="false" left="0" bottom="0" visible="false"
mouse_opaque="false" opaque="true" color="MenuDefaultBgColor"> mouse_opaque="false" opaque="true" color="MenuDefaultBgColor">
<menu_item_call
label="Activate"
name="Activate">
<menu_item_call.on_click
function="People.Groups.Action"
parameter="activate" />
<menu_item_call.on_enable
function="People.Groups.Enable"
parameter="activate" />
</menu_item_call>
<menu_item_call <menu_item_call
label="View Info" label="View Info"
name="View Info"> name="View Info">
...@@ -23,7 +33,7 @@ ...@@ -23,7 +33,7 @@
parameter="chat" /> parameter="chat" />
</menu_item_call> </menu_item_call>
<menu_item_call <menu_item_call
label="Call" label="Voice call"
name="Call"> name="Call">
<menu_item_call.on_click <menu_item_call.on_click
function="People.Groups.Action" function="People.Groups.Action"
...@@ -33,17 +43,6 @@ ...@@ -33,17 +43,6 @@
parameter="call" /> parameter="call" />
</menu_item_call> </menu_item_call>
<menu_item_separator /> <menu_item_separator />
<menu_item_call
label="Activate"
name="Activate">
<menu_item_call.on_click
function="People.Groups.Action"
parameter="activate" />
<menu_item_call.on_enable
function="People.Groups.Enable"
parameter="activate" />
</menu_item_call>
<menu_item_separator />
<menu_item_call <menu_item_call
label="Leave" label="Leave"
name="Leave"> name="Leave">
......
...@@ -9,13 +9,40 @@ ...@@ -9,13 +9,40 @@
<menu_item_call.on_click <menu_item_call.on_click
function="Avatar.Profile" /> function="Avatar.Profile" />
</menu_item_call> </menu_item_call>
<menu_item_call
label="IM"
layout="topleft"
name="IM">
<menu_item_call.on_click
function="Avatar.IM" />
</menu_item_call>
<menu_item_call
label="Offer Teleport"
name="teleport">
<menu_item_call.on_click
function="Avatar.OfferTeleport"/>
<menu_item_call.on_enable
function="Avatar.EnableItem"
parameter="can_offer_teleport"/>
</menu_item_call>
<menu_item_call
label="Voice call"
layout="topleft"
name="Call">
<menu_item_call.on_click
function="Avatar.Call" />
<menu_item_call.on_enable
function="Avatar.EnableItem"
parameter="can_call" />
</menu_item_call>
<menu_item_separator />
<menu_item_call <menu_item_call
label="Add Friend" label="Add Friend"
layout="topleft" layout="topleft"
name="Add Friend"> name="Add Friend">
<menu_item_call.on_click <menu_item_call.on_click
function="Avatar.AddFriend" /> function="Avatar.AddFriend" />
<menu_item_call.on_enable <menu_item_call.on_visible
function="Avatar.EnableItem" function="Avatar.EnableItem"
parameter="can_add" /> parameter="can_add" />
</menu_item_call> </menu_item_call>
...@@ -30,22 +57,13 @@ ...@@ -30,22 +57,13 @@
parameter="can_delete" /> parameter="can_delete" />
</menu_item_call> </menu_item_call>
<menu_item_call <menu_item_call
label="IM" label="Invite to group..."
layout="topleft" layout="topleft"
name="IM"> name="Invite">
<menu_item_call.on_click <menu_item_call.on_click
function="Avatar.IM" /> function="Avatar.InviteToGroup" />
</menu_item_call>
<menu_item_call
label="Call"
layout="topleft"
name="Call">
<menu_item_call.on_click
function="Avatar.Call" />
<menu_item_call.on_enable
function="Avatar.EnableItem"
parameter="can_call" />
</menu_item_call> </menu_item_call>
<menu_item_separator />
<menu_item_call <menu_item_call
label="Map" label="Map"
layout="topleft" layout="topleft"
...@@ -83,13 +101,5 @@ ...@@ -83,13 +101,5 @@
function="Avatar.EnableItem" function="Avatar.EnableItem"
parameter="can_block" /> parameter="can_block" />
</menu_item_check> </menu_item_check>
<menu_item_call
label="Offer Teleport"
name="teleport">
<menu_item_call.on_click
function="Avatar.OfferTeleport"/>
<menu_item_call.on_enable
function="Avatar.EnableItem"
parameter="can_offer_teleport"/>
</menu_item_call>
</context_menu> </context_menu>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment