45926d0dbd
* Change Prefab Focus breadcrumb widget to display template filename instead of instance container entity name. Also display dirty state for the template (*) and refresh it in real time. Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> * Streamline path creation code; fix stem retrieval to ensure extension is cut correctly; delay refresh one frame when path is clicked to correctly refresh it. Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> * Remove test code. Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> * Simplify code to use Native directly. Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com> * Minor variable renaming and comment adjustments to make them clearer. Signed-off-by: Danilo Aimini <82231674+AMZN-daimini@users.noreply.github.com>
35 lines
962 B
C++
35 lines
962 B
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AzCore/EBus/EBus.h>
|
|
#include <AzToolsFramework/Prefab/PrefabIdTypes.h>
|
|
|
|
namespace AzToolsFramework
|
|
{
|
|
namespace Prefab
|
|
{
|
|
class PrefabPublicNotifications
|
|
: public AZ::EBusTraits
|
|
{
|
|
public:
|
|
virtual ~PrefabPublicNotifications() = default;
|
|
|
|
virtual void OnPrefabInstancePropagationBegin() {}
|
|
virtual void OnPrefabInstancePropagationEnd() {}
|
|
|
|
virtual void OnPrefabTemplateDirtyFlagUpdated(
|
|
[[maybe_unused]] TemplateId templateId, [[maybe_unused]] bool status) {}
|
|
};
|
|
|
|
using PrefabPublicNotificationBus = AZ::EBus<PrefabPublicNotifications>;
|
|
|
|
} // namespace Prefab
|
|
} // namespace AzToolsFramework
|