diff options
-rw-r--r-- | ChangeLog.txt | 5 | ||||
-rw-r--r-- | linden/indra/newview/llpanelavatar.cpp | 32 |
2 files changed, 25 insertions, 12 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 22cb1e8..f4a4837 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -22,6 +22,11 @@ | |||
22 | deleted: linden/indra/newview/skins/silver/xui/en-us/panel_avatar.xml | 22 | deleted: linden/indra/newview/skins/silver/xui/en-us/panel_avatar.xml |
23 | 23 | ||
24 | 24 | ||
25 | * Admin options now only show for other people's profiles. | ||
26 | |||
27 | modified: linden/indra/newview/llpanelavatar.cpp | ||
28 | |||
29 | |||
25 | 2009-09-08 McCabe Maxsted <hakushakukun@gmail.com> | 30 | 2009-09-08 McCabe Maxsted <hakushakukun@gmail.com> |
26 | 31 | ||
27 | * Created my own version of Emerald's chat channel tool. | 32 | * Created my own version of Emerald's chat channel tool. |
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index 8de2475..682a56f 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp | |||
@@ -1432,6 +1432,14 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name | |||
1432 | childSetEnabled("Add Friend...",FALSE); | 1432 | childSetEnabled("Add Friend...",FALSE); |
1433 | childSetVisible("Pay...",FALSE); | 1433 | childSetVisible("Pay...",FALSE); |
1434 | childSetEnabled("Pay...",FALSE); | 1434 | childSetEnabled("Pay...",FALSE); |
1435 | childSetVisible("Kick",FALSE); | ||
1436 | childSetEnabled("Kick",FALSE); | ||
1437 | childSetVisible("Freeze",FALSE); | ||
1438 | childSetEnabled("Freeze",FALSE); | ||
1439 | childSetVisible("Unfreeze",FALSE); | ||
1440 | childSetEnabled("Unfreeze",FALSE); | ||
1441 | childSetVisible("csr_btn", FALSE); | ||
1442 | childSetEnabled("csr_btn", FALSE); | ||
1435 | } | 1443 | } |
1436 | else | 1444 | else |
1437 | { | 1445 | { |
@@ -1471,20 +1479,20 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name | |||
1471 | childSetEnabled("Add Friend...", !avatar_is_friend); | 1479 | childSetEnabled("Add Friend...", !avatar_is_friend); |
1472 | childSetVisible("Pay...",TRUE); | 1480 | childSetVisible("Pay...",TRUE); |
1473 | childSetEnabled("Pay...",FALSE); | 1481 | childSetEnabled("Pay...",FALSE); |
1482 | |||
1483 | BOOL is_god = FALSE; | ||
1484 | if (gAgent.isGodlike()) is_god = TRUE; | ||
1485 | |||
1486 | childSetVisible("Kick", is_god); | ||
1487 | childSetEnabled("Kick", is_god); | ||
1488 | childSetVisible("Freeze", is_god); | ||
1489 | childSetEnabled("Freeze", is_god); | ||
1490 | childSetVisible("Unfreeze", is_god); | ||
1491 | childSetEnabled("Unfreeze", is_god); | ||
1492 | childSetVisible("csr_btn", is_god); | ||
1493 | childSetEnabled("csr_btn", is_god); | ||
1474 | } | 1494 | } |
1475 | } | 1495 | } |
1476 | |||
1477 | BOOL is_god = FALSE; | ||
1478 | if (gAgent.isGodlike()) is_god = TRUE; | ||
1479 | |||
1480 | childSetVisible("Kick", is_god); | ||
1481 | childSetEnabled("Kick", is_god); | ||
1482 | childSetVisible("Freeze", is_god); | ||
1483 | childSetEnabled("Freeze", is_god); | ||
1484 | childSetVisible("Unfreeze", is_god); | ||
1485 | childSetEnabled("Unfreeze", is_god); | ||
1486 | childSetVisible("csr_btn", is_god); | ||
1487 | childSetEnabled("csr_btn", is_god); | ||
1488 | } | 1496 | } |
1489 | 1497 | ||
1490 | 1498 | ||