From 076edd8ba9d33e5cc66f3671122ac3b545bb7120 Mon Sep 17 00:00:00 2001 From: Erica Date: Mon, 21 Dec 2009 22:52:33 -0800 Subject: Cleaned up unused textures and xml, checked log for warnings --- indra/newview/skins/default/textures/textures.xml | 95 +++------------------- .../skins/default/xui/en/panel_landmark_info.xml | 1 - 2 files changed, 10 insertions(+), 86 deletions(-) diff --git a/indra/newview/skins/default/textures/textures.xml b/indra/newview/skins/default/textures/textures.xml index 9212d3d87b..6c9a63d0b3 100644 --- a/indra/newview/skins/default/textures/textures.xml +++ b/indra/newview/skins/default/textures/textures.xml @@ -168,6 +168,7 @@ with the same filename but different name + @@ -310,6 +311,9 @@ with the same filename but different name + + + @@ -549,8 +553,8 @@ with the same filename but different name - - + + @@ -635,28 +639,12 @@ with the same filename but different name - - - - - - - - - - - + - - - - - - @@ -666,67 +654,30 @@ with the same filename but different name - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - @@ -736,10 +687,6 @@ with the same filename but different name - - - - @@ -762,8 +709,6 @@ with the same filename but different name - - @@ -773,13 +718,11 @@ with the same filename but different name + + - - - - @@ -806,23 +749,5 @@ with the same filename but different name - - - - - - - - - - - - - - - - - - diff --git a/indra/newview/skins/default/xui/en/panel_landmark_info.xml b/indra/newview/skins/default/xui/en/panel_landmark_info.xml index 68e58b27ec..d930cc3b1d 100644 --- a/indra/newview/skins/default/xui/en/panel_landmark_info.xml +++ b/indra/newview/skins/default/xui/en/panel_landmark_info.xml @@ -228,7 +228,6 @@ value="Title:" width="290" /> Date: Mon, 28 Dec 2009 17:03:33 -0800 Subject: EXT-3745 Parcel health damage icon is green placeholder Replaced with nice red icon Callum made, fiddled with placement. Reviewed with Callum --- indra/newview/skins/default/xui/en/widgets/location_input.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/indra/newview/skins/default/xui/en/widgets/location_input.xml b/indra/newview/skins/default/xui/en/widgets/location_input.xml index 7ac44b412d..1368c6826d 100644 --- a/indra/newview/skins/default/xui/en/widgets/location_input.xml +++ b/indra/newview/skins/default/xui/en/widgets/location_input.xml @@ -95,12 +95,11 @@ follows="right|top" image_name="Parcel_ScriptsNo_Light" /> - -- cgit v1.2.3 From 1e9a5c21e5493ad3dabec4d032bc0a627e2f725f Mon Sep 17 00:00:00 2001 From: James Cook Date: Tue, 29 Dec 2009 10:24:56 -0800 Subject: EXT-3745 Add alternate damage heart. --- .../default/textures/icons/Parcel_Damage_Light_Alt.png | Bin 0 -> 285 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 indra/newview/skins/default/textures/icons/Parcel_Damage_Light_Alt.png diff --git a/indra/newview/skins/default/textures/icons/Parcel_Damage_Light_Alt.png b/indra/newview/skins/default/textures/icons/Parcel_Damage_Light_Alt.png new file mode 100644 index 0000000000..d72f02f708 Binary files /dev/null and b/indra/newview/skins/default/textures/icons/Parcel_Damage_Light_Alt.png differ -- cgit v1.2.3 From 8e5b453ea05ca3d53997b1fc2f0f4fcf65de9857 Mon Sep 17 00:00:00 2001 From: Leyla Farazha Date: Tue, 29 Dec 2009 16:12:12 -0800 Subject: EXT-3589 Favorites Appear Squished Together on Left Half of Favorites Bar EXT-3602 Inventory > New Clothes sub menu not aligned EXT-3631 Texture preview after upload > Image covers buttons reviewed by James --- indra/llui/llmenugl.cpp | 33 +++++++++++++++++----- indra/newview/llpreviewtexture.cpp | 10 +++---- .../skins/default/xui/en/favorites_bar_button.xml | 2 ++ .../default/xui/en/floater_preview_texture.xml | 6 ++-- .../skins/default/xui/en/panel_navigation_bar.xml | 2 +- 5 files changed, 36 insertions(+), 17 deletions(-) diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 60ef01074b..2648cbf08d 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -23,7 +23,7 @@ * By copying, modifying or distributing this software, you acknowledge * that you have read and understood your obligations described above, * and agree to abide by those obligations. - * + * * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, * COMPLETENESS OR PERFORMANCE. @@ -1208,22 +1208,41 @@ void LLMenuItemBranchGL::openMenu() branch->arrange(); - LLRect rect = branch->getRect(); + LLRect branch_rect = branch->getRect(); // calculate root-view relative position for branch menu S32 left = getRect().mRight; S32 top = getRect().mTop - getRect().mBottom; localPointToOtherView(left, top, &left, &top, branch->getParent()); - rect.setLeftTopAndSize( left, top, - rect.getWidth(), rect.getHeight() ); + branch_rect.setLeftTopAndSize( left, top, + branch_rect.getWidth(), branch_rect.getHeight() ); if (branch->getCanTearOff()) { - rect.translate(0, TEAROFF_SEPARATOR_HEIGHT_PIXELS); + branch_rect.translate(0, TEAROFF_SEPARATOR_HEIGHT_PIXELS); + } + branch->setRect( branch_rect ); + + // if branch extends outside of menu region change the direction it opens in + S32 x, y; + S32 delta_x = 0; + S32 delta_y = 0; + branch->localPointToOtherView( 0, 0, &x, &y, branch->getParent() ); + if( y < menu_region_rect.mBottom ) + { + // open upwards if menu extends past bottom + // adjust by the height of the menu item branch since it is a submenu + delta_y = branch_rect.getHeight() - getRect().getHeight(); } - branch->setRect( rect ); - branch->translateIntoRectWithExclusion( menu_region_rect, getMenu()->getRect(), FALSE ); + + if( x + branch_rect.getWidth() > menu_region_rect.mRight ) + { + // move sub-menu over to left side + delta_x = llmax(-x, ( -(branch_rect.getWidth() + getRect().getWidth()))); + } + branch->translate( delta_x, delta_y ); + branch->setVisible( TRUE ); branch->getParent()->sendChildToFront(branch); diff --git a/indra/newview/llpreviewtexture.cpp b/indra/newview/llpreviewtexture.cpp index 26368fb0a8..a857e30d4f 100644 --- a/indra/newview/llpreviewtexture.cpp +++ b/indra/newview/llpreviewtexture.cpp @@ -419,12 +419,10 @@ void LLPreviewTexture::updateDimensions() view_height += info_height; S32 button_height = 0; - if (mShowKeepDiscard || mCopyToInv) { //mCopyToInvBtn - - // add space for buttons - view_height += (BTN_HEIGHT + CLIENT_RECT_VPAD) * 3; - button_height = (BTN_HEIGHT + PREVIEW_PAD) * 3; - } + + // add space for buttons + view_height += (BTN_HEIGHT + CLIENT_RECT_VPAD) * 3; + button_height = (BTN_HEIGHT + PREVIEW_PAD) * 3; view_width = llmax(view_width, getMinWidth()); view_height = llmax(view_height, getMinHeight()); diff --git a/indra/newview/skins/default/xui/en/favorites_bar_button.xml b/indra/newview/skins/default/xui/en/favorites_bar_button.xml index 361f5a7bc8..d7f8114c34 100644 --- a/indra/newview/skins/default/xui/en/favorites_bar_button.xml +++ b/indra/newview/skins/default/xui/en/favorites_bar_button.xml @@ -18,6 +18,8 @@ left="0" name="favorites_bar_btn" tab_stop="false" + pad_right="10" + pad_left="10" top="0" use_ellipses="true" width="120" /> diff --git a/indra/newview/skins/default/xui/en/floater_preview_texture.xml b/indra/newview/skins/default/xui/en/floater_preview_texture.xml index 552902d1d9..0d155fb01e 100644 --- a/indra/newview/skins/default/xui/en/floater_preview_texture.xml +++ b/indra/newview/skins/default/xui/en/floater_preview_texture.xml @@ -64,7 +64,7 @@ height="16" layout="topleft" left_delta="-110" - name="dimensions" + name="aspect_ratio" top_pad="5" width="200"> Preview aspect ratio @@ -112,7 +112,7 @@ label="OK" layout="topleft" left="6" - name="keep" + name="Keep" top_pad="5" width="100" />