/* * 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 * */ #include #include #include #include #include namespace AZ { namespace SceneAPI { namespace SceneData { void UnmodifiableRule::Reflect(AZ::ReflectContext* context) { AZ::SerializeContext* serializeContext = azrtti_cast(context); if (!serializeContext) { return; } serializeContext->Class()->Version(1); AZ::EditContext* editContext = serializeContext->GetEditContext(); if (editContext) { editContext->Class("Unmodifiable", "This rule marks the container as unable to be modified.") ->ClassElement(Edit::ClassElements::EditorData, "") ->Attribute(AZ::Edit::Attributes::NameLabelOverride, ""); } } bool UnmodifiableRule::ModifyTooltip(AZStd::string& tooltip) { tooltip = AZStd::string::format("This group is not modifiable. %.*s", AZ_STRING_ARG(tooltip)); return true; } } // namespace SceneData } // namespace SceneAPI } // namespace AZ