nodes: use flag instead of hidden array in factory

This commit is contained in:
itsmattkc
2022-05-09 08:44:39 -07:00
parent c25960e5af
commit 13aedfa294
6 changed files with 9 additions and 10 deletions
+2
View File
@@ -53,6 +53,8 @@ TextGeneratorV1::TextGeneratorV1()
AddInput(kFontInput, NodeValue::kFont);
AddInput(kFontSizeInput, NodeValue::kFloat, 72.0f);
SetFlags(kDontShowInCreateMenu);
}
QString TextGeneratorV1::Name() const
+2
View File
@@ -57,6 +57,8 @@ TextGeneratorV2::TextGeneratorV2()
SetStandardValue(kColorInput, QVariant::fromValue(Color(1.0f, 1.0f, 1.0)));
SetStandardValue(kSizeInput, QVector2D(400, 300));
SetFlags(kDontShowInCreateMenu);
}
QString TextGeneratorV2::Name() const