diff options
author | McCabe Maxsted | 2009-09-27 17:18:54 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-27 17:18:54 -0700 |
commit | 3bec5ebf4bd204fd9afe6fff2a42deef499a1e22 (patch) | |
tree | 55db50532020f60799b5eb975a8aff18e6c093fa /linden/indra | |
parent | Fixed bad merge in llnetmap.cpp (diff) | |
download | meta-impy-3bec5ebf4bd204fd9afe6fff2a42deef499a1e22.zip meta-impy-3bec5ebf4bd204fd9afe6fff2a42deef499a1e22.tar.gz meta-impy-3bec5ebf4bd204fd9afe6fff2a42deef499a1e22.tar.bz2 meta-impy-3bec5ebf4bd204fd9afe6fff2a42deef499a1e22.tar.xz |
Show disabled buttons for own profile rather than hiding them
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llpanelavatar.cpp | 61 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml | 2 |
2 files changed, 41 insertions, 22 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index e101ea2..5fed44c 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp | |||
@@ -1318,14 +1318,6 @@ void LLPanelAvatar::setOnlineStatus(EOnlineStatus online_status) | |||
1318 | 1318 | ||
1319 | mPanelSecondLife->childSetVisible("online_yes", (online_status == ONLINE_STATUS_YES)); | 1319 | mPanelSecondLife->childSetVisible("online_yes", (online_status == ONLINE_STATUS_YES)); |
1320 | 1320 | ||
1321 | // Since setOnlineStatus gets called after setAvatarID | ||
1322 | // need to make sure that "Offer Teleport" doesn't get set | ||
1323 | // to TRUE again for yourself | ||
1324 | if (mAvatarID != gAgent.getID()) | ||
1325 | { | ||
1326 | childSetVisible("Offer Teleport...",TRUE); | ||
1327 | } | ||
1328 | |||
1329 | BOOL in_prelude = gAgent.inPrelude(); | 1321 | BOOL in_prelude = gAgent.inPrelude(); |
1330 | if(gAgent.isGodlike()) | 1322 | if(gAgent.isGodlike()) |
1331 | { | 1323 | { |
@@ -1342,6 +1334,18 @@ void LLPanelAvatar::setOnlineStatus(EOnlineStatus online_status) | |||
1342 | childSetEnabled("Offer Teleport...", TRUE); | 1334 | childSetEnabled("Offer Teleport...", TRUE); |
1343 | childSetToolTip("Offer Teleport...", childGetValue("TeleportNormal").asString()); | 1335 | childSetToolTip("Offer Teleport...", childGetValue("TeleportNormal").asString()); |
1344 | } | 1336 | } |
1337 | |||
1338 | // Since setOnlineStatus gets called after setAvatarID | ||
1339 | // need to make sure that "Offer Teleport" doesn't get set | ||
1340 | // to TRUE again for yourself | ||
1341 | if (mAvatarID != gAgent.getID()) | ||
1342 | { | ||
1343 | childSetVisible("Offer Teleport...",TRUE); | ||
1344 | } | ||
1345 | else | ||
1346 | { | ||
1347 | childSetEnabled("Offer Teleport...", FALSE); | ||
1348 | } | ||
1345 | } | 1349 | } |
1346 | 1350 | ||
1347 | void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name, | 1351 | void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name, |
@@ -1434,21 +1438,21 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name | |||
1434 | childSetVisible("Cancel",FALSE); | 1438 | childSetVisible("Cancel",FALSE); |
1435 | childSetEnabled("Cancel",FALSE); | 1439 | childSetEnabled("Cancel",FALSE); |
1436 | } | 1440 | } |
1437 | childSetVisible("Instant Message...",FALSE); | 1441 | //childSetVisible("Instant Message...",FALSE); |
1438 | childSetEnabled("Instant Message...",FALSE); | 1442 | childSetEnabled("Instant Message...",FALSE); |
1439 | childSetVisible("Invite to Group...",FALSE); | 1443 | //childSetVisible("Invite to Group...",FALSE); |
1440 | childSetEnabled("Invite to Group...",FALSE); | 1444 | childSetEnabled("Invite to Group...",FALSE); |
1441 | childSetVisible("Mute",FALSE); | 1445 | //childSetVisible("Mute",FALSE); |
1442 | childSetEnabled("Mute",FALSE); | 1446 | childSetEnabled("Mute",FALSE); |
1443 | childSetVisible("Offer Teleport...",FALSE); | 1447 | //childSetVisible("Offer Teleport...",FALSE); |
1444 | childSetEnabled("Offer Teleport...",FALSE); | 1448 | childSetEnabled("Offer Teleport...",FALSE); |
1445 | childSetVisible("drop target",FALSE); | 1449 | //childSetVisible("drop target",FALSE); |
1446 | childSetEnabled("drop target",FALSE); | 1450 | childSetEnabled("drop target",FALSE); |
1447 | childSetVisible("Find on Map",FALSE); | 1451 | //childSetVisible("Find on Map",FALSE); |
1448 | childSetEnabled("Find on Map",FALSE); | 1452 | childSetEnabled("Find on Map",FALSE); |
1449 | childSetVisible("Add Friend...",FALSE); | 1453 | //childSetVisible("Add Friend...",FALSE); |
1450 | childSetEnabled("Add Friend...",FALSE); | 1454 | childSetEnabled("Add Friend...",FALSE); |
1451 | childSetVisible("Pay...",FALSE); | 1455 | //childSetVisible("Pay...",FALSE); |
1452 | childSetEnabled("Pay...",FALSE); | 1456 | childSetEnabled("Pay...",FALSE); |
1453 | childSetVisible("Kick",FALSE); | 1457 | childSetVisible("Kick",FALSE); |
1454 | childSetEnabled("Kick",FALSE); | 1458 | childSetEnabled("Kick",FALSE); |
@@ -1819,12 +1823,27 @@ void LLPanelAvatar::processAvatarPropertiesReply(LLMessageSystem *msg, void**) | |||
1819 | { | 1823 | { |
1820 | continue; | 1824 | continue; |
1821 | } | 1825 | } |
1822 | self->childSetEnabled("Instant Message...",TRUE); | ||
1823 | self->childSetEnabled("Invite to Group...",TRUE); | ||
1824 | self->childSetEnabled("Pay...",TRUE); | ||
1825 | self->childSetEnabled("Mute",TRUE); | ||
1826 | 1826 | ||
1827 | self->childSetEnabled("drop target",TRUE); | 1827 | if (self->mAvatarID == agent_id) |
1828 | { | ||
1829 | self->childSetEnabled("Instant Message...",FALSE); | ||
1830 | self->childSetEnabled("Invite to Group...",FALSE); | ||
1831 | self->childSetEnabled("Pay...",FALSE); | ||
1832 | self->childSetEnabled("Mute",FALSE); | ||
1833 | |||
1834 | self->childSetVisible("drop target",FALSE); | ||
1835 | self->childSetEnabled("drop target",FALSE); | ||
1836 | } | ||
1837 | else | ||
1838 | { | ||
1839 | self->childSetEnabled("Instant Message...",TRUE); | ||
1840 | self->childSetEnabled("Invite to Group...",TRUE); | ||
1841 | self->childSetEnabled("Pay...",TRUE); | ||
1842 | self->childSetEnabled("Mute",TRUE); | ||
1843 | |||
1844 | self->childSetVisible("drop target",TRUE); | ||
1845 | self->childSetEnabled("drop target",TRUE); | ||
1846 | } | ||
1828 | 1847 | ||
1829 | self->mHaveProperties = TRUE; | 1848 | self->mHaveProperties = TRUE; |
1830 | self->enableOKIfReady(); | 1849 | self->enableOKIfReady(); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml b/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml index 2ea8890..6bcd7a5 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_avatar.xml | |||
@@ -148,7 +148,7 @@ | |||
148 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 148 | <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
149 | bottom_delta="40" drop_shadow_visible="true" follows="left|top" | 149 | bottom_delta="40" drop_shadow_visible="true" follows="left|top" |
150 | font="SansSerifSmall" h_pad="0" halign="center" height="16" right="-22" | 150 | font="SansSerifSmall" h_pad="0" halign="center" height="16" right="-22" |
151 | mouse_opaque="true" name="Give inventory" | 151 | mouse_opaque="true" name="drop target" |
152 | tool_tip="Drop inventory items here to give them to this resident." v_pad="2" | 152 | tool_tip="Drop inventory items here to give them to this resident." v_pad="2" |
153 | width="115"> | 153 | width="115"> |
154 | Drop inventory here | 154 | Drop inventory here |