aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Churchill2008-09-20 12:27:44 -0500
committerJacek Antonelli2008-09-20 12:27:44 -0500
commit7d5d0904c14a9185293386218dd707a3e1cad40e (patch)
tree325c5e0846f4eaad47479c2c079a6aa817e0bf65
parentNew optional SConstruct flag to specify an exact path to build (diff)
downloadmeta-impy-7d5d0904c14a9185293386218dd707a3e1cad40e.zip
meta-impy-7d5d0904c14a9185293386218dd707a3e1cad40e.tar.gz
meta-impy-7d5d0904c14a9185293386218dd707a3e1cad40e.tar.bz2
meta-impy-7d5d0904c14a9185293386218dd707a3e1cad40e.tar.xz
VWR-2072: New Feature -> UI -> IM -> Teleport (other person) Button.
Diffstat (limited to '')
-rw-r--r--ChangeLog.txt9
-rw-r--r--linden/indra/newview/llimpanel.cpp22
-rw-r--r--linden/indra/newview/llimpanel.h1
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml3
4 files changed, 35 insertions, 0 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 31bfe4a..3990c05 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,12 @@
12008-09-20 Paul Churchill <pnolan@dsl.pipex.com>
2
3 * linden/indra/newview/llimpanel.cpp:
4 VWR-2072: New Feature -> UI -> IM -> Teleport (other person) Button.
5 * linden/indra/newview/llimpanel.h:
6 Ditto.
7 * linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml:
8 Ditto.
9
12008-09-19 Jacek Antonelli <jacek.antonelli@gmail.com> 102008-09-19 Jacek Antonelli <jacek.antonelli@gmail.com>
2 11
3 * linden/indra/SConstruct: 12 * linden/indra/SConstruct:
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp
index ae8bd4b..46a64d4 100644
--- a/linden/indra/newview/llimpanel.cpp
+++ b/linden/indra/newview/llimpanel.cpp
@@ -1246,6 +1246,7 @@ BOOL LLFloaterIMPanel::postBuild()
1246 childSetAction("end_call_btn", onClickEndCall, this); 1246 childSetAction("end_call_btn", onClickEndCall, this);
1247 childSetAction("send_btn", onClickSend, this); 1247 childSetAction("send_btn", onClickSend, this);
1248 childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); 1248 childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this);
1249 childSetAction("offer_tp_btn", onClickOfferTeleport, this);
1249 1250
1250 childSetAction("moderator_kick_speaker", onKickSpeaker, this); 1251 childSetAction("moderator_kick_speaker", onKickSpeaker, this);
1251 //LLButton* close_btn = getChild<LLButton>("close_btn"); 1252 //LLButton* close_btn = getChild<LLButton>("close_btn");
@@ -1395,6 +1396,20 @@ void LLFloaterIMPanel::draw()
1395 childSetValue("mute_btn", LLMuteList::getInstance()->isMuted(mOtherParticipantUUID, LLMute::flagVoiceChat)); 1396 childSetValue("mute_btn", LLMuteList::getInstance()->isMuted(mOtherParticipantUUID, LLMute::flagVoiceChat));
1396 childSetVisible("mute_btn", LLVoiceClient::voiceEnabled() && mVoiceChannel->isActive()); 1397 childSetVisible("mute_btn", LLVoiceClient::voiceEnabled() && mVoiceChannel->isActive());
1397 } 1398 }
1399
1400 // enable 'offer teleport' button
1401 if(mDialog == IM_NOTHING_SPECIAL)
1402 {
1403 const LLRelationship* info = NULL;
1404 info = LLAvatarTracker::instance().getBuddyInfo(mOtherParticipantUUID);
1405 childSetEnabled("offer_tp_btn", info->isOnline());
1406 }
1407 else
1408 {
1409 childSetEnabled("offer_tp_btn", false);
1410 childSetVisible("offer_tp_button", false);
1411 }
1412
1398 LLFloater::draw(); 1413 LLFloater::draw();
1399} 1414}
1400 1415
@@ -1694,6 +1709,13 @@ void LLFloaterIMPanel::onTabClick(void* userdata)
1694 self->setInputFocus(TRUE); 1709 self->setInputFocus(TRUE);
1695} 1710}
1696 1711
1712// static
1713void LLFloaterIMPanel::onClickOfferTeleport(void* userdata)
1714{
1715 LLFloaterIMPanel* self = (LLFloaterIMPanel*) userdata;
1716
1717 handle_lure(self->mOtherParticipantUUID);
1718}
1697 1719
1698// static 1720// static
1699void LLFloaterIMPanel::onClickProfile( void* userdata ) 1721void LLFloaterIMPanel::onClickProfile( void* userdata )
diff --git a/linden/indra/newview/llimpanel.h b/linden/indra/newview/llimpanel.h
index 2ed866b..e544154 100644
--- a/linden/indra/newview/llimpanel.h
+++ b/linden/indra/newview/llimpanel.h
@@ -231,6 +231,7 @@ public:
231 231
232 static void onClickProfile( void* userdata ); 232 static void onClickProfile( void* userdata );
233 static void onClickGroupInfo( void* userdata ); 233 static void onClickGroupInfo( void* userdata );
234 static void onClickOfferTeleport( void* userdata );
234 static void onClickClose( void* userdata ); 235 static void onClickClose( void* userdata );
235 static void onClickStartCall( void* userdata ); 236 static void onClickStartCall( void* userdata );
236 static void onClickEndCall( void* userdata ); 237 static void onClickEndCall( void* userdata );
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml b/linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml
index cb27be6..3a660ab 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml
@@ -48,6 +48,9 @@
48 image_unselected="icn_speaker_dark.tga" label="" left_delta="56" 48 image_unselected="icn_speaker_dark.tga" label="" left_delta="56"
49 name="mute_btn" tool_tip="Mute voice" width="25" /> 49 name="mute_btn" tool_tip="Mute voice" width="25" />
50 </panel> 50 </panel>
51 <button bottom_delta="0" follows="right|top" font="SansSerif"
52 halign="center" bottom ="-40" height="20" label="Offer Teleport" right="-5"
53 mouse_opaque="true" name="offer_tp_btn" scale_image="true" width="102" />
51 <text_editor type="string" length="1" bg_readonly_color="ChatHistoryBgColor" bg_writeable_color="ChatHistoryBgColor" 54 <text_editor type="string" length="1" bg_readonly_color="ChatHistoryBgColor" bg_writeable_color="ChatHistoryBgColor"
52 bottom="30" embedded_items="false" enabled="false" 55 bottom="30" embedded_items="false" enabled="false"
53 follows="left|top|right|bottom" font="SansSerif" height="221" left="5" 56 follows="left|top|right|bottom" font="SansSerif" height="221" left="5"