xx 1 سال پیش
والد
کامیت
575a745bd9

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 169 - 1092
assets/resources/prefabs/game_play_ji_yi_li.prefab


+ 614 - 0
assets/resources/prefabs/question_item.prefab

@@ -0,0 +1,614 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "question_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "question_item",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 16
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 22
+      },
+      {
+        "__id__": 24
+      }
+    ],
+    "_prefab": {
+      "__id__": 26
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 154.8,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Toggle",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 3
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 9
+      },
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 13
+      }
+    ],
+    "_prefab": {
+      "__id__": 15
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -74.993,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Checkmark",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 2
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 4
+      },
+      {
+        "__id__": 6
+      }
+    ],
+    "_prefab": {
+      "__id__": 8
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 3
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 5
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 26,
+      "height": 26
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "11MoArP0BEoLSRXHIiYHel"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 3
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 7
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "158e7e52-3220-4cd7-9694-713e0e6e8278@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "46IbHLqulAqJf713PMDspJ"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "63GfPoNJhBCLdQ6xANG/1K",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 10
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 28,
+      "height": 28
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "7fhUspdOFExK75eL5T6l75"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 12
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "11bdc4b0-64a8-4eb7-a2a7-9fb9e233e977@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b9p+Ks2qdKO6DzvKsJNKgb"
+  },
+  {
+    "__type__": "cc.Toggle",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 14
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 0,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 214,
+      "g": 214,
+      "b": 214,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": {
+      "__uuid__": "11bdc4b0-64a8-4eb7-a2a7-9fb9e233e977@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 1.2,
+    "_target": {
+      "__id__": 2
+    },
+    "checkEvents": [],
+    "_isChecked": true,
+    "_checkMark": {
+      "__id__": 6
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "087+CHWwxGh59+dz8/U7sA"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b8P219D+BDmZilCfD4mvX/",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 19
+      }
+    ],
+    "_prefab": {
+      "__id__": 21
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -26.783,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 18
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 65.56640625,
+      "height": 25.2
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "0fQDDBA2RK1KqqJeKc/GQN"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 16
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 20
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_string": "A、0个",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 20,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "6e1XAoGHhM7q9elYP6fi+2"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "60R9YB9gtGk5QSZ3H7Uvzk",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 23
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 345,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a0g+eZexFJWoRZxtgV+NCQ"
+  },
+  {
+    "__type__": "10810Y/Ni9JxK8VGY4EyOZM",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 25
+    },
+    "lab_question_item": {
+      "__id__": 16
+    },
+    "check_box": {
+      "__id__": 2
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "90r22W6lxBVp0KFt5RUhFO"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "4517VuGEBLIbB5915XAtLI",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/prefabs/question_item.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.45",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "5bc8aeab-09a8-4ddb-991c-94c422d280d4",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "question_item"
+  }
+}

+ 26 - 7
assets/script/play_list/base_view.ts

@@ -153,22 +153,37 @@ export class base_view extends Component {
         }
         this.time_all_count = time;
         this.lab_time_count.active = true;
+       
         let self = this;
         this.time_count = 0;
-        self.progressbar.progress = 1;
-        self.clock_ani.getComponent(clock_angle).init();
+        if(self.progressbar){
+            self.progressbar.progress = 1;
+        }
+        
+        if(self.clock_ani){
+            self.clock_ani.getComponent(clock_angle).init();
+        }
         this.schedule(()=>{
             if(self.isPause){
                 return;
             }
             if(self.time_count<self.time_all_count){
                 self.time_count+=1;
-                self.progressbar.progress = (self.time_all_count-self.time_count)/self.time_all_count;
-                self.lab_time_count.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
-                self.clock_ani.getComponent(clock_angle).addSecond();
+                if(this.categoryid===config.PLAY_TYPE.JI_YI_LI){
+                    self.lab_time_count.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
+                }else{
+                    self.progressbar.progress = (self.time_all_count-self.time_count)/self.time_all_count;
+                    self.lab_time_count.getComponent(Label).string = `${this.time_all_count-this.time_count}s`
+                    self.clock_ani.getComponent(clock_angle).addSecond();
+                }
+       
             }else{
                 self.lab_time_count.getComponent(Label).string = "0s";
-                self.showFail()
+                if(this.categoryid===config.PLAY_TYPE.JI_YI_LI){
+                    self.showQuestion()
+                }else{
+                    self.showFail()
+                }
                 self.stop_time_count();
             }
         },1)
