EXT-7722 Fixed "Add to COF" and "Remove from COF" outfit context menu items to...
EXT-7722 Fixed "Add to COF" and "Remove from COF" outfit context menu items to be enabled when appropriate and work properly. Work on "Take Off - Remove from Current Outfit" and "Wear - Add to Current Outfit" menu options: - The menu items of the outfit context menu and the My Outfits gear menu are now disabled when inappropriate instead of being hidden. - The menu items get enabled/disabled depending on whether you can wear (take off) anything from the selected outfit. (was: depending on whether you're wearing the outfit) - Changed the way the options work: they now only operate on clothes and attachments. "Add to COF" now only adds those body parts that are missing in COF; "Remove from COF" doesn't touch body parts at all. Without this change both "Add" and "Remove" options would be available simultaneously, because any valid outfit contains body parts. I think that would be confusing. And you don't expect you body parts to be replaced when doing "Add to COF'. (that's addition, not replacement) Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/585/ --HG-- branch : product-engine
Showing
- indra/newview/llappearancemgr.cpp 32 additions, 1 deletionindra/newview/llappearancemgr.cpp
- indra/newview/llappearancemgr.h 6 additions, 0 deletionsindra/newview/llappearancemgr.h
- indra/newview/llinventorybridge.cpp 1 addition, 14 deletionsindra/newview/llinventorybridge.cpp
- indra/newview/llinventorybridge.h 0 additions, 1 deletionindra/newview/llinventorybridge.h
- indra/newview/llinventoryfunctions.cpp 25 additions, 5 deletionsindra/newview/llinventoryfunctions.cpp
- indra/newview/llinventoryfunctions.h 15 additions, 9 deletionsindra/newview/llinventoryfunctions.h
- indra/newview/lloutfitslist.cpp 8 additions, 8 deletionsindra/newview/lloutfitslist.cpp
- indra/newview/llpaneloutfitsinventory.cpp 4 additions, 4 deletionsindra/newview/llpaneloutfitsinventory.cpp
- indra/newview/skins/default/xui/en/menu_outfit_tab.xml 6 additions, 0 deletionsindra/newview/skins/default/xui/en/menu_outfit_tab.xml
Loading
Please register or sign in to comment