diff options
Diffstat (limited to 'linden/indra/newview/llfloaterregioninfo.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterregioninfo.cpp | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp index 70e975e..571bcac 100644 --- a/linden/indra/newview/llfloaterregioninfo.cpp +++ b/linden/indra/newview/llfloaterregioninfo.cpp | |||
@@ -1430,11 +1430,21 @@ void LLPanelEstateInfo::addAllowedGroup(S32 option, void* user_data) | |||
1430 | { | 1430 | { |
1431 | if (option != 0) return; | 1431 | if (option != 0) return; |
1432 | 1432 | ||
1433 | LLFloaterGroups* widget; | 1433 | LLPanelEstateInfo* panelp = (LLPanelEstateInfo*)user_data; |
1434 | widget = LLFloaterGroups::show(gAgent.getID(), LLFloaterGroups::CHOOSE_ONE); | 1434 | |
1435 | LLFloater* parent_floater = gFloaterView->getParentFloater(panelp); | ||
1436 | |||
1437 | LLFloaterGroupPicker* widget; | ||
1438 | widget = LLFloaterGroupPicker::showInstance(LLSD(gAgent.getID())); | ||
1435 | if (widget) | 1439 | if (widget) |
1436 | { | 1440 | { |
1437 | widget->setOkCallback(addAllowedGroup2, user_data); | 1441 | widget->setSelectCallback(addAllowedGroup2, user_data); |
1442 | if (parent_floater) | ||
1443 | { | ||
1444 | LLRect new_rect = gFloaterView->findNeighboringPosition(parent_floater, widget); | ||
1445 | widget->setOrigin(new_rect.mLeft, new_rect.mBottom); | ||
1446 | parent_floater->addDependentFloater(widget); | ||
1447 | } | ||
1438 | } | 1448 | } |
1439 | } | 1449 | } |
1440 | 1450 | ||
@@ -1930,6 +1940,7 @@ BOOL LLPanelEstateInfo::postBuild() | |||
1930 | initCtrl("deny_anonymous"); | 1940 | initCtrl("deny_anonymous"); |
1931 | initCtrl("deny_identified"); | 1941 | initCtrl("deny_identified"); |
1932 | initCtrl("deny_transacted"); | 1942 | initCtrl("deny_transacted"); |
1943 | initCtrl("voice_chat_check"); | ||
1933 | 1944 | ||
1934 | initHelpBtn("estate_manager_help", "HelpEstateEstateManager"); | 1945 | initHelpBtn("estate_manager_help", "HelpEstateEstateManager"); |
1935 | initHelpBtn("use_global_time_help", "HelpEstateUseGlobalTime"); | 1946 | initHelpBtn("use_global_time_help", "HelpEstateUseGlobalTime"); |
@@ -1939,6 +1950,7 @@ BOOL LLPanelEstateInfo::postBuild() | |||
1939 | initHelpBtn("allow_resident_help", "HelpEstateAllowResident"); | 1950 | initHelpBtn("allow_resident_help", "HelpEstateAllowResident"); |
1940 | initHelpBtn("allow_group_help", "HelpEstateAllowGroup"); | 1951 | initHelpBtn("allow_group_help", "HelpEstateAllowGroup"); |
1941 | initHelpBtn("ban_resident_help", "HelpEstateBanResident"); | 1952 | initHelpBtn("ban_resident_help", "HelpEstateBanResident"); |
1953 | initHelpBtn("voice_chat_help", "HelpEstateVoiceChat"); | ||
1942 | 1954 | ||
1943 | // set up the use global time checkbox | 1955 | // set up the use global time checkbox |
1944 | childSetCommitCallback("use_global_time_check", onChangeUseGlobalTime, this); | 1956 | childSetCommitCallback("use_global_time_check", onChangeUseGlobalTime, this); |
@@ -2104,6 +2116,9 @@ void LLPanelEstateInfo::setEstateFlags(U32 flags) | |||
2104 | { | 2116 | { |
2105 | childSetValue("externally_visible_check", LLSD(flags & REGION_FLAGS_EXTERNALLY_VISIBLE ? TRUE : FALSE) ); | 2117 | childSetValue("externally_visible_check", LLSD(flags & REGION_FLAGS_EXTERNALLY_VISIBLE ? TRUE : FALSE) ); |
2106 | childSetValue("fixed_sun_check", LLSD(flags & REGION_FLAGS_SUN_FIXED ? TRUE : FALSE) ); | 2118 | childSetValue("fixed_sun_check", LLSD(flags & REGION_FLAGS_SUN_FIXED ? TRUE : FALSE) ); |
2119 | childSetValue( | ||
2120 | "voice_chat_check", | ||
2121 | LLSD(flags & REGION_FLAGS_ALLOW_VOICE ? TRUE : FALSE)); | ||
2107 | childSetValue("allow_direct_teleport", LLSD(flags & REGION_FLAGS_ALLOW_DIRECT_TELEPORT ? TRUE : FALSE) ); | 2122 | childSetValue("allow_direct_teleport", LLSD(flags & REGION_FLAGS_ALLOW_DIRECT_TELEPORT ? TRUE : FALSE) ); |
2108 | childSetValue("deny_anonymous", LLSD(flags & REGION_FLAGS_DENY_ANONYMOUS ? TRUE : FALSE) ); | 2123 | childSetValue("deny_anonymous", LLSD(flags & REGION_FLAGS_DENY_ANONYMOUS ? TRUE : FALSE) ); |
2109 | childSetValue("deny_identified", LLSD(flags & REGION_FLAGS_DENY_IDENTIFIED ? TRUE : FALSE) ); | 2124 | childSetValue("deny_identified", LLSD(flags & REGION_FLAGS_DENY_IDENTIFIED ? TRUE : FALSE) ); |
@@ -2119,6 +2134,11 @@ U32 LLPanelEstateInfo::computeEstateFlags() | |||
2119 | { | 2134 | { |
2120 | flags |= REGION_FLAGS_EXTERNALLY_VISIBLE; | 2135 | flags |= REGION_FLAGS_EXTERNALLY_VISIBLE; |
2121 | } | 2136 | } |
2137 | |||
2138 | if ( childGetValue("voice_chat_check").asBoolean() ) | ||
2139 | { | ||
2140 | flags |= REGION_FLAGS_ALLOW_VOICE; | ||
2141 | } | ||
2122 | 2142 | ||
2123 | if (childGetValue("allow_direct_teleport").asBoolean()) | 2143 | if (childGetValue("allow_direct_teleport").asBoolean()) |
2124 | { | 2144 | { |