Improved BehaviorProperty method text generation and updated some translations in the process

Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
lsemp3d
2021-11-12 13:07:11 -08:00
parent bc73eaac69
commit a0667f7ae8
10 changed files with 522 additions and 152 deletions
@@ -271,12 +271,13 @@ namespace ScriptCanvasEditor::Nodes
case ScriptCanvas::MethodType::Event:
graphCanvasEntity->CreateComponent<EBusSenderNodeDescriptorComponent>();
break;
case ScriptCanvas::MethodType::Member:
case ScriptCanvas::MethodType::Getter:
case ScriptCanvas::MethodType::Setter:
case ScriptCanvas::MethodType::Member:
case ScriptCanvas::MethodType::Free:
graphCanvasEntity->CreateComponent<ClassMethodNodeDescriptorComponent>();
break;
break;
default:
AZ_Error("ScriptCanvas", false, "Invalid method node type, node creation failed. This node needs to be deleted.");
break;
@@ -304,10 +305,11 @@ namespace ScriptCanvasEditor::Nodes
GraphCanvas::TranslationKey key;
key = isEBusSender ? "EBusSender" : "BehaviorClass";
key << className;
GraphCanvas::TranslationRequestBus::BroadcastResult(details, &GraphCanvas::TranslationRequests::GetDetails, key + ".details", details);
// Set the class' category as the subtitle fallback
details.m_subtitle = details.m_category;
// Set the class' name as the subtitle fallback
details.m_subtitle = details.m_name;
// Get the method's text data
key << "methods" << methodName;