Updated GameLift names, improved Getter/Setter generation
Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
+5
-3
@@ -71,9 +71,11 @@ namespace ScriptCanvasEditor
|
||||
|
||||
const char* className = m_className.toUtf8().data();
|
||||
auto behaviorClass = behaviorContext->m_classes.find(className);
|
||||
|
||||
ScriptCanvasEditorTools::TranslationGeneration translation;
|
||||
translation.TranslateBehaviorClass(behaviorClass->second);
|
||||
if (behaviorClass != behaviorContext->m_classes.end())
|
||||
{
|
||||
ScriptCanvasEditorTools::TranslationGeneration translation;
|
||||
translation.TranslateBehaviorClass(behaviorClass->second);
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -639,7 +639,7 @@ namespace ScriptCanvasEditor
|
||||
m_mimeType = NodePaletteDockWidget::GetMimeType();
|
||||
m_isInContextMenu = isInContextMenu;
|
||||
m_allowArrowKeyNavigation = isInContextMenu;
|
||||
m_saveIdentifier = m_isInContextMenu ? "ScriptCanvas" : "ScriptCnavas_ContextMenu";
|
||||
m_saveIdentifier = m_isInContextMenu ? "ScriptCanvas" : "ScriptCanvas_ContextMenu";
|
||||
|
||||
m_rootTreeItem = Widget::NodePaletteWidget::ExternalCreateNodePaletteRoot(nodePaletteModel, assetModel);
|
||||
}
|
||||
|
||||
@@ -922,6 +922,11 @@ namespace ScriptCanvasEditorTools
|
||||
|
||||
TranslateMethod(behaviorProperty->m_getter, method);
|
||||
|
||||
// We know this is a getter, so there will only be one parameter, we will use the method name as a best
|
||||
// guess for the argument name
|
||||
SplitCamelCase(cleanName);
|
||||
method.m_arguments[1].m_details.m_name = cleanName;
|
||||
|
||||
entry->m_methods.push_back(method);
|
||||
|
||||
}
|
||||
@@ -944,6 +949,11 @@ namespace ScriptCanvasEditorTools
|
||||
|
||||
TranslateMethod(behaviorProperty->m_setter, method);
|
||||
|
||||
// We know this is a setter, so there will only be one parameter, we will use the method name as a best
|
||||
// guess for the argument name
|
||||
SplitCamelCase(cleanName);
|
||||
method.m_arguments[1].m_details.m_name = cleanName;
|
||||
|
||||
entry->m_methods.push_back(method);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user