aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llfloaterfriends.cpp5
-rw-r--r--linden/indra/newview/llimpanel.cpp9
-rw-r--r--linden/indra/newview/llimpanel.h1
-rw-r--r--linden/indra/newview/llpanelavatar.cpp2
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_instant_message.xml3
5 files changed, 14 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloaterfriends.cpp b/linden/indra/newview/llfloaterfriends.cpp
index 8fdaa52..acdd5ce 100644
--- a/linden/indra/newview/llfloaterfriends.cpp
+++ b/linden/indra/newview/llfloaterfriends.cpp
@@ -325,14 +325,9 @@ void LLPanelFriends::refreshRightsChangeList()
325 { 325 {
326 if(!friend_status->isOnline()) 326 if(!friend_status->isOnline())
327 { 327 {
328 can_offer_teleport = false;
329 selected_friends_online = false; 328 selected_friends_online = false;
330 } 329 }
331 } 330 }
332 else // missing buddy info, don't allow any operations
333 {
334 can_offer_teleport = false;
335 }
336 } 331 }
337 332
338 if (num_selected == 0) // nothing selected 333 if (num_selected == 0) // nothing selected
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp
index c2b54f3..d8683ab 100644
--- a/linden/indra/newview/llimpanel.cpp
+++ b/linden/indra/newview/llimpanel.cpp
@@ -1247,6 +1247,7 @@ BOOL LLFloaterIMPanel::postBuild()
1247 childSetAction("end_call_btn", onClickEndCall, this); 1247 childSetAction("end_call_btn", onClickEndCall, this);
1248 childSetAction("send_btn", onClickSend, this); 1248 childSetAction("send_btn", onClickSend, this);
1249 childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this); 1249 childSetAction("toggle_active_speakers_btn", onClickToggleActiveSpeakers, this);
1250 childSetAction("offer_tp_btn", onClickOfferTeleport, this);
1250 1251
1251 childSetAction("moderator_kick_speaker", onKickSpeaker, this); 1252 childSetAction("moderator_kick_speaker", onKickSpeaker, this);
1252 //LLButton* close_btn = getChild<LLButton>("close_btn"); 1253 //LLButton* close_btn = getChild<LLButton>("close_btn");
@@ -1396,6 +1397,7 @@ void LLFloaterIMPanel::draw()
1396 childSetValue("mute_btn", LLMuteList::getInstance()->isMuted(mOtherParticipantUUID, LLMute::flagVoiceChat)); 1397 childSetValue("mute_btn", LLMuteList::getInstance()->isMuted(mOtherParticipantUUID, LLMute::flagVoiceChat));
1397 childSetVisible("mute_btn", LLVoiceClient::voiceEnabled() && mVoiceChannel->isActive()); 1398 childSetVisible("mute_btn", LLVoiceClient::voiceEnabled() && mVoiceChannel->isActive());
1398 } 1399 }
1400
1399 LLFloater::draw(); 1401 LLFloater::draw();
1400} 1402}
1401 1403
@@ -1732,6 +1734,13 @@ void LLFloaterIMPanel::onTabClick(void* userdata)
1732 self->setInputFocus(TRUE); 1734 self->setInputFocus(TRUE);
1733} 1735}
1734 1736
1737// static
1738void LLFloaterIMPanel::onClickOfferTeleport(void* userdata)
1739{
1740 LLFloaterIMPanel* self = (LLFloaterIMPanel*) userdata;
1741
1742 handle_lure(self->mOtherParticipantUUID);
1743}
1735 1744
1736// static 1745// static
1737void LLFloaterIMPanel::onClickProfile( void* userdata ) 1746void LLFloaterIMPanel::onClickProfile( void* userdata )
diff --git a/linden/indra/newview/llimpanel.h b/linden/indra/newview/llimpanel.h
index 974fc4d..5bac0bd 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/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp
index 7b21a15..76dbd1f 100644
--- a/linden/indra/newview/llpanelavatar.cpp
+++ b/linden/indra/newview/llpanelavatar.cpp
@@ -1318,7 +1318,7 @@ void LLPanelAvatar::setOnlineStatus(EOnlineStatus online_status)
1318 } 1318 }
1319 else 1319 else
1320 { 1320 {
1321 childSetEnabled("Offer Teleport...", (online_status == ONLINE_STATUS_YES)); 1321 childSetEnabled("Offer Teleport...", TRUE);
1322 childSetToolTip("Offer Teleport...", childGetValue("TeleportNormal").asString()); 1322 childSetToolTip("Offer Teleport...", childGetValue("TeleportNormal").asString());
1323 } 1323 }
1324} 1324}
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 cce06b5..c3058c4 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
@@ -51,6 +51,9 @@
51 image_unselected="icn_speaker_dark.tga" label="" left_delta="56" 51 image_unselected="icn_speaker_dark.tga" label="" left_delta="56"
52 name="mute_btn" tool_tip="Mute voice" width="25" /> 52 name="mute_btn" tool_tip="Mute voice" width="25" />
53 </panel> 53 </panel>
54 <button bottom_delta="0" follows="right|top" font="SansSerif"
55 halign="center" bottom ="-40" height="20" label="Offer Teleport" right="-5"
56 mouse_opaque="true" name="offer_tp_btn" scale_image="true" width="102" />
54 <text_editor type="string" length="1" bg_readonly_color="ChatHistoryBgColor" bg_writeable_color="ChatHistoryBgColor" 57 <text_editor type="string" length="1" bg_readonly_color="ChatHistoryBgColor" bg_writeable_color="ChatHistoryBgColor"
55 bottom="30" embedded_items="false" enabled="false" 58 bottom="30" embedded_items="false" enabled="false"
56 follows="left|top|right|bottom" font="SansSerif" height="221" left="5" 59 follows="left|top|right|bottom" font="SansSerif" height="221" left="5"