diff options
author | Jacek Antonelli | 2009-05-31 22:16:58 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-05-31 22:16:58 -0500 |
commit | 2cc402c47a814d126f2643483e1812eb56d81f6f (patch) | |
tree | 2a3c86d21fd423757b58d9bddd52df29b79c3bea /linden/indra/newview/llagent.cpp | |
parent | Added a separator between Wear and Restore to Last Position. (diff) | |
download | meta-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.cpp | 19 |
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 | ||
7437 | void LLAgent::userRemoveAllClothesConfirm() | ||
7438 | { | ||
7439 | gViewerWindow->alertXml("ConfirmRemoveAllClothes", | ||
7440 | LLAgent::userRemoveAllClothesCallback, NULL); | ||
7441 | } | ||
7442 | |||
7443 | // static | ||
7444 | void 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 | |||
7435 | void LLAgent::userRemoveAllClothes( void* userdata ) | 7454 | void 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. |