@@ -193,7 +208,10 @@ export class base_view extends Component {
                 gameManager.playFailSoundByCategoryId(this.categoryid)
                 if(this.categoryid===config.PLAY_TYPE.DOU_DI_ZHU){
                     node.getComponent(fail).showDDZView(this.onFailReStartClick.bind(this),this.m_data.ads_restart)
-                }else{
+                }else if(this.categoryid===config.PLAY_TYPE.JI_YI_LI){
+                    node.getComponent(fail).showDDZView(this.onFailReStartClick.bind(this),this.m_data.ads_restart)
+                }
+                else{
                     node.getComponent(fail).showView(this.m_data.extend_time,this.onFailExtendTimeClick.bind(this),this.onFailReStartClick.bind(this),this.m_data.ads_restart)
                 }
             })
@@ -344,6 +362,7 @@ export class base_view extends Component {
     protected initView(data,isUpdate=false): void{}
     protected initUI(): void{}
     protected onTipBtnClick(): void{}
+    protected showQuestion(): void{}
     
 }
 

+ 23 - 0
assets/script/play_list/ji_yi_li/question.ts

@@ -0,0 +1,23 @@
+import { _decorator, Component, instantiate, Label, Node, Prefab } from 'cc';
+import { question_item } from './question_item';
+const { ccclass, property } = _decorator;
+
+@ccclass('question')
+export class question extends Component {
+    @property(Node) lab_question:Node;
+    @property(Prefab) question_item_prefab:Prefab;
+    @property(Node) content:Node;
+    public initView(str_problem:string,memory_answer:string[],correct_answer:string,call_back){
+        this.content.removeAllChildren()
+        let answer_index = parseInt(correct_answer)-1;
+        this.lab_question.getComponent(Label).string = str_problem;
+        for (let index = 0; index < memory_answer.length; index++) {
+            const answer = memory_answer[index];
+            let item = instantiate(this.question_item_prefab)
+            item.parent = this.content;
+            item.getComponent(question_item).initView(answer,index===answer_index,call_back)
+        }
+    }
+}
+
+

+ 9 - 0
assets/script/play_list/ji_yi_li/question.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "ba8dff95-e33a-4447-80c0-35f0a952a478",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 19 - 0
assets/script/play_list/ji_yi_li/question_item.ts

@@ -0,0 +1,19 @@
+import { _decorator, Component, Label, Node, Toggle } from 'cc';
+const { ccclass, property } = _decorator;
+
+@ccclass('question_item')
+export class question_item extends Component {
+    @property(Node) lab_question_item:Node;
+    @property(Node) check_box:Node;
+    private m_isRight = false;
+    public initView(item_title:string,is_right,call_back){
+        this.m_isRight = is_right;
+        this.lab_question_item.getComponent(Label).string = item_title;
+        this.check_box.getComponent(Toggle).isChecked = false;
+        this.check_box.on(Node.EventType.TOUCH_END,()=>{
+            call_back(this.m_isRight)
+        })
+    }
+}
+
+

+ 9 - 0
assets/script/play_list/ji_yi_li/question_item.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "1081063f-362f-49c4-af15-198e04c8e64c",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 61 - 3
assets/script/play_list/ji_yi_li/view_game_play_ji_yi_li.ts

@@ -1,14 +1,18 @@
-import { _decorator, Component, Node, Sprite } from 'cc';
+import { _decorator, Component, Label, Node, Sprite, utils } from 'cc';
 import { base_view } from '../base_view';
 import { config } from '../../config';
 import { gameManager } from '../../gameManager';
 import { tools } from '../../tools';
