From 58102daf948397a601fa770b09a0464e3e5db418 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Thu, 7 Apr 2011 02:17:03 +0200 Subject: [PATCH 1/8] Minor adjustments --- indra/newview/llstartup.cpp | 2 +- indra/newview/llviewerinventory.cpp | 2 +- indra/newview/skins/default/xui/en-us/notifications.xml | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 6d938edab..ab14d91d3 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1497,7 +1497,7 @@ bool idle_startup() } else { - emsg << "Unable to connect to " << LLAppViewer::instance()->getSecondLifeTitle() << ".\n"; + emsg << "Unable to connect to " << gHippoGridManager->getCurrentGrid()->getGridName() << ".\n"; emsg << LLUserAuth::getInstance()->errorMessage(); } break; diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 522a7c5fa..aa9c1e9ff 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -189,9 +189,9 @@ void LLViewerInventoryItem::updateServer(BOOL is_new) const if(!mIsComplete) { // *FIX: deal with this better. - // If we're crashing here then the UI is incorrectly enabled. llwarns << "LLViewerInventoryItem::updateServer() - for incomplete item" << llendl; + LLNotifications::instance().add("IncompleteInventoryItem"); return; } LLInventoryModel::LLCategoryUpdate up(mParentUUID, is_new ? 1 : 0); diff --git a/indra/newview/skins/default/xui/en-us/notifications.xml b/indra/newview/skins/default/xui/en-us/notifications.xml index 2fa25088c..d68f1069a 100644 --- a/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/indra/newview/skins/default/xui/en-us/notifications.xml @@ -5375,6 +5375,13 @@ Unable to load script. Please try again. The complete contents you are offering are not yet locally available. Please try offering those items again in a minute. + +The item you are accessing is not yet locally available. Please try again in a minute. + + Date: Fri, 8 Apr 2011 03:52:46 +0200 Subject: [PATCH 2/8] Don't clutter up the minimap with skyboxes --- indra/newview/llviewerobjectlist.cpp | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index bf50be20e..964661d48 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1092,6 +1092,9 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) gColors.getColor( "NetMapGroupOwnBelowWater" ); F32 max_radius = gSavedSettings.getF32("MiniMapPrimMaxRadius"); + + static const F32 MAX_ALTITUDE_ABOVE_SELF = 256.f; + F32 max_altitude = gAgent.getPositionGlobal()[VZ] + MAX_ALTITUDE_ABOVE_SELF; for (vobj_list_t::iterator iter = mMapObjects.begin(); iter != mMapObjects.end(); ++iter) { @@ -1104,11 +1107,12 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) { continue; } + const LLVector3& scale = objectp->getScale(); const LLVector3d pos = objectp->getPositionGlobal(); const F64 water_height = F64( objectp->getRegion()->getWaterHeight() ); // LLWorld::getInstance()->getWaterHeight(); - + F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge // Limit the size of megaprims so they don't blot out everything on the minimap. @@ -1124,7 +1128,7 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) { approx_radius = MIN_RADIUS_FOR_OWNED_OBJECTS; } - + if( pos.mdV[VZ] >= water_height ) { if ( objectp->permGroupOwner() ) @@ -1133,8 +1137,8 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) } else { - color = you_own_above_water_color; - } + color = you_own_above_water_color; + } } else { @@ -1142,14 +1146,17 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap) { color = group_own_below_water_color; } - else - { - color = you_own_below_water_color; + else + { + color = you_own_below_water_color; + } } } + else if ( pos[VZ] > max_altitude ) + { + continue; } - else - if( pos.mdV[VZ] < water_height ) + else if ( pos.mdV[VZ] < water_height ) { color = below_water_color; } From e6b5811e7e7a064a67c3211865bf911a6a2e2e99 Mon Sep 17 00:00:00 2001 From: Siana Gearz Date: Fri, 8 Apr 2011 04:17:37 +0200 Subject: [PATCH 3/8] Hide friend groups until we implement them. --- .../skins/default/xui/en-us/panel_friends.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/indra/newview/skins/default/xui/en-us/panel_friends.xml b/indra/newview/skins/default/xui/en-us/panel_friends.xml index c96ddb8f0..017e38351 100644 --- a/indra/newview/skins/default/xui/en-us/panel_friends.xml +++ b/indra/newview/skins/default/xui/en-us/panel_friends.xml @@ -7,7 +7,7 @@ follows="left|top|bottom|right" left="10" multi_select="true" name="friend_list" right="-100" search_column="1" tool_tip="Hold shift or control while clicking to select multiple friends" - top="-60"> + top="-40"> @@ -25,31 +25,31 @@ tool_tip="You can edit this friend's objects" width="20" /> - Contact Group: - - + Contact Search: - - +