From 073d845bb5d1e9a22752ff7adfda343593eca01f Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 5 May 2016 18:33:01 -0700 Subject: [PATCH] show with debug icons when someone else is the simulation owner --- interface/resources/icons/statusIconAtlas.svg | 83 ++++++++++++------- .../src/RenderableEntityItem.cpp | 4 + .../src/RenderableEntityItem.h | 1 + 3 files changed, 57 insertions(+), 31 deletions(-) diff --git a/interface/resources/icons/statusIconAtlas.svg b/interface/resources/icons/statusIconAtlas.svg index 72f9bc4af7..027102cc69 100644 --- a/interface/resources/icons/statusIconAtlas.svg +++ b/interface/resources/icons/statusIconAtlas.svg @@ -1,31 +1,52 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/libraries/entities-renderer/src/RenderableEntityItem.cpp b/libraries/entities-renderer/src/RenderableEntityItem.cpp index 25f4052c75..d148145dde 100644 --- a/libraries/entities-renderer/src/RenderableEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableEntityItem.cpp @@ -85,10 +85,14 @@ void makeEntityItemStatusGetters(EntityItemPointer entity, render::Item::Status: auto nodeList = DependencyManager::get(); const QUuid& myNodeID = nodeList->getSessionUUID(); bool weOwnSimulation = entity->getSimulationOwner().matchesValidID(myNodeID); + bool otherOwnSimulation = !weOwnSimulation && !entity->getSimulationOwner().isNull(); if (weOwnSimulation) { return render::Item::Status::Value(1.0f, render::Item::Status::Value::BLUE, (unsigned char)RenderItemStatusIcon::SIMULATION_OWNER); + } else if (otherOwnSimulation) { + return render::Item::Status::Value(1.0f, render::Item::Status::Value::RED, + (unsigned char)RenderItemStatusIcon::OTHER_SIMULATION_OWNER); } return render::Item::Status::Value(0.0f, render::Item::Status::Value::BLUE, (unsigned char)RenderItemStatusIcon::SIMULATION_OWNER); diff --git a/libraries/entities-renderer/src/RenderableEntityItem.h b/libraries/entities-renderer/src/RenderableEntityItem.h index 92bb98ad32..09451e87d4 100644 --- a/libraries/entities-renderer/src/RenderableEntityItem.h +++ b/libraries/entities-renderer/src/RenderableEntityItem.h @@ -25,6 +25,7 @@ enum class RenderItemStatusIcon { PACKET_RECEIVED = 2, SIMULATION_OWNER = 3, HAS_ACTIONS = 4, + OTHER_SIMULATION_OWNER = 5, NONE = 255 };