From 12d7411a16ea220c5fbc389b68f5f002b2423659 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Mon, 14 Dec 2015 11:48:23 -0500 Subject: SL-278 WIP - Attachment points for new joints --- indra/newview/character/avatar_lad.xml | 202 ++++++++++++++++++++----- indra/newview/llviewermenu.cpp | 4 +- indra/newview/llviewermenu.h | 4 +- indra/newview/llvoavatarself.cpp | 14 +- indra/newview/skins/default/xui/en/strings.xml | 18 ++- 5 files changed, 199 insertions(+), 43 deletions(-) diff --git a/indra/newview/character/avatar_lad.xml b/indra/newview/character/avatar_lad.xml index c99b4a08a6..3b85f5de9b 100755 --- a/indra/newview/character/avatar_lad.xml +++ b/indra/newview/character/avatar_lad.xml @@ -73,7 +73,7 @@ joint="mFootLeft" position="0 0.0 0.0" rotation="0 0 0" - visible_in_first_person="true"/> + visible_in_first_person="true"/> + visible_in_first_person="true"/> + visible_in_first_person="true" /> + visible_in_first_person="true" /> - + visible_in_first_person="false"/> + + visible_in_first_person="false" /> + visible_in_first_person="false" /> + visible_in_first_person="false" /> + visible_in_first_person="false"/> + visible_in_first_person="false" /> + visible_in_first_person="false"/> + visible_in_first_person="true" /> + visible_in_first_person="true"/> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + visible_in_first_person="true" /> - + visible_in_first_person="true" /> + + visible_in_first_person="true"/> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + visible_in_first_person="true" /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (params); + params.label(LLTrans::getString("BodyPartsEnhancedSkeleton")); + params.name(params.label); + gAttachBodyPartPieMenus[8] = LLUICtrlFactory::create(params); + gDetachBodyPartPieMenus[0] = NULL; params.label(LLTrans::getString("BodyPartsRightArm")); @@ -421,7 +425,11 @@ BOOL LLVOAvatarSelf::buildMenus() params.name(params.label); gDetachBodyPartPieMenus[7] = LLUICtrlFactory::create (params); - for (S32 i = 0; i < 8; i++) + params.label(LLTrans::getString("BodyPartsEnhancedSkeleton")); + params.name(params.label); + gDetachBodyPartPieMenus[8] = LLUICtrlFactory::create(params); + + for (S32 i = 0; i < 9; i++) { if (gAttachBodyPartPieMenus[i]) { @@ -506,7 +514,7 @@ BOOL LLVOAvatarSelf::buildMenus() ++iter) { LLViewerJointAttachment* attachment = iter->second; - if (attachment->getGroup() == 8) + if (attachment->getGroup() == 9) { LLMenuItemCallGL::Params item_params; std::string sub_piemenu_name = attachment->getName(); @@ -592,7 +600,7 @@ BOOL LLVOAvatarSelf::buildMenus() } } - for (S32 group = 0; group < 8; group++) + for (S32 group = 0; group < 9; group++) { // skip over groups that don't have sub menus if (!gAttachBodyPartPieMenus[group] || !gDetachBodyPartPieMenus[group]) diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 4eb6e2462d..a5d279254a 100755 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -2254,6 +2254,7 @@ For AI Character: Get the closest navigable point to the point provided. Left Leg Torso Right Leg + Enhanced Skeleton Low @@ -2475,8 +2476,21 @@ This feature is currently in Beta. Please add your name to this [http://goo.gl/f Stomach Left Pec Right Pec - Neck - Avatar Center + Neck + Avatar Center + Left Ring Finger + Right Ring Finger + Tail Base + Tail Tip + Left Wing + Right Wing + Jaw + Alt Left Ear + Alt Right Ear + Alt Left Eye + Alt Right Eye + Tongue + Groin Invalid Attachment Point Error: missing item Error: missing base item -- cgit v1.2.3