diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterbuyland.cpp | 51 |
1 files changed, 3 insertions, 48 deletions
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp index 1b72d4e..ed7f619 100644 --- a/linden/indra/newview/llfloaterbuyland.cpp +++ b/linden/indra/newview/llfloaterbuyland.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2005-2007, Linden Research, Inc. | 5 | * Copyright (c) 2005-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -94,7 +95,6 @@ private: | |||
94 | // information about the parcel | 95 | // information about the parcel |
95 | bool mParcelValid; | 96 | bool mParcelValid; |
96 | bool mParcelIsForSale; | 97 | bool mParcelIsForSale; |
97 | bool mParcelIsFirstLand; | ||
98 | bool mParcelIsGroupLand; | 98 | bool mParcelIsGroupLand; |
99 | S32 mParcelGroupContribution; | 99 | S32 mParcelGroupContribution; |
100 | S32 mParcelPrice; | 100 | S32 mParcelPrice; |
@@ -371,7 +371,6 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
371 | LLParcel* parcel = mParcel->getParcel(); | 371 | LLParcel* parcel = mParcel->getParcel(); |
372 | mParcelValid = parcel && mRegion; | 372 | mParcelValid = parcel && mRegion; |
373 | mParcelIsForSale = false; | 373 | mParcelIsForSale = false; |
374 | mParcelIsFirstLand = false; | ||
375 | mParcelIsGroupLand = false; | 374 | mParcelIsGroupLand = false; |
376 | mParcelGroupContribution = 0; | 375 | mParcelGroupContribution = 0; |
377 | mParcelPrice = 0; | 376 | mParcelPrice = 0; |
@@ -405,7 +404,6 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
405 | { | 404 | { |
406 | mParcelActualArea = parcel->getArea(); | 405 | mParcelActualArea = parcel->getArea(); |
407 | mParcelIsForSale = parcel->getForSale(); | 406 | mParcelIsForSale = parcel->getForSale(); |
408 | mParcelIsFirstLand = parcel->getReservedForNewbie(); | ||
409 | mParcelIsGroupLand = parcel->getIsGroupOwned(); | 407 | mParcelIsGroupLand = parcel->getIsGroupOwned(); |
410 | mParcelPrice = mParcelIsForSale ? parcel->getSalePrice() : 0; | 408 | mParcelPrice = mParcelIsForSale ? parcel->getSalePrice() : 0; |
411 | 409 | ||
@@ -512,36 +510,6 @@ void LLFloaterBuyLandUI::updateParcelInfo() | |||
512 | } | 510 | } |
513 | } | 511 | } |
514 | 512 | ||
515 | /* | ||
516 | if ((mRegion->getRegionFlags() & REGION_FLAGS_BLOCK_LAND_RESELL) | ||
517 | && !gAgent.isGodlike()) | ||
518 | { | ||
519 | mCannotBuyReason = llformat( | ||
520 | "The region %s does not allow transfer of land.", | ||
521 | mRegion->getName().c_str() ); | ||
522 | return; | ||
523 | } | ||
524 | */ | ||
525 | |||
526 | if (parcel->getReservedForNewbie()) | ||
527 | { | ||
528 | if (mIsForGroup) | ||
529 | { | ||
530 | mCannotBuyReason = childGetText("first_time_group"); | ||
531 | return; | ||
532 | } | ||
533 | |||
534 | if (gStatusBar->getSquareMetersCommitted() > 0) | ||
535 | { | ||
536 | mCannotBuyReason == childGetText("first_time"); | ||
537 | return; | ||
538 | } | ||
539 | |||
540 | // *TODO: There should be a check based on the database value | ||
541 | // indra.user.ever_owned_land, only that value never makes it | ||
542 | // to the viewer, see SL-10728 | ||
543 | } | ||
544 | |||
545 | mCanBuy = true; | 513 | mCanBuy = true; |
546 | } | 514 | } |
547 | 515 | ||
@@ -1162,17 +1130,6 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1162 | message += childGetText("insufficient_land_credits"); | 1130 | message += childGetText("insufficient_land_credits"); |
1163 | 1131 | ||
1164 | } | 1132 | } |
1165 | else if (mAgentHasNeverOwnedLand) | ||
1166 | { | ||
1167 | if (mParcelIsFirstLand) | ||
1168 | { | ||
1169 | message += childGetText("first_purchase"); | ||
1170 | } | ||
1171 | else | ||
1172 | { | ||
1173 | message += childGetText("first_time_but_not_first_land"); | ||
1174 | } | ||
1175 | } | ||
1176 | else | 1133 | else |
1177 | { | 1134 | { |
1178 | 1135 | ||
@@ -1280,14 +1237,12 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1280 | 1237 | ||
1281 | } | 1238 | } |
1282 | 1239 | ||
1283 | //remove_contribution not in XML - ?! | ||
1284 | childSetValue("remove_contribution", LLSD(groupContributionEnough)); | 1240 | childSetValue("remove_contribution", LLSD(groupContributionEnough)); |
1285 | childSetEnabled("remove_contribution", groupContributionEnough); | 1241 | childSetEnabled("remove_contribution", groupContributionEnough); |
1286 | bool showRemoveContribution = mParcelIsGroupLand | 1242 | bool showRemoveContribution = mParcelIsGroupLand |
1287 | && (mParcelGroupContribution > 0); | 1243 | && (mParcelGroupContribution > 0); |
1288 | childSetText("remove_contribution", | 1244 | childSetLabelArg("remove_contribution", "[AMOUNT]", |
1289 | llformat("Remove %d square meters of contribution from group", | 1245 | llformat("%d", minContribution)); |
1290 | minContribution)); | ||
1291 | childSetVisible("remove_contribution", showRemoveContribution); | 1246 | childSetVisible("remove_contribution", showRemoveContribution); |
1292 | 1247 | ||
1293 | childShow("step_3"); | 1248 | childShow("step_3"); |