aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-05-31 22:16:58 -0500
committerJacek Antonelli2009-05-31 22:16:58 -0500
commit2cc402c47a814d126f2643483e1812eb56d81f6f (patch)
tree2a3c86d21fd423757b58d9bddd52df29b79c3bea /linden/indra/newview/llagent.cpp
parentAdded a separator between Wear and Restore to Last Position. (diff)
downloadmeta-impy-2cc402c47a814d126f2643483e1812eb56d81f6f.zip
meta-impy-2cc402c47a814d126f2643483e1812eb56d81f6f.tar.gz
meta-impy-2cc402c47a814d126f2643483e1812eb56d81f6f.tar.bz2
meta-impy-2cc402c47a814d126f2643483e1812eb56d81f6f.tar.xz
Added a confirmation dialog for Take Off All Clothes.
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r--linden/indra/newview/llagent.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index 46dc6f3..8c4e8b3 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -7432,6 +7432,25 @@ void LLAgent::userRemoveWearable( void* userdata )
7432 } 7432 }
7433} 7433}
7434 7434
7435
7436// static
7437void LLAgent::userRemoveAllClothesConfirm()
7438{
7439 gViewerWindow->alertXml("ConfirmRemoveAllClothes",
7440 LLAgent::userRemoveAllClothesCallback, NULL);
7441}
7442
7443// static
7444void LLAgent::userRemoveAllClothesCallback(S32 option, void *userdata)
7445{
7446 if( option == 0 )
7447 {
7448 // They confirmed it. Here we go!
7449 LLAgent::userRemoveAllClothes(NULL);
7450 }
7451}
7452
7453
7435void LLAgent::userRemoveAllClothes( void* userdata ) 7454void LLAgent::userRemoveAllClothes( void* userdata )
7436{ 7455{
7437 // We have to do this up front to avoid having to deal with the case of multiple wearables being dirty. 7456 // We have to do this up front to avoid having to deal with the case of multiple wearables being dirty.