diff options
author | McCabe Maxsted | 2010-05-14 09:17:55 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:05:26 -0500 |
commit | a410d181501d8632f0cffa3c0e398034a7b5c896 (patch) | |
tree | e0f116684df6f27efb8bb4f5a1830b66d2bdd26c /linden/indra/newview | |
parent | add TP-to button to radar. Todo: consider to only allow for friends. (diff) | |
download | meta-impy-a410d181501d8632f0cffa3c0e398034a7b5c896.zip meta-impy-a410d181501d8632f0cffa3c0e398034a7b5c896.tar.gz meta-impy-a410d181501d8632f0cffa3c0e398034a7b5c896.tar.bz2 meta-impy-a410d181501d8632f0cffa3c0e398034a7b5c896.tar.xz |
Tidied up the radar xml some and increased the default width
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 10 | ||||
-rw-r--r-- | linden/indra/newview/panelradar.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_radar.xml | 52 |
3 files changed, 38 insertions, 28 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index 8f9ed8a..2bd56de 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -4932,17 +4932,17 @@ | |||
4932 | <key>FloaterMiniMapRect</key> | 4932 | <key>FloaterMiniMapRect</key> |
4933 | <map> | 4933 | <map> |
4934 | <key>Comment</key> | 4934 | <key>Comment</key> |
4935 | <string>Rectangle for world map</string> | 4935 | <string>Rectangle for the mini-map</string> |
4936 | <key>Persist</key> | 4936 | <key>Persist</key> |
4937 | <integer>1</integer> | 4937 | <integer>1</integer> |
4938 | <key>Type</key> | 4938 | <key>Type</key> |
4939 | <string>Rect</string> | 4939 | <string>Rect</string> |
4940 | <key>Value</key> | 4940 | <key>Value</key> |
4941 | <array> | 4941 | <array> |
4942 | <integer>0</integer> | 4942 | <integer>600</integer> |
4943 | <integer>225</integer> | 4943 | <integer>590</integer> |
4944 | <integer>200</integer> | 4944 | <integer>880</integer> |
4945 | <integer>0</integer> | 4945 | <integer>190</integer> |
4946 | </array> | 4946 | </array> |
4947 | </map> | 4947 | </map> |
4948 | <key>FloaterMoveRect2</key> | 4948 | <key>FloaterMoveRect2</key> |
diff --git a/linden/indra/newview/panelradar.cpp b/linden/indra/newview/panelradar.cpp index a7062b4..5ad15c6 100644 --- a/linden/indra/newview/panelradar.cpp +++ b/linden/indra/newview/panelradar.cpp | |||
@@ -270,12 +270,16 @@ void PanelRadar::populateRadar() | |||
270 | mRadarList->selectByID(mSelectedAvatar); | 270 | mRadarList->selectByID(mSelectedAvatar); |
271 | } | 271 | } |
272 | avatar_count << (int)avatar_ids.size(); | 272 | avatar_count << (int)avatar_ids.size(); |
273 | childSetText("avatars_in", ((int)avatar_ids.size() > 1) ? | ||
274 | getString("avatars_in_plural") : | ||
275 | getString("avatars_in_singular")); | ||
273 | } | 276 | } |
274 | else | 277 | else |
275 | { | 278 | { |
276 | mTypingAvatars.clear(); | 279 | mTypingAvatars.clear(); |
277 | mRadarList->addCommentText(getString("no_one_near"), ADD_TOP); | 280 | mRadarList->addCommentText(getString("no_one_near"), ADD_TOP); |
278 | avatar_count << "0"; | 281 | avatar_count << "0"; |
282 | childSetText("avatars_in", getString("avatars_in_plural")); | ||
279 | } | 283 | } |
280 | 284 | ||
281 | childSetText("lblAvatarCount", avatar_count.str()); | 285 | childSetText("lblAvatarCount", avatar_count.str()); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_radar.xml b/linden/indra/newview/skins/default/xui/en-us/panel_radar.xml index 1931354..1f1749e 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_radar.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_radar.xml | |||
@@ -21,6 +21,12 @@ | |||
21 | <string name="entering_sim_range"> | 21 | <string name="entering_sim_range"> |
22 | [NAME] has entered the sim ([DISTANCE]m) | 22 | [NAME] has entered the sim ([DISTANCE]m) |
23 | </string> | 23 | </string> |
24 | <string name="avatars_in_singular"> | ||
25 | avatar in | ||
26 | </string> | ||
27 | <string name="avatars_in_plural"> | ||
28 | avatars in | ||
29 | </string> | ||
24 | 30 | ||
25 | <text name="lblAvatarCount" | 31 | <text name="lblAvatarCount" |
26 | bottom="-20" left="10" height="16" width="220" | 32 | bottom="-20" left="10" height="16" width="220" |
@@ -37,11 +43,11 @@ | |||
37 | bg_visible="false" border_drop_shadow_visible="false" | 43 | bg_visible="false" border_drop_shadow_visible="false" |
38 | border_visible="false" drop_shadow_visible="true" follows="left|top" | 44 | border_visible="false" drop_shadow_visible="true" follows="left|top" |
39 | font="SansSerifSmall" mouse_opaque="true" > | 45 | font="SansSerifSmall" mouse_opaque="true" > |
40 | Avatars in | 46 | avatars in |
41 | </text> | 47 | </text> |
42 | 48 | ||
43 | <slider name="near_me_range" label="" control_name="NearMeRange" | 49 | <slider name="near_me_range" label="" control_name="NearMeRange" |
44 | bottom_delta="0" left_delta="55" width="110" height="15" | 50 | bottom_delta="0" left_delta="58" width="110" height="15" |
45 | follows="left|top" min_val="5" max_val="512" increment="1" | 51 | follows="left|top" min_val="5" max_val="512" increment="1" |
46 | initial_val="96" decimal_digits="0" /> | 52 | initial_val="96" decimal_digits="0" /> |
47 | 53 | ||
@@ -62,79 +68,79 @@ | |||
62 | <panel name="avatar_tab" label="Avatars" | 68 | <panel name="avatar_tab" label="Avatars" |
63 | bottom="-180" left="1" height="160" width="198" | 69 | bottom="-180" left="1" height="160" width="198" |
64 | follows="left|top|right|bottom" | 70 | follows="left|top|right|bottom" |
65 | border="true" mouse_opaque="true"> | 71 | border="false" mouse_opaque="true"> |
66 | 72 | ||
67 | <button name="im_btn" label="IM/Call" | 73 | <button name="im_btn" label="IM/Call" |
68 | bottom="-25" left="-85" height="16" width="80" | 74 | bottom="-22" left="-85" height="20" width="80" |
69 | follows="top|right" | 75 | follows="top|right" |
70 | tool_tip="Open Instant Message session" /> | 76 | tool_tip="Open Instant Message session" /> |
71 | 77 | ||
72 | <button name="profile_btn" label="Profile" | 78 | <button name="profile_btn" label="Profile" |
73 | bottom_delta="-20" left_delta="0" height="18" width="80" | 79 | bottom_delta="-22" left_delta="0" height="20" width="80" |
74 | follows="top|right" | 80 | follows="top|right" |
75 | tool_tip="Show picture, groups, and other information" /> | 81 | tool_tip="Show picture, groups, and other information" /> |
76 | 82 | ||
77 | <button name="offer_teleport_btn" label="Teleport..." | 83 | <button name="offer_teleport_btn" label="Offer TP" |
78 | bottom_delta="-20" left_delta="0" height="16" width="80" | 84 | bottom_delta="-22" left_delta="0" height="20" width="80" |
79 | follows="top|right" | 85 | follows="top|right" |
80 | tool_tip="Offer to teleport this person to your location" /> | 86 | tool_tip="Offer to teleport this person to your location" /> |
81 | 87 | ||
82 | <button name="teleport_btn" label="TP to" | 88 | <button name="teleport_btn" label="TP To" |
83 | bottom_delta="-20" left_delta="0" height="16" width="80" | 89 | bottom_delta="-22" left_delta="0" height="20" width="80" |
84 | follows="top|right" | 90 | follows="top|right" |
85 | tool_tip="Teleport to avatar's position" /> | 91 | tool_tip="Teleport to another person's location" /> |
86 | 92 | ||
87 | <button name="track_btn" label="Track" | 93 | <button name="track_btn" label="Track" |
88 | bottom_delta="-20" left_delta="0" height="16" width="80" | 94 | bottom_delta="-22" left_delta="0" height="20" width="80" |
89 | follows="top|right" | 95 | follows="top|right" |
90 | tool_tip="Create a beacon to track friends you can map" /> | 96 | tool_tip="Create a beacon to track friends you can map" /> |
91 | 97 | ||
92 | <button name="invite_btn" label="Invite..." | 98 | <button name="invite_btn" label="Invite..." |
93 | bottom_delta="-20" left_delta="0" height="16" width="80" | 99 | bottom_delta="-22" left_delta="0" height="20" width="80" |
94 | follows="top|right" | 100 | follows="top|right" |
95 | tool_tip="Remove this person from your friends list" /> | 101 | tool_tip="Invite a person to a group" /> |
96 | 102 | ||
97 | <button name="add_btn" label="Add..." | 103 | <button name="add_btn" label="Add..." |
98 | bottom_delta="-20" left_delta="0" height="16" width="80" | 104 | bottom_delta="-22" left_delta="0" height="20" width="80" |
99 | follows="top|right" | 105 | follows="top|right" |
100 | tool_tip="Offer friendship to a resident" /> | 106 | tool_tip="Offer friendship to a person" /> |
101 | 107 | ||
102 | </panel> | 108 | </panel> |
103 | 109 | ||
104 | <panel name="estate_tab" label="Estate" | 110 | <panel name="estate_tab" label="Estate" |
105 | bottom="-160" left="1" height="160" width="198" | 111 | bottom="-160" left="1" height="160" width="198" |
106 | follows="left|top|right|bottom" | 112 | follows="left|top|right|bottom" |
107 | border="true" mouse_opaque="true"> | 113 | border="false" mouse_opaque="true"> |
108 | 114 | ||
109 | <button name="freeze_btn" label="Freeze..." | 115 | <button name="freeze_btn" label="Freeze..." |
110 | bottom="-25" left="-85" height="22" width="80" | 116 | bottom="-22" left="-85" height="20" width="80" |
111 | follows="top|right" tool_tip="" /> | 117 | follows="top|right" tool_tip="" /> |
112 | 118 | ||
113 | <button name="eject_btn" label="Eject..." | 119 | <button name="eject_btn" label="Eject..." |
114 | bottom_delta="-25" left_delta="0" height="22" width="80" | 120 | bottom_delta="-22" left_delta="0" height="20" width="80" |
115 | follows="top|right" tool_tip="" /> | 121 | follows="top|right" tool_tip="" /> |
116 | 122 | ||
117 | <button name="mute_btn" label="Mute..." | 123 | <button name="mute_btn" label="Mute..." |
118 | bottom_delta="-25" left_delta="0" height="22" width="80" | 124 | bottom_delta="-22" left_delta="0" height="20" width="80" |
119 | follows="top|right" tool_tip="" /> | 125 | follows="top|right" tool_tip="" /> |
120 | 126 | ||
121 | <button name="unmute_btn" label="Unmute..." | 127 | <button name="unmute_btn" label="Unmute..." |
122 | bottom_delta="0" left_delta="0" height="22" width="80" | 128 | bottom_delta="0" left_delta="0" height="20" width="80" |
123 | follows="top|right" tool_tip="" /> | 129 | follows="top|right" tool_tip="" /> |
124 | 130 | ||
125 | <button name="ar_btn" label="Report..." | 131 | <button name="ar_btn" label="Report..." |
126 | bottom_delta="-25" left_delta="0" height="22" width="80" | 132 | bottom_delta="-22" left_delta="0" height="20" width="80" |
127 | follows="top|right" tool_tip="" /> | 133 | follows="top|right" tool_tip="" /> |
128 | 134 | ||
129 | <button name="estate_eject_btn" label="Kick..." | 135 | <button name="estate_eject_btn" label="Kick..." |
130 | bottom_delta="-25" left_delta="0" height="22" width="80" | 136 | bottom_delta="-22" left_delta="0" height="20" width="80" |
131 | follows="top|right" tool_tip="" /> | 137 | follows="top|right" tool_tip="" /> |
132 | 138 | ||
133 | </panel> | 139 | </panel> |
134 | </tab_container> | 140 | </tab_container> |
135 | 141 | ||
136 | <scroll_list name="RadarList" | 142 | <scroll_list name="RadarList" |
137 | bottom="6" left="4" right="-92" height="146" | 143 | bottom="6" left="4" right="-90" height="146" |
138 | follows="left|bottom|right" | 144 | follows="left|bottom|right" |
139 | draw_border="false" draw_heading="true" | 145 | draw_border="false" draw_heading="true" |
140 | draw_stripes="true" background_visible="true" | 146 | draw_stripes="true" background_visible="true" |