aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/newview/llgivemoney.cpp3
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_pay.xml117
3 files changed, 78 insertions, 48 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 7eaaa42..6af0465 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,11 @@
12010-01-04 Jacek Antonelli <jacek.antonelli@gmail.com> 12010-01-04 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * Tidied up floater_pay.xml code and UI layout.
4
5 modified: linden/indra/newview/llgivemoney.cpp
6 modified: linden/indra/newview/skins/default/xui/en-us/floater_pay.xml
7
8
3 * Added LLFloater::setTitleArg and LLFloater::setShortTitleArg. 9 * Added LLFloater::setTitleArg and LLFloater::setShortTitleArg.
4 This allows doing "[ARG]" replacement in floater titles. 10 This allows doing "[ARG]" replacement in floater titles.
5 11
diff --git a/linden/indra/newview/llgivemoney.cpp b/linden/indra/newview/llgivemoney.cpp
index dd28bda..6c14f49 100644
--- a/linden/indra/newview/llgivemoney.cpp
+++ b/linden/indra/newview/llgivemoney.cpp
@@ -408,6 +408,9 @@ void LLFloaterPay::onCacheOwnerName(const LLUUID& owner_id,
408 408
409 self->childSetTextArg("payee_name", "[FIRST]", firstname); 409 self->childSetTextArg("payee_name", "[FIRST]", firstname);
410 self->childSetTextArg("payee_name", "[LAST]", lastname); 410 self->childSetTextArg("payee_name", "[LAST]", lastname);
411
412 self->setTitleArg("[FIRST]", firstname);
413 self->setTitleArg("[LAST]", lastname);
411} 414}
412 415
413// static 416// static
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 8f0553d..aa62565 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
@@ -1,53 +1,74 @@
1<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 1<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2<floater bottom="-197" can_close="true" can_drag_on_left="false" can_minimize="false" 2
3 can_resize="false" enabled="true" height="140" left="439" min_height="100" 3<floater name="Give Money" title="Pay resident: [FIRST] [LAST]"
4 min_width="100" mouse_opaque="true" name="Give Money" 4 rect_control="FloaterPayRectB"
5 rect_control="FloaterPayRectB" title="" width="300"> 5 can_minimize="true" can_resize="false"
6 <button bottom="-74" enabled="true" font="SansSerif" halign="center" height="20" 6 bottom="-197" left="439" height="155" width="300"
7 label="L$1" label_selected="L$1" left="108" mouse_opaque="true" 7 min_height="100" min_width="100">
8 name="fastpay 1" scale_image="true" width="80" /> 8
9 <button bottom="-74" enabled="true" font="SansSerif" halign="center" height="20" 9
10 label="L$5" label_selected="L$5" left="203" mouse_opaque="true" 10 <text name="fastpay text" type="string" length="1"
11 name="fastpay 5" scale_image="true" width="80" /> 11 bottom="-50" left="15" height="18" width="60" v_pad="0" h_pad="0"
12 <button bottom="-98" enabled="true" font="SansSerif" halign="center" height="20" 12 bg_visible="false" drop_shadow_visible="true"
13 label="L$10" label_selected="L$10" left="108" mouse_opaque="true" 13 border_visible="false" border_drop_shadow_visible="false"
14 name="fastpay 10" scale_image="true" width="80" /> 14 follows="left|top" font="SansSerif" halign="left">
15 <button bottom="-98" enabled="true" font="SansSerif" halign="center" height="20" 15 Fast Pay:
16 label="L$20" label_selected="L$20" left="203" mouse_opaque="true"
17 name="fastpay 20" scale_image="true" width="80" />
18 <button bottom="-132" enabled="false" font="SansSerif" halign="center" height="20"
19 label="Pay" label_selected="Pay" left="120" mouse_opaque="true"
20 name="pay btn" scale_image="true" width="80" />
21 <button bottom="-132" enabled="true" font="SansSerif" halign="center" height="20"
22 label="Cancel" label_selected="Cancel" left="203" mouse_opaque="true"
23 name="cancel btn" scale_image="true" width="80" />
24 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
25 bottom="-25" drop_shadow_visible="true" enabled="true" follows="left|top"
26 font="SansSerif" h_pad="0" halign="left" height="18" left="12"
27 mouse_opaque="true" name="payee_label" v_pad="0" width="75">
28 Pay resident:
29 </text> 16 </text>
30 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 17
31 bottom="-25" drop_shadow_visible="true" enabled="true" follows="left|top" 18 <button name="fastpay 1" label="L$1"
32 font="SansSerif" h_pad="0" halign="left" height="18" left="85" 19 bottom_delta="0" left="85" height="20" width="80"
33 mouse_opaque="true" name="payee_name" v_pad="0" width="210"> 20 font="SansSerif" halign="center" scale_image="true" />
34 [FIRST] [LAST] 21
22 <button name="fastpay 5" label="L$5"
23 bottom_delta="0" left_delta="90" height="20" width="80"
24 font="SansSerif" halign="center" scale_image="true" />
25
26 <button name="fastpay 10" label="L$10"
27 bottom_delta="-25" left="85" height="20" width="80"
28 font="SansSerif" halign="center" scale_image="true" />
29
30 <button name="fastpay 20" label="L$20"
31 bottom_delta="0" left_delta="90" height="20" width="80"
32 font="SansSerif" halign="center" scale_image="true" />
33
34
35 <view_border name="separator left"
36 bottom_delta="-12" left="8" height="1" width="282"
37 bevel_style="in" border_thickness="1" follows="top|left" />
38
39
40 <text name="amount text" type="string" length="1"
41 bottom_delta="-28" 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 Amount:
35 </text> 46 </text>
36 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 47
37 bottom="-72" drop_shadow_visible="true" enabled="true" follows="left|top" 48 <text name="L$ text" type="string" length="1"
38 font="SansSerif" h_pad="0" halign="right" height="18" left="5" 49 bottom_delta="0" left_delta="62" height="18" width="15"
39 mouse_opaque="true" name="fastpay text" v_pad="0" width="95"> 50 v_pad="0" h_pad="0" bg_visible="false" drop_shadow_visible="true"
40 Fast Pay: 51 border_visible="false" border_drop_shadow_visible="false"
52 follows="left|top" font="SansSerif" halign="left">
53 L$
41 </text> 54 </text>
42 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 55
43 bottom="-130" drop_shadow_visible="true" enabled="true" follows="left|top" 56 <line_editor name="amount" max_length="9"
44 font="SansSerif" h_pad="0" halign="left" height="18" left="12" 57 bottom_delta="1" left_delta="18" height="18" width="70"
45 mouse_opaque="true" name="amount text" v_pad="0" width="75"> 58 bevel_style="in" border_style="line" border_thickness="1"
46 Amount: 59 follows="left|top|right" font="SansSerif"
47 </text> 60 handle_edit_keys_directly="false"
48 <line_editor bevel_style="in" border_style="line" border_thickness="1" bottom="-130" 61 select_all_on_focus_received="false" select_on_focus="false" />
49 enabled="true" follows="left|top|right" font="SansSerif" 62
50 handle_edit_keys_directly="false" height="18" left="58" max_length="9" 63 <button name="pay btn" label="Pay"
51 mouse_opaque="true" name="amount" select_all_on_focus_received="false" 64 bottom_delta="-2" left_delta="80" height="20" width="60"
52 select_on_focus="false" width="57" /> 65 font="SansSerif" halign="center" scale_image="true" />
66
67
68 <button name="cancel btn" label="Cancel"
69 bottom="5" right="-5" height="20" width="80"
70 font="SansSerif" halign="center" scale_image="true" />
71
72
73
53</floater> 74</floater>