diff options
-rw-r--r-- | ChangeLog.txt | 12 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterbuyland.cpp | 24 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterland.cpp | 46 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml | 22 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml | 14 |
5 files changed, 82 insertions, 36 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 9c4daf3..1fbaa58 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -2,6 +2,18 @@ | |||
2 | =- 1.2.0 -= | 2 | =- 1.2.0 -= |
3 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | 3 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
4 | 4 | ||
5 | 2009-04-26 McCabe Maxsted <hakushakukun@gmail.com> | ||
6 | |||
7 | * linden/indra/newview/llfloaterbuyland.cpp: | ||
8 | Backported L$/sq meter info from 1.23. | ||
9 | * linden/indra/newview/llfloaterland.cpp: | ||
10 | Ditto. | ||
11 | * linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml: | ||
12 | Ditto. | ||
13 | * linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml: | ||
14 | Ditto. | ||
15 | |||
16 | |||
5 | 2009-04-22 McCabe Maxsted <hakushakukun@gmail.com> | 17 | 2009-04-22 McCabe Maxsted <hakushakukun@gmail.com> |
6 | 18 | ||
7 | Started 1.2.0 branch. | 19 | Started 1.2.0 branch. |
diff --git a/linden/indra/newview/llfloaterbuyland.cpp b/linden/indra/newview/llfloaterbuyland.cpp index de14129..df0c6bf 100644 --- a/linden/indra/newview/llfloaterbuyland.cpp +++ b/linden/indra/newview/llfloaterbuyland.cpp | |||
@@ -1020,14 +1020,24 @@ void LLFloaterBuyLandUI::refreshUI() | |||
1020 | 1020 | ||
1021 | childSetText("info_size", getString("meters_supports_object", string_args)); | 1021 | childSetText("info_size", getString("meters_supports_object", string_args)); |
1022 | 1022 | ||
1023 | F32 cost_per_sqm = 0.0f; | ||
1024 | if (mParcelActualArea > 0) | ||
1025 | { | ||
1026 | cost_per_sqm = (F32)mParcelPrice / (F32)mParcelActualArea; | ||
1027 | } | ||
1023 | 1028 | ||
1024 | childSetText("info_price", | 1029 | LLStringUtil::format_map_t info_price_args; |
1025 | llformat( | 1030 | info_price_args["[PRICE]"] = llformat("%d", mParcelPrice); |
1026 | "L$ %d%s", | 1031 | info_price_args["[PRICE_PER_SQM]"] = llformat("%.1f", cost_per_sqm); |
1027 | mParcelPrice, | 1032 | if (mParcelSoldWithObjects) |
1028 | mParcelSoldWithObjects | 1033 | { |
1029 | ? "\nsold with objects" | 1034 | info_price_args["[SOLD_WITH_OBJECTS]"] = getString("sold_with_objects"); |
1030 | : "")); | 1035 | } |
1036 | else | ||
1037 | { | ||
1038 | info_price_args["[SOLD_WITH_OBJECTS]"] = getString("sold_without_objects"); | ||
1039 | } | ||
1040 | childSetText("info_price", getString("info_price_string", info_price_args)); | ||
1031 | childSetVisible("info_price", mParcelIsForSale); | 1041 | childSetVisible("info_price", mParcelIsForSale); |
1032 | } | 1042 | } |
1033 | else | 1043 | else |
diff --git a/linden/indra/newview/llfloaterland.cpp b/linden/indra/newview/llfloaterland.cpp index 891cde7..74eb172 100644 --- a/linden/indra/newview/llfloaterland.cpp +++ b/linden/indra/newview/llfloaterland.cpp | |||
@@ -604,6 +604,25 @@ void LLPanelLandGeneral::refresh() | |||
604 | mBtnSellLand->setVisible(FALSE); | 604 | mBtnSellLand->setVisible(FALSE); |
605 | mBtnStopSellLand->setVisible(FALSE); | 605 | mBtnStopSellLand->setVisible(FALSE); |
606 | 606 | ||
607 | // show pricing information | ||
608 | S32 area; | ||
609 | S32 claim_price; | ||
610 | S32 rent_price; | ||
611 | F32 dwell; | ||
612 | LLViewerParcelMgr::getInstance()->getDisplayInfo(&area, | ||
613 | &claim_price, | ||
614 | &rent_price, | ||
615 | &for_sale, | ||
616 | &dwell); | ||
617 | |||
618 | // Area | ||
619 | LLUIString price = getString("area_size_text"); | ||
620 | price.setArg("[AREA]", llformat("%d",area)); | ||
621 | mTextPriceLabel->setText(getString("area_text")); | ||
622 | mTextPrice->setText(price.getString()); | ||
623 | |||
624 | mTextDwell->setText(llformat("%.0f", dwell)); | ||
625 | |||
607 | if (for_sale) | 626 | if (for_sale) |
608 | { | 627 | { |
609 | mSaleInfoForSale1->setVisible(TRUE); | 628 | mSaleInfoForSale1->setVisible(TRUE); |
@@ -619,7 +638,15 @@ void LLPanelLandGeneral::refresh() | |||
619 | mSaleInfoForSaleNoObjects->setVisible(TRUE); | 638 | mSaleInfoForSaleNoObjects->setVisible(TRUE); |
620 | } | 639 | } |
621 | mSaleInfoNotForSale->setVisible(FALSE); | 640 | mSaleInfoNotForSale->setVisible(FALSE); |
641 | |||
642 | F32 cost_per_sqm = 0.0f; | ||
643 | if (area > 0) | ||
644 | { | ||
645 | cost_per_sqm = (F32)parcel->getSalePrice() / (F32)area; | ||
646 | } | ||
647 | |||
622 | mSaleInfoForSale1->setTextArg("[PRICE]", llformat("%d", parcel->getSalePrice())); | 648 | mSaleInfoForSale1->setTextArg("[PRICE]", llformat("%d", parcel->getSalePrice())); |
649 | mSaleInfoForSale1->setTextArg("[PRICE_PER_SQM]", llformat("%.1f", cost_per_sqm)); | ||
623 | if (can_be_sold) | 650 | if (can_be_sold) |
624 | { | 651 | { |
625 | mBtnStopSellLand->setVisible(TRUE); | 652 | mBtnStopSellLand->setVisible(TRUE); |
@@ -645,25 +672,6 @@ void LLPanelLandGeneral::refresh() | |||
645 | mBtnBuyGroupLand->setEnabled( | 672 | mBtnBuyGroupLand->setEnabled( |
646 | LLViewerParcelMgr::getInstance()->canAgentBuyParcel(parcel, true)); | 673 | LLViewerParcelMgr::getInstance()->canAgentBuyParcel(parcel, true)); |
647 | 674 | ||
648 | // show pricing information | ||
649 | S32 area; | ||
650 | S32 claim_price; | ||
651 | S32 rent_price; | ||
652 | F32 dwell; | ||
653 | LLViewerParcelMgr::getInstance()->getDisplayInfo(&area, | ||
654 | &claim_price, | ||
655 | &rent_price, | ||
656 | &for_sale, | ||
657 | &dwell); | ||
658 | |||
659 | // Area | ||
660 | LLUIString price = getString("area_size_text"); | ||
661 | price.setArg("[AREA]", llformat("%d",area)); | ||
662 | mTextPriceLabel->setText(getString("area_text")); | ||
663 | mTextPrice->setText(price.getString()); | ||
664 | |||
665 | mTextDwell->setText(llformat("%.0f", dwell)); | ||
666 | |||
667 | if(region_owner) | 675 | if(region_owner) |
668 | { | 676 | { |
669 | mBtnReclaimLand->setEnabled( | 677 | mBtnReclaimLand->setEnabled( |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml b/linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml index fc1b747..f3fd708 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_about_land.xml | |||
@@ -93,8 +93,8 @@ | |||
93 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 93 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
94 | bottom="-180" drop_shadow_visible="true" enabled="true" follows="left|top" | 94 | bottom="-180" drop_shadow_visible="true" enabled="true" follows="left|top" |
95 | font="SansSerifSmall" h_pad="0" halign="left" height="16" left="76" | 95 | font="SansSerifSmall" h_pad="0" halign="left" height="16" left="76" |
96 | mouse_opaque="true" name="For Sale: Price L$[PRICE]." v_pad="0" width="206"> | 96 | mouse_opaque="true" name="For Sale: Price L$[PRICE]." v_pad="0" width="246"> |
97 | Price: L$[PRICE]. | 97 | Price: L$[PRICE] (L$[PRICE_PER_SQM]/sq.m.). |
98 | </text> | 98 | </text> |
99 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 99 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
100 | bottom="-200" drop_shadow_visible="true" enabled="false" follows="left|top" | 100 | bottom="-200" drop_shadow_visible="true" enabled="false" follows="left|top" |
@@ -467,7 +467,7 @@ Go to World menu > About Land or select another parcel to show its details. | |||
467 | <column name="online_status" width="-1" /> | 467 | <column name="online_status" width="-1" /> |
468 | <column name="name" dynamicwidth="true" label="Name" /> | 468 | <column name="name" dynamicwidth="true" label="Name" /> |
469 | <column name="count" label="Count" width="70" /> | 469 | <column name="count" label="Count" width="70" /> |
470 | <column label="Most Recent" width="160" /> | 470 | <column name="mostrecent" label="Most Recent" width="160" /> |
471 | </name_list> | 471 | </name_list> |
472 | </panel> | 472 | </panel> |
473 | <panel border="true" bottom="-349" enabled="true" follows="left|top|right|bottom" | 473 | <panel border="true" bottom="-349" enabled="true" follows="left|top|right|bottom" |
@@ -481,13 +481,17 @@ Go to World menu > About Land or select another parcel to show its details. | |||
481 | </text> | 481 | </text> |
482 | <check_box bottom="-40" enabled="true" follows="left|top" font="SansSerifSmall" | 482 | <check_box bottom="-40" enabled="true" follows="left|top" font="SansSerifSmall" |
483 | height="16" initial_value="false" label="Edit Terrain" left="14" | 483 | height="16" initial_value="false" label="Edit Terrain" left="14" |
484 | mouse_opaque="true" name="edit land check" radio_style="false" width="268" /> | 484 | mouse_opaque="true" name="edit land check" radio_style="false" |
485 | tool_tip="If checked, anyone can terraform your land. It is best to leave this unchecked, as you can always edit your own land." | ||
486 | width="268" /> | ||
485 | <check_box bottom="-60" enabled="true" follows="left|top" font="SansSerifSmall" | 487 | <check_box bottom="-60" enabled="true" follows="left|top" font="SansSerifSmall" |
486 | height="16" initial_value="false" label="Create Landmarks" left="14" | 488 | height="16" initial_value="false" label="Create Landmarks" left="14" |
487 | mouse_opaque="true" name="check landmark" radio_style="false" width="268" /> | 489 | mouse_opaque="true" name="check landmark" radio_style="false" width="268" /> |
488 | <check_box bottom="-80" enabled="true" follows="left|top" font="SansSerifSmall" | 490 | <check_box bottom="-80" enabled="true" follows="left|top" font="SansSerifSmall" |
489 | height="16" initial_value="false" label="Fly" left="14" mouse_opaque="true" | 491 | height="16" initial_value="false" label="Fly" left="14" mouse_opaque="true" |
490 | name="check fly" radio_style="false" width="268" /> | 492 | name="check fly" radio_style="false" |
493 | tool_tip="If checked, Residents can fly on your land. If unchecked, they can only fly into and over your land." | ||
494 | width="268" /> | ||
491 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 495 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
492 | bottom="-40" drop_shadow_visible="true" enabled="true" follows="left|top" | 496 | bottom="-40" drop_shadow_visible="true" enabled="true" follows="left|top" |
493 | font="SansSerifSmall" h_pad="0" halign="left" height="16" left="178" | 497 | font="SansSerifSmall" h_pad="0" halign="left" height="16" left="178" |
@@ -538,11 +542,13 @@ Go to World menu > About Land or select another parcel to show its details. | |||
538 | </text> | 542 | </text> |
539 | <check_box bottom="-120" enabled="true" follows="left|top" font="SansSerifSmall" | 543 | <check_box bottom="-120" enabled="true" follows="left|top" font="SansSerifSmall" |
540 | height="16" initial_value="false" label="Safe (no damage)" left="14" | 544 | height="16" initial_value="false" label="Safe (no damage)" left="14" |
541 | mouse_opaque="true" name="check safe" radio_style="false" width="268" /> | 545 | mouse_opaque="true" name="check safe" radio_style="false" |
546 | tool_tip="If checked, sets the land to Safe, disabling damage combat. If cleared, damage combat is enabled." | ||
547 | width="268" /> | ||
542 | <check_box bottom="-120" enabled="true" follows="left|top" font="SansSerifSmall" | 548 | <check_box bottom="-120" enabled="true" follows="left|top" font="SansSerifSmall" |
543 | height="16" initial_value="false" label="Restrict Pushing" left="178" | 549 | height="16" initial_value="false" label="Restrict Pushing" left="178" |
544 | mouse_opaque="true" name="PushRestrictCheck" radio_style="false" | 550 | mouse_opaque="true" name="PushRestrictCheck" radio_style="false" |
545 | tool_tip="llPushObject will only work through parcel owner scripts or on scripts where the pushee is the script owner." | 551 | tool_tip="Prevents scripts from pushing. Checking this option may be useful for preventing disruptive behavior on your land." |
546 | width="119" /> | 552 | width="119" /> |
547 | <check_box bottom="-140" enabled="true" follows="left|top" font="SansSerifSmall" | 553 | <check_box bottom="-140" enabled="true" follows="left|top" font="SansSerifSmall" |
548 | height="16" initial_value="false" | 554 | height="16" initial_value="false" |
@@ -622,7 +628,7 @@ Go to World menu > About Land or select another parcel to show its details. | |||
622 | <button bottom="-303" enabled="true" follows="left|top" font="SansSerifSmall" | 628 | <button bottom="-303" enabled="true" follows="left|top" font="SansSerifSmall" |
623 | halign="center" height="16" label="Set" label_selected="Set" left="236" | 629 | halign="center" height="16" label="Set" label_selected="Set" left="236" |
624 | mouse_opaque="true" name="Set" scale_image="true" | 630 | mouse_opaque="true" name="Set" scale_image="true" |
625 | tool_tip="Set the landing point to your avatar's location. It must be inside this land parcel." | 631 | tool_tip="Sets the landing point where visitors arrive. Sets to your avatar's location inside this parcel." |
626 | width="50" /> | 632 | width="50" /> |
627 | <button bottom="-303" enabled="true" follows="left|top" font="SansSerifSmall" | 633 | <button bottom="-303" enabled="true" follows="left|top" font="SansSerifSmall" |
628 | halign="center" height="16" label="Clear" label_selected="Clear" left="291" | 634 | halign="center" height="16" label="Clear" label_selected="Clear" left="291" |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml b/linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml index a7fd3ed..a0c82f9 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_buy_land.xml | |||
@@ -86,13 +86,15 @@ | |||
86 | </text> | 86 | </text> |
87 | <text bottom_delta="-5" follows="top|left" font="SansSerif" height="16" left_delta="50" | 87 | <text bottom_delta="-5" follows="top|left" font="SansSerif" height="16" left_delta="50" |
88 | name="info_price" right="400" > | 88 | name="info_price" right="400" > |
89 | L$ 1500, objects included | 89 | L$ 1500 |
90 | (L$ 1.1/sq.m.) | ||
91 | sold with objects | ||
90 | </text> | 92 | </text> |
91 | <text bottom="-180" follows="top|left" font="SansSerifHuge" height="24" left="16" | 93 | <text bottom="-180" follows="top|left" font="SansSerifHuge" height="24" left="16" |
92 | name="info_action" width="200"> | 94 | name="info_action" width="200"> |
93 | Buying this land will: | 95 | Buying this land will: |
94 | </text> | 96 | </text> |
95 | <pad height="10" /> | 97 | <pad height="6" /> |
96 | <icon follows="top|left" height="64" image_name="badge_note.j2c" left="0" | 98 | <icon follows="top|left" height="64" image_name="badge_note.j2c" left="0" |
97 | name="step_error" width="64" /> | 99 | name="step_error" width="64" /> |
98 | <text bottom_delta="-110" follows="top|left" height="160" left="72" | 100 | <text bottom_delta="-110" follows="top|left" height="160" left="72" |
@@ -267,6 +269,14 @@ supports [AMOUNT2] objects | |||
267 | <string name="sold_with_objects"> | 269 | <string name="sold_with_objects"> |
268 | sold with objects | 270 | sold with objects |
269 | </string> | 271 | </string> |
272 | <string name="sold_without_objects"> | ||
273 | objects not included | ||
274 | </string> | ||
275 | <string name="info_price_string"> | ||
276 | L$ [PRICE] | ||
277 | (L$ [PRICE_PER_SQM]/sq.m.) | ||
278 | [SOLD_WITH_OBJECTS] | ||
279 | </string> | ||
270 | <string name="insufficient_land_credits"> | 280 | <string name="insufficient_land_credits"> |
271 | The group [GROUP] will need sufficient contributed land use | 281 | The group [GROUP] will need sufficient contributed land use |
272 | credits to cover this parcel before the purchase will | 282 | credits to cover this parcel before the purchase will |