Implement TextEntryObject for Cocos2d

This commit is contained in:
Florian Rival
2016-03-28 19:39:16 +02:00
parent f6f56d77a0
commit eeb0dc8a63
4 changed files with 122 additions and 51 deletions
+4 -1
View File
@@ -34,7 +34,10 @@ public:
DeclareTextEntryObjectExtension(*this);
GetObjectMetadata("TextEntryObject::TextEntry").SetIncludeFile("TextEntryObject/textentryruntimeobject.js");
GetObjectMetadata("TextEntryObject::TextEntry")
.SetIncludeFile("TextEntryObject/textentryruntimeobject.js")
.AddIncludeFile("TextEntryObject/textentryruntimeobject-pixi-renderer.js")
.AddIncludeFile("TextEntryObject/textentryruntimeobject-cocos-renderer.js");
GetAllActionsForObject("TextEntryObject::TextEntry")["TextEntryObject::String"].SetFunctionName("setString").SetGetter("getString");
GetAllConditionsForObject("TextEntryObject::TextEntry")["TextEntryObject::String"].SetFunctionName("getString");