+import { question } from './question';
+import { fail } from '../../dialog/fail';
+import { SdkUtil } from '../../framework/sdkUtil';
+import { Util } from '../../framework/util';
 const { ccclass, property } = _decorator;
 
 @ccclass('view_game_play_ji_yi_li')
 export class view_game_play_ji_yi_li extends base_view {
   @property(Node) img_1:Node;
-  @property(Node) lab_countdown:Node;
+  @property(Node) question_node:Node;
   protected initUI(): void {
       
   }
@@ -19,7 +23,7 @@ export class view_game_play_ji_yi_li extends base_view {
     this.categoryid = config.PLAY_TYPE.JI_YI_LI
     let levels_item = gameManager.get_cur_level_by_categoryid(this.categoryid);
     let call_back = ()=>{
-
+      self.initAnswerView()
     }
     tools.loadRemoteImgByCategoryid(this.categoryid,levels_item.level,this.m_data.img,(sf)=>{
         self.img_1.getComponent(Sprite).spriteFrame = sf;
@@ -27,6 +31,60 @@ export class view_game_play_ji_yi_li extends base_view {
     })
   }
 
+  showStep1(){
+    this.img_1.active = true;
+    this.question_node.active = false;
+    this.lab_title.active = true;
+    this.lab_time_count.active = true;
+  }
+  showStep2(){
+    this.img_1.active = false;
+    this.question_node.active = true;
+    this.lab_title.active = false;
+    this.lab_time_count.active = false;
+  }
+  initAnswerView(){
+    this.showStep1()
+    let index = Util.getRandomInt(0,this.m_data.memory_problem.length-1);
+    this.isShowWin = false;
+    this.old_coin_number = gameManager.get_user_coin();
+    this.lab_coin.getComponent(Label).string = Util.coinNumberToK(this.old_coin_number);
+    this.lab_title.getComponent(Label).string = this.m_data.name;
+    let problem = this.m_data.memory_problem[index];
+    let answer = this.m_data.memory_answer[index];
+    let correct_answer = this.m_data.memory_correct_answer[index];
+    this.question_node.getComponent(question).initView(problem,answer,correct_answer,this.on_question_item_click.bind(this))
+    this.start_time_count(this.m_data.s_time)
+  }
+
+  on_question_item_click(isRight:boolean){
+    if(isRight){
+      this.showWin()
+    }else{
+      this.showFail()
+    }
+  }
+
+  protected showQuestion(): void {
+    this.showStep2()
+  }
+
+  protected onFailReStartClick(fail_view: fail): void {
+    gameManager.playBtnSound()
+    let self = this;
+    if(this.m_data.ads_restart==1){
+        SdkUtil.showVideoAd(config.rewardVideoAdUnitId.Resume_AdUnitId,(res)=>{
+            if(res.isEnded){
+                self.initAnswerView()
+                fail_view.close()
+            }
+        })
+    }else{
+        fail_view.close()
+        self.initAnswerView()
+    }
+  }
+
 }
 
 

+ 5 - 1
assets/script/play_list/zhao_bu_tong/view_game_play_zhao_bu_tong.ts

@@ -1,4 +1,4 @@
-import { _decorator, Component, instantiate, Node, Prefab, SpriteFrame, UITransform, Vec3 } from 'cc';
+import { _decorator, Component, instantiate, Label, Node, Prefab, SpriteFrame, UITransform, Vec3 } from 'cc';
 import { base_view } from '../base_view';
 import { tools } from '../../tools';
 import { gameManager } from '../../gameManager';
@@ -7,6 +7,7 @@ import { diff_child_item } from './diff_child_item';
 import { config } from '../../config';
 import { SdkUtil } from '../../framework/sdkUtil';
 import { fail } from '../../dialog/fail';
+import { Util } from '../../framework/util';
 const { ccclass, property } = _decorator;
 
 @ccclass('view_game_play_zhao_bu_tong')
@@ -101,7 +102,10 @@ export class view_game_play_zhao_bu_tong extends base_view {
     initGridList(){
         let isOffset = false;
         this.grid_list.removeAllChildren()
+        this.old_coin_number = gameManager.get_user_coin();
+        this.lab_coin.getComponent(Label).string = Util.coinNumberToK(this.old_coin_number);
         let list:any[] =JSON.parse(this.m_data.content);
+        this.lab_title.getComponent(Label).string = this.m_data.name;
         for (let index = 0; index < list.length; index++) {
             const item_list:[] = list[index];
             let item:Node = instantiate(this.item_prefab)

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است