Browse Source

Dynamic Text : fix group of function

Tom SPIRA 3 years ago
parent
commit
5e98fd31eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxd/res/DynamicText.hx

+ 1 - 1
hxd/res/DynamicText.hx

@@ -178,7 +178,7 @@ class DynamicText {
 							path.push("[" + i + "]");
 							if( Api.isOfType(e, Array) ) {
 								throw "TODO";
-							} else if( Api.isOfType(e, String) ) {
+							} else if( Api.isOfType(e, String) || Reflect.isFunction(e) ) {
 								var enew = applyText(path, e, data[i], dataRef == null ? null : dataRef[i], onMissing);
 								if( enew != null )
 									elements[i] = enew;