diff options
author | Jacek Antonelli | 2010-01-04 23:11:05 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-01-04 23:11:05 -0600 |
commit | 09e719ccf7c835a81aa52a99c2adc43fd29b6a8a (patch) | |
tree | 6511b0b0596173e0f16ce542ba50aae81e19a9d9 /linden | |
parent | Tidied up floater_pay.xml code and UI layout. (diff) | |
download | meta-impy-09e719ccf7c835a81aa52a99c2adc43fd29b6a8a.zip meta-impy-09e719ccf7c835a81aa52a99c2adc43fd29b6a8a.tar.gz meta-impy-09e719ccf7c835a81aa52a99c2adc43fd29b6a8a.tar.bz2 meta-impy-09e719ccf7c835a81aa52a99c2adc43fd29b6a8a.tar.xz |
Implemented VWR-9597 (optional message when paying someone).
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llgivemoney.cpp | 9 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_pay.xml | 18 |
2 files changed, 25 insertions, 2 deletions
diff --git a/linden/indra/newview/llgivemoney.cpp b/linden/indra/newview/llgivemoney.cpp index 6c14f49..ed67c97 100644 --- a/linden/indra/newview/llgivemoney.cpp +++ b/linden/indra/newview/llgivemoney.cpp | |||
@@ -494,8 +494,15 @@ void LLFloaterPay::give(S32 amount) | |||
494 | } | 494 | } |
495 | else | 495 | else |
496 | { | 496 | { |
497 | // Custom message typed in by the user. | ||
498 | std::string desc = LLStringUtil::null; | ||
499 | if (!childGetText("message").empty()) | ||
500 | { | ||
501 | desc = childGetText("message"); | ||
502 | } | ||
503 | |||
497 | // just transfer the L$ | 504 | // just transfer the L$ |
498 | mCallback(mTargetUUID, gAgent.getRegion(), amount, mTargetIsGroup, TRANS_GIFT, LLStringUtil::null); | 505 | mCallback(mTargetUUID, gAgent.getRegion(), amount, mTargetIsGroup, TRANS_GIFT, desc); |
499 | 506 | ||
500 | // check if the payee needs to be unmuted | 507 | // check if the payee needs to be unmuted |
501 | LLMuteList::getInstance()->autoRemove(mTargetUUID, LLMuteList::AR_MONEY); | 508 | LLMuteList::getInstance()->autoRemove(mTargetUUID, LLMuteList::AR_MONEY); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_pay.xml b/linden/indra/newview/skins/default/xui/en-us/floater_pay.xml index aa62565..a8739f4 100644 --- a/linden/indra/newview/skins/default/xui/en-us/floater_pay.xml +++ b/linden/indra/newview/skins/default/xui/en-us/floater_pay.xml | |||
@@ -3,7 +3,7 @@ | |||
3 | <floater name="Give Money" title="Pay resident: [FIRST] [LAST]" | 3 | <floater name="Give Money" title="Pay resident: [FIRST] [LAST]" |
4 | rect_control="FloaterPayRectB" | 4 | rect_control="FloaterPayRectB" |
5 | can_minimize="true" can_resize="false" | 5 | can_minimize="true" can_resize="false" |
6 | bottom="-197" left="439" height="155" width="300" | 6 | bottom="-197" left="439" height="185" width="300" |
7 | min_height="100" min_width="100"> | 7 | min_height="100" min_width="100"> |
8 | 8 | ||
9 | 9 | ||
@@ -37,6 +37,22 @@ | |||
37 | bevel_style="in" border_thickness="1" follows="top|left" /> | 37 | bevel_style="in" border_thickness="1" follows="top|left" /> |
38 | 38 | ||
39 | 39 | ||
40 | <text name="message text" type="string" length="1" | ||
41 | bottom_delta="-32" left="15" height="18" width="60" | ||
42 | v_pad="0" h_pad="0" bg_visible="false" drop_shadow_visible="true" | ||
43 | border_visible="false" border_drop_shadow_visible="false" | ||
44 | follows="left|top" font="SansSerif" halign="left"> | ||
45 | Message: | ||
46 | </text> | ||
47 | |||
48 | <line_editor name="message" max_length="140" | ||
49 | bottom_delta="1" left_delta="65" height="18" width="205" | ||
50 | bevel_style="in" border_style="line" border_thickness="1" | ||
51 | follows="left|top|right" font="SansSerif" | ||
52 | handle_edit_keys_directly="false" | ||
53 | select_all_on_focus_received="false" select_on_focus="false" /> | ||
54 | |||
55 | |||
40 | <text name="amount text" type="string" length="1" | 56 | <text name="amount text" type="string" length="1" |
41 | bottom_delta="-28" left="15" height="18" width="60" | 57 | bottom_delta="-28" left="15" height="18" width="60" |
42 | v_pad="0" h_pad="0" bg_visible="false" drop_shadow_visible="true" | 58 | v_pad="0" h_pad="0" bg_visible="false" drop_shadow_visible="true" |