diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llagent.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp index 301f00b..6fe4863 100644 --- a/linden/indra/newview/llagent.cpp +++ b/linden/indra/newview/llagent.cpp | |||
@@ -5998,6 +5998,28 @@ void LLAgent::teleportViaLocation(const LLVector3d& pos_global) | |||
5998 | } | 5998 | } |
5999 | } | 5999 | } |
6000 | 6000 | ||
6001 | |||
6002 | void LLAgent::teleportHome() | ||
6003 | { | ||
6004 | teleportViaLandmark(LLUUID::null); | ||
6005 | } | ||
6006 | |||
6007 | void LLAgent::teleportHomeConfirm() | ||
6008 | { | ||
6009 | gViewerWindow->alertXml("ConfirmTeleportHome", LLAgent::teleportHomeCallback, (void *)this); | ||
6010 | } | ||
6011 | |||
6012 | // static | ||
6013 | void LLAgent::teleportHomeCallback(S32 option, void *userdata) | ||
6014 | { | ||
6015 | if( option == 0 ) | ||
6016 | { | ||
6017 | // They confirmed it. Here we go! | ||
6018 | ((LLAgent *) userdata)->teleportHome(); | ||
6019 | } | ||
6020 | } | ||
6021 | |||
6022 | |||
6001 | void LLAgent::setTeleportState(ETeleportState state) | 6023 | void LLAgent::setTeleportState(ETeleportState state) |
6002 | { | 6024 | { |
6003 | mTeleportState = state; | 6025 | mTeleportState = state; |
@@ -7482,6 +7504,25 @@ void LLAgent::userRemoveWearable( void* userdata ) | |||
7482 | } | 7504 | } |
7483 | } | 7505 | } |
7484 | 7506 | ||
7507 | |||
7508 | // static | ||
7509 | void LLAgent::userRemoveAllClothesConfirm() | ||
7510 | { | ||
7511 | gViewerWindow->alertXml("ConfirmRemoveAllClothes", | ||
7512 | LLAgent::userRemoveAllClothesCallback, NULL); | ||
7513 | } | ||
7514 | |||
7515 | // static | ||
7516 | void LLAgent::userRemoveAllClothesCallback(S32 option, void *userdata) | ||
7517 | { | ||
7518 | if( option == 0 ) | ||
7519 | { | ||
7520 | // They confirmed it. Here we go! | ||
7521 | LLAgent::userRemoveAllClothes(NULL); | ||
7522 | } | ||
7523 | } | ||
7524 | |||
7525 | |||
7485 | void LLAgent::userRemoveAllClothes( void* userdata ) | 7526 | void LLAgent::userRemoveAllClothes( void* userdata ) |
7486 | { | 7527 | { |
7487 | // We have to do this up front to avoid having to deal with the case of multiple wearables being dirty. | 7528 | // We have to do this up front to avoid having to deal with the case of multiple wearables being dirty. |