diff options
author | Oz Linden <oz@lindenlab.com> | 2012-07-25 12:31:57 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-07-25 12:31:57 -0400 |
commit | 33afaadf5b6ac5ecfd24f9cf5c945e09e1dd57bb (patch) | |
tree | 969ec483df1459fe64459cf4dd052adfd95154a7 /indra | |
parent | 01b7959e01d985e96d20175eb28cfefb54c0080b (diff) | |
parent | b8cca9c6e66fa761fa104645effb1b672a8a99ae (diff) |
pull latest pathfinding changes from integration branch
Diffstat (limited to 'indra')
4 files changed, 20 insertions, 8 deletions
diff --git a/indra/newview/llfloaterpathfindingcharacters.cpp b/indra/newview/llfloaterpathfindingcharacters.cpp index ef6388642a..99d262344c 100644 --- a/indra/newview/llfloaterpathfindingcharacters.cpp +++ b/indra/newview/llfloaterpathfindingcharacters.cpp @@ -30,6 +30,8 @@ #include "llfloaterpathfindingcharacters.h" +#include <string> + #include "llcheckboxctrl.h" #include "llfloaterreg.h" #include "llfloaterpathfindingobjects.h" @@ -210,9 +212,13 @@ LLSD LLFloaterPathfindingCharacters::buildCharacterScrollListData(const LLPathfi columns[1]["value"] = pCharacterPtr->getDescription(); columns[2]["column"] = "owner"; - columns[2]["value"] = (pCharacterPtr->hasOwner() ? - (pCharacterPtr->hasOwnerName() ? pCharacterPtr->getOwnerName() : getString("character_owner_loading")) : - getString("character_owner_unknown")); + columns[2]["value"] = (pCharacterPtr->hasOwner() + ? (pCharacterPtr->hasOwnerName() + ? (pCharacterPtr->isGroupOwned() + ? (pCharacterPtr->getOwnerName() + " " + getString("character_owner_group")) + : pCharacterPtr->getOwnerName()) + : getString("character_owner_loading")) + : getString("character_owner_unknown")); S32 cpuTime = llround(pCharacterPtr->getCPUTime()); std::string cpuTimeString = llformat("%d", cpuTime); diff --git a/indra/newview/llfloaterpathfindinglinksets.cpp b/indra/newview/llfloaterpathfindinglinksets.cpp index ecb68a786a..877bd0822d 100644 --- a/indra/newview/llfloaterpathfindinglinksets.cpp +++ b/indra/newview/llfloaterpathfindinglinksets.cpp @@ -404,9 +404,13 @@ LLSD LLFloaterPathfindingLinksets::buildLinksetScrollListData(const LLPathfindin columns[1]["value"] = pLinksetPtr->getDescription(); columns[2]["column"] = "owner"; - columns[2]["value"] = (pLinksetPtr->hasOwner() ? - (pLinksetPtr->hasOwnerName() ? pLinksetPtr->getOwnerName() : getString("linkset_owner_loading")) : - getString("linkset_owner_unknown")); + columns[2]["value"] = (pLinksetPtr->hasOwner() + ? (pLinksetPtr->hasOwnerName() + ? (pLinksetPtr->isGroupOwned() + ? (pLinksetPtr->getOwnerName() + " " + getString("linkset_owner_group")) + : pLinksetPtr->getOwnerName()) + : getString("linkset_owner_loading")) + : getString("linkset_owner_unknown")); columns[3]["column"] = "land_impact"; columns[3]["value"] = llformat("%1d", pLinksetPtr->getLandImpact()); diff --git a/indra/newview/skins/default/xui/en/floater_pathfinding_characters.xml b/indra/newview/skins/default/xui/en/floater_pathfinding_characters.xml index abe918bfbe..46ee113b69 100644 --- a/indra/newview/skins/default/xui/en/floater_pathfinding_characters.xml +++ b/indra/newview/skins/default/xui/en/floater_pathfinding_characters.xml @@ -24,7 +24,8 @@ <floater.string name="messaging_not_enabled">This region is not enabled for pathfinding.</floater.string> <floater.string name="character_cpu_time">[CPU_TIME] µs</floater.string> <floater.string name="character_owner_loading">[Loading]</floater.string> - <floater.string name="character_owner_unknown">Unknown</floater.string> + <floater.string name="character_owner_unknown">[Unknown]</floater.string> + <floater.string name="character_owner_group">[group]</floater.string> <panel border="false" bevel_style="none" diff --git a/indra/newview/skins/default/xui/en/floater_pathfinding_linksets.xml b/indra/newview/skins/default/xui/en/floater_pathfinding_linksets.xml index 4c6c14f8bf..eaed92ac55 100644 --- a/indra/newview/skins/default/xui/en/floater_pathfinding_linksets.xml +++ b/indra/newview/skins/default/xui/en/floater_pathfinding_linksets.xml @@ -28,7 +28,8 @@ <floater.string name="linkset_terrain_land_impact">--</floater.string> <floater.string name="linkset_terrain_dist_from_you">--</floater.string> <floater.string name="linkset_owner_loading">[Loading]</floater.string> - <floater.string name="linkset_owner_unknown">Unknown</floater.string> + <floater.string name="linkset_owner_unknown">[Unknown]</floater.string> + <floater.string name="linkset_owner_group">[group]</floater.string> <floater.string name="linkset_use_walkable">Walkable</floater.string> <floater.string name="linkset_use_static_obstacle">Static obstacle</floater.string> <floater.string name="linkset_use_dynamic_obstacle">Movable obstacle</floater.string> |