aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-05-24 22:32:56 -0500
committerJacek Antonelli2009-05-25 18:37:34 -0500
commitf8b927f29f4adbee50ead87d26a9f0531231e540 (patch)
tree017975caf9fe5bc9cdcbc8e3cfe3e6e00837e06f /linden/indra/newview/llagent.cpp
parentMoved LLAgent::teleportHome() definition. (diff)
downloadmeta-impy-f8b927f29f4adbee50ead87d26a9f0531231e540.zip
meta-impy-f8b927f29f4adbee50ead87d26a9f0531231e540.tar.gz
meta-impy-f8b927f29f4adbee50ead87d26a9f0531231e540.tar.bz2
meta-impy-f8b927f29f4adbee50ead87d26a9f0531231e540.tar.xz
Added Teleport Home confirmation and callback methods.
LLAgent::teleportHomeConfirm() LLAgent::teleportHomeCallback()
Diffstat (limited to 'linden/indra/newview/llagent.cpp')
-rw-r--r--linden/indra/newview/llagent.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/llagent.cpp b/linden/indra/newview/llagent.cpp
index 7f6cd0c..46dc6f3 100644
--- a/linden/indra/newview/llagent.cpp
+++ b/linden/indra/newview/llagent.cpp
@@ -5932,6 +5932,21 @@ void LLAgent::teleportHome()
5932 teleportViaLandmark(LLUUID::null); 5932 teleportViaLandmark(LLUUID::null);
5933} 5933}
5934 5934
5935void LLAgent::teleportHomeConfirm()
5936{
5937 gViewerWindow->alertXml("ConfirmTeleportHome", LLAgent::teleportHomeCallback, (void *)this);
5938}
5939
5940// static
5941void LLAgent::teleportHomeCallback(S32 option, void *userdata)
5942{
5943 if( option == 0 )
5944 {
5945 // They confirmed it. Here we go!
5946 ((LLAgent *) userdata)->teleportHome();
5947 }
5948}
5949
5935 5950
5936void LLAgent::setTeleportState(ETeleportState state) 5951void LLAgent::setTeleportState(ETeleportState state)
5937{ 5952{