future 1 gadu atpakaļ
vecāks
revīzija
e7f09c437b

+ 17 - 14
assets/resources/prefabs/dialog.prefab

@@ -346,7 +346,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0.08,
-      "y": 17.738,
+      "y": 23.738,
       "z": 0
     },
     "_lrot": {
@@ -386,7 +386,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 197.971302632753,
+      "width": 197.99146943933823,
       "height": 67.8
     },
     "_anchorPoint": {
@@ -425,7 +425,7 @@
     "_string": "请检查您的网络状态\n重新连接",
     "_horizontalAlign": 1,
     "_verticalAlign": 1,
-    "_actualFontSize": 32.02463054187192,
+    "_actualFontSize": 32.241379310344826,
     "_fontSize": 22,
     "_fontFamily": "Arial",
     "_lineHeight": 30,
@@ -489,7 +489,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -53.08699999999999,
+      "y": -51.087,
       "z": 0
     },
     "_lrot": {
@@ -542,7 +542,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 67.638,
-      "y": 10,
+      "y": 0,
       "z": 0
     },
     "_lrot": {
@@ -554,8 +554,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 0.3,
-      "y": 0.3,
+      "x": 0.35,
+      "y": 0.35,
       "z": 1
     },
     "_mobility": 0,
@@ -684,7 +684,10 @@
       "b": 124,
       "a": 255
     },
-    "_normalSprite": null,
+    "_normalSprite": {
+      "__uuid__": "3da0abaf-e986-4046-8f63-94e3cf361c3b@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
     "_hoverSprite": null,
     "_pressedSprite": null,
     "_disabledSprite": null,
@@ -737,7 +740,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": -73.284,
-      "y": 10,
+      "y": 0,
       "z": 0
     },
     "_lrot": {
@@ -749,8 +752,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 0.3,
-      "y": 0.3,
+      "x": 0.35,
+      "y": 0.35,
       "z": 1
     },
     "_mobility": 0,
@@ -935,7 +938,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 5.001,
-      "y": 10,
+      "y": 0,
       "z": 0
     },
     "_lrot": {
@@ -947,8 +950,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 0.3,
-      "y": 0.3,
+      "x": 0.35,
+      "y": 0.35,
       "z": 1
     },
     "_mobility": 0,

+ 4 - 1
assets/script/homepage/play_page_list_item.ts

@@ -27,8 +27,11 @@ export class play_page_list_item extends Component {
                 console.log(config.get_play_type_name(this.m_data.id))
                 if (this.m_data.id === config.PLAY_TYPE.JI_YI_LI || this.m_data.id === config.PLAY_TYPE.DOU_DI_ZHU) {
                     if (gameManager.get_user_coin() >= this.m_data.consume_coin) {
-                        gameManager.sub_coin(this.m_data.consume_coin)
+                        let string = `使用${this.m_data.consume_coin}金币\n解锁${this.m_data.name}游戏`
+                        tools.showDialog(string, ()=> {
+                            gameManager.sub_coin(this.m_data.consume_coin)
                         this.m_call_back(this.m_data);
+                        }, null)
                     } else {
                         this.showViewLack()
                     }