Stinson Linden avatar Stinson Linden committed acd7b8b

Adding a group identifier to the group objects in the pathfinding linksets and characters floaters.

Comments (0)

Files changed (4)

indra/newview/llfloaterpathfindingcharacters.cpp

 
 #include "llfloaterpathfindingcharacters.h"
 
+#include <string>
+
 #include "llcheckboxctrl.h"
 #include "llfloaterreg.h"
 #include "llfloaterpathfindingobjects.h"
 	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);

indra/newview/llfloaterpathfindinglinksets.cpp

 		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());

indra/newview/skins/default/xui/en/floater_pathfinding_characters.xml

   <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"

indra/newview/skins/default/xui/en/floater_pathfinding_linksets.xml

   <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>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.