UNPKG

dragonbones-runtime

Version:

the tools to build dragonbones file for diffrent framework

18 lines (15 loc) 486 B
class LoadingUI extends egret.DisplayObjectContainer { private textField: egret.TextField; constructor() { super(); this.textField = new egret.TextField(); this.addChild(this.textField); this.textField.x = this.textField.y = 200; this.textField.text = 'loading...' } onProgress(current, total) { //ES6的字符串语法 this.textField.text = `${current} / ${total}`; console.log(current, total); } }