2022-06-21 18:19:18 +08:00
|
|
|
{"version":3,"sources":["assets/text-render/char-mode/char-mode.ts","assets/text-render/chars.ts"],"names":["chars_1","require","_a","cc","_decorator","ccclass","property","CharMode","_super","__extends","_this","apply","this","arguments","bitmapFont1","bitmapFont2","bitmapFont3","bitmapFont4","charFont1","charFont2","charFont3","charFont4","enChars","prototype","onLoad","string","getRandomText","getRandomTextEnglish","schedule","length","str","chars","Math","floor","random","__decorate","Label","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,IAAAA,UAAAC,QAAA;IAEM,IAAAC,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,WAAA,SAAAC;MAAsCC,UAAAF,UAAAC;MAAtC,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,cAAA;QAGAJ,MAAAK,cAAA;QAGAL,MAAAM,cAAA;QAGAN,MAAAO,cAAA;QAGAP,MAAAQ,YAAA;QAGAR,MAAAS,YAAA;QAGAT,MAAAU,YAAA;QAGAV,MAAAW,YAAA;QAiCAX,MAAAY,UAAA;;;MA/BUf,SAAAgB,UAAAC,SAAA;QAAV,IAAAd,QAAAE;QACIA,KAAAE,YAAAW,SAAAb,KAAAc,cAAA;QACAd,KAAAG,YAAAU,SAAAb,KAAAc,cAAA;QACAd,KAAAI,YAAAS,SAAAb,KAAAc,cAAA;QACAd,KAAAK,YAAAQ,SAAAb,KAAAe,qBAAA;QACAf,KAAAM,UAAAO,SAAAb,KAAAc,cAAA;QACAd,KAAAO,UAAAM,SAAAb,KAAAc,cAAA;QACAd,KAAAQ,UAAAK,SAAAb,KAAAc,cAAA;QACAd,KAAAS,UAAAI,SAAAb,KAAAe,qBAAA;QAEAf,KAAAgB,SAAA;UACIlB,MAAAI,YAAAW,SAAAf,MAAAgB,cAAA;U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,EADpB9B,WACoBE;MAoErB,OAAAA;KApEA,CAAAJ,GAAAkC;IAAqBC,QAAAC,UAAAhC;;;;;;;;;;;;;ICLR+B,QAAAP,QAAA","sourcesContent":["import { chars } from \"../chars\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class CharMode extends cc.Component {\n\n @property(cc.Label)\n bitmapFont1: cc.Label = null;\n\n @property(cc.Label)\n bitmapFont2: cc.Label = null;\n\n @property(cc.Label)\n bitmapFont3: cc.Label = null;\n\n @property(cc.Label)\n bitmapFont4: cc.Label = null;\n\n @property(cc.Label)\n charFont1: cc.Label = null;\n\n @property(cc.Label)\n charFont2: cc.Label = null;\n\n @property(cc.Label)\n charFont3: cc.Label = null;\n\n @property(cc.Label)\n charFont4: cc.Label = null;\n\n protected onLoad(): void {\n this.bitmapFont1.string = this.getRandomText(15);\n this.bitmapFont2.string = this.getRandomText(15);\n this.bitmapFont3.string = this.getRandomText(15);\n this.bitmapFont4.string = this.getRandomTextEnglish(30);\n this.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.getRandomText(15);\n this.charFont4.string = this.getRandomTextEnglish(30);\n\n this.schedule(() => {\n this.bitmapFont1.string = this.getRandomText(15);\n this.bitmapFont2.string = this.getRandomText(15);\n this.bitmapFont3.string = this.getRandomText(15);\n this.bitmapFont4.string = this.getRandomTextEnglish(30);\n this.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.get
|