80286bc2-d40a-4efc-a507-1135f17396a0.js.map
1.94 KB
{"version":3,"sources":["assets/script/game/ui/view/impl/LikeLevelSubviewImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,sEAAuF;AACvF,wEAAwE;AACxE,yEAA0D;AAC1D,+DAA4F;AAE5F,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC;AAI5C;IAAA,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,0BAA6B;QAAvE;;YACI,yBAAyB;YAEjB,QAAG,GAAG,4BAAW,CAAC;YAElB,UAAK,GAAG,2BAAU,CAAC;QAa/B,CAAC;QAZG,YAAY;QAEZ,MAAM;YACF,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;gBACvB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;YAC/B,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE;gBACzB,IAAI,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAClD,CAAC;KACJ,CAAA;IAfG;QADC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC;qDACM;IAE1B;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;uDACQ;IALlB,oBAAoB;QAFhC,OAAO;QACP,mCAAU,CAAC,oCAAiB,CAAC;OACjB,oBAAoB,CAkBhC;IAAD,2BAAC;KAAA;AAlBY,oDAAoB","file":"","sourceRoot":"/","sourcesContent":["import { DummyLabel, DummyNode, DummySprite } from \"../../../../common/CCDummyObjects\";\nimport { CCPureSubview } from \"../../../../common/classbase/CCViewBase\";\nimport { RegSubview } from \"../../PresenterCCViewFactory\";\nimport { LikeLevelProps, LikeLevelView, LikeLevelViewType } from \"../type/LikeLevelSubview\";\n\nconst { ccclass, property } = cc._decorator;\n\n@ccclass\n@RegSubview(LikeLevelViewType)\nexport class LikeLevelSubviewImpl extends CCPureSubview<LikeLevelProps> implements LikeLevelView {\n //#region editor bindings\n @property(cc.Sprite)\n private bar = DummySprite;\n @property(cc.Label)\n private label = DummyLabel;\n //#endregion\n\n onLoad() {\n super.onLoad();\n this.bindProp(\"level\", v => {\n this.label.string = v + \"\";\n });\n this.bindProp(\"percent\", v => {\n this.bar.fillRange = v;\n });\n this.bindProp(\"visible\", this.node, \"active\");\n }\n}"]}