future 1 년 전
부모
커밋
c0b3259699
4개의 변경된 파일29개의 추가작업 그리고 9개의 파일을 삭제
  1. 4 4
      assets/scene/game.scene
  2. 0 1
      assets/script/config.ts
  3. 2 2
      assets/script/http.ts
  4. 23 2
      assets/script/run/tips/tips_view.ts

+ 4 - 4
assets/scene/game.scene

@@ -6073,7 +6073,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 65.2,
+      "y": 74.65,
       "z": 0
     },
     "_lrot": {
@@ -6112,7 +6112,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 862,
-      "height": 50.4
+      "height": 69.3
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -6147,7 +6147,7 @@
     "_actualFontSize": 40,
     "_fontSize": 40,
     "_fontFamily": "Arial",
-    "_lineHeight": 40,
+    "_lineHeight": 55,
     "_overflow": 3,
     "_enableWrapText": true,
     "_font": null,
@@ -6203,7 +6203,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1062,
-      "height": 120.4
+      "height": 139.3
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 0 - 1
assets/script/config.ts

@@ -4,7 +4,6 @@ const { ccclass, property } = _decorator;
 
 export class config {
     static debug = true;
-    static domain = "https://zcapi.xwrun.com";
     static select_res_and_control_type = {
         RES_TYPE:0,
         CONTROL_TYPE:1,

+ 2 - 2
assets/script/http.ts

@@ -3,8 +3,8 @@ import { config } from './config';
 const { ccclass, property } = _decorator;
 @ccclass('http')
 export class http  {
-    public static domain  = "https://zcapi.xwrun.com";
-    public static statistics_domain = "http://logads.xwrun.com";
+    public static domain  = config.debug ? "https://zcapi.xwrun.com" : "https://zcapi.hainanmlwl.com";
+    public static statistics_domain = config.debug ? "http://logads.xwrun.com" : "https://logads.hainanmlwl.com";
 
     static post(url,data,call_back){
          var xml =  new XMLHttpRequest()

+ 23 - 2
assets/script/run/tips/tips_view.ts

@@ -27,8 +27,10 @@ export class tips_view extends Component {
         this.btn_tips.off(Node.EventType.TOUCH_END)
         this.btn_answer.off(Node.EventType.TOUCH_END)
         this.btn_close.off(Node.EventType.TOUCH_END)
+        this.IsShowSecondLevel = false;
         this.isLookTipsVideo = false;
         this.isLookAnswerVideo = false;
+        
         this.btn_tips.on(Node.EventType.TOUCH_END,()=>{
             if(this.isLookTipsVideo){
                 this.showTips()
@@ -37,7 +39,7 @@ export class tips_view extends Component {
                     if(res.isEnded){
                         this.isLookTipsVideo = true;
                         this.showTips()
-                        this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips
+                        this.updateBtnTipStatus()
                     }
                     // 统计-激励视频广告
                     let level_id = gameManager.Singleton.getLevelData().id
@@ -56,7 +58,7 @@ export class tips_view extends Component {
                     if(res.isEnded){
                         this.isLookAnswerVideo = true;
                         this.showAnswer()
-                        this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer
+                        this.updateBtnAnswerStatus()
                     }
                     // 统计-激励视频广告
                     let level_id = gameManager.Singleton.getLevelData().id
@@ -82,6 +84,25 @@ export class tips_view extends Component {
             gameManager.Singleton.sys_click_button_music()
         })
         this.text_view.active = false;
+
+        this.updateBtnTipStatus()
+        this.updateBtnAnswerStatus()
+    }
+
+    private updateBtnTipStatus() {
+        if(this.isLookTipsVideo) {
+            this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips
+        } else {
+            this.btn_tips.getComponent(Sprite).spriteFrame = this.sf_tips_video
+        }
+    }
+    
+    private updateBtnAnswerStatus() {
+        if(this.isLookTipsVideo) {
+            this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer
+        } else {
+            this.btn_answer.getComponent(Sprite).spriteFrame = this.sf_answer_video
+        }
     }
 
     show(){