1 line
12 KiB
Plaintext
Raw Normal View History

2022-06-17 18:49:50 +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","charFont1","charFont2","charFont3","prototype","onLoad","string","getRandomText","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,YAAA;QAGAP,MAAAQ,YAAA;QAGAR,MAAAS,YAAA;;;MAGUZ,SAAAa,UAAAC,SAAA;QAAV,IAAAX,QAAAE;QACIA,KAAAE,YAAAQ,SAAAV,KAAAW,cAAA;QACAX,KAAAG,YAAAO,SAAAV,KAAAW,cAAA;QACAX,KAAAI,YAAAM,SAAAV,KAAAW,cAAA;QACAX,KAAAK,UAAAK,SAAAV,KAAAW,cAAA;QACAX,KAAAM,UAAAI,SAAAV,KAAAW,cAAA;QACAX,KAAAO,UAAAG,SAAAV,KAAAW,cAAA;QAEAX,KAAAY,SAAA;UACId,MAAAI,YAAAQ,SAAAZ,MAAAa,cAAA;UACAb,MAAAK,YAAAO,SAAAZ,MAAAa,cAAA;UACAb,MAAAM,YAAAM,SAAAZ,MAAAa,cAAA;UACAb,MAAAO,UAAAK,SAAAZ,MAAAa,cAAA;UACAb,MAAAQ,UAAAI,SAAAZ,MAAAa,cAAA;UACAb,MAAAS,UAAAG,SAAAZ,MAAAa,cAAA;WACJ;;MAIJhB,SAAAa,UAAAG,gBAAA,SAAAE;QACI,IAAAC,MAAA;QACA,OAAAA,IAAAD,SAAAA,QACIC,OAAA1B,QAAA2B,MAAAC,KAAAC,MAAAD,KAAAE,WAAA9B,QAAA2B,MAAAF;QAEJ,OAAAC;;MA1CJK,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC4BzB,SAAAa,WAAA,oBAAA;MAG7BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAG3BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAG3BW,WAAA,EADCzB,SAAAH,GAAA6B,UAC0BzB,SAAAa,WAAA,kBAAA;MAlBVb,WAAAwB,WAAA,EADpB1B,WACoBE;MAgDrB,OAAAA;KAhDA,CAAAJ,GAAA8B;IAAqBC,QAAAC,UAAA5B;;;;;;;;;;;;;ICLR2B,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 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\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.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.getRandomText(15);\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.charFont1.string = this.getRandomText(15);\n this.charFont2.string = this.getRandomText(15);\n this.charFont3.string = this.getRandomText(15);\n }, 0.1);\n }\n\n\n getRandomText(length: number) {\n let str = '';\n while (str.length < length) {\n str += chars[Math.floor(Math.random() * chars.length)];\n }\n return str;\n }\n\n}\n","export const chars = `的一是在了不和有大这主中人上为们地个用工时要动国产以我到他会作来分生对于学下级就年阶义发成部民可出能方进同行面说种过命度革而多子后自社加小机也经力线本电高量长党得实家定深法表着水理化争现所二起政三好十战无农使性前等反体合斗路图把结第里正新开论之物从当两些还天资事队批如应形想制心样干都向变关点育重其思与间内去因件日利相由压员气业代全组数果期导平各基或月毛然问比展那它最及外没看治提五解系<E8A7A3>