future 1 year ago
parent
commit
154e9ed260

+ 90 - 0
assets/run/ani/clock_ani.anim

@@ -0,0 +1,90 @@
+[
+  {
+    "__type__": "cc.AnimationClip",
+    "_name": "clock_ani",
+    "_objFlags": 0,
+    "__editorExtras__": {
+      "embeddedPlayerGroups": []
+    },
+    "_native": "",
+    "sample": 60,
+    "speed": 0.2,
+    "wrapMode": 2,
+    "enableTrsBlending": false,
+    "_duration": 0.18333333333333332,
+    "_hash": 500763545,
+    "_tracks": [
+      {
+        "__id__": 1
+      }
+    ],
+    "_exoticAnimation": null,
+    "_events": [],
+    "_embeddedPlayers": [],
+    "_additiveSettings": {
+      "__id__": 7
+    },
+    "_auxiliaryCurveEntries": []
+  },
+  {
+    "__type__": "cc.animation.ObjectTrack",
+    "_binding": {
+      "__type__": "cc.animation.TrackBinding",
+      "path": {
+        "__id__": 2
+      },
+      "proxy": null
+    },
+    "_channel": {
+      "__id__": 5
+    }
+  },
+  {
+    "__type__": "cc.animation.TrackPath",
+    "_paths": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 4
+      },
+      "spriteFrame"
+    ]
+  },
+  {
+    "__type__": "cc.animation.HierarchyPath",
+    "path": "img_clock"
+  },
+  {
+    "__type__": "cc.animation.ComponentPath",
+    "component": "cc.Sprite"
+  },
+  {
+    "__type__": "cc.animation.Channel",
+    "_curve": {
+      "__id__": 6
+    }
+  },
+  {
+    "__type__": "cc.ObjectCurve",
+    "_times": [
+      0,
+      0.16666666666666666
+    ],
+    "_values": [
+      {
+        "__uuid__": "94502ddd-0b27-472a-b338-4bcfa7e7735b@f9941",
+        "__expectedType__": "cc.SpriteFrame"
+      },
+      {
+        "__uuid__": "8944a2ad-36a9-47d0-bf55-1378eb7cd3ee@f9941",
+        "__expectedType__": "cc.SpriteFrame"
+      }
+    ]
+  },
+  {
+    "__type__": "cc.AnimationClipAdditiveSettings",
+    "enabled": false,
+    "refClip": null
+  }
+]

+ 13 - 0
assets/run/ani/clock_ani.anim.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "2.0.3",
+  "importer": "animation-clip",
+  "imported": true,
+  "uuid": "79bc90aa-6a7a-4307-b42c-45afeaaf50a5",
+  "files": [
+    ".cconb"
+  ],
+  "subMetas": {},
+  "userData": {
+    "name": "clock_ani"
+  }
+}

File diff suppressed because it is too large
+ 168 - 139
assets/scene/game.scene


+ 3 - 2
assets/script/run/game_list_view/game_list.ts

@@ -15,6 +15,7 @@ const { ccclass, property } = _decorator;
 export class game_list extends Component {
     @property(Node) btn_back:Node = null;
     @property(Node) lab_cur_select_page:Node = null;
+    @property(Node) level_list_bg:Node = null;
     @property(Node) content:Node = null;
     @property(Prefab) game_level_item:Prefab = null;
     private m_back_call = null;
@@ -67,8 +68,8 @@ export class game_list extends Component {
     }
 
     public initContentPosition() {
-        // let content_position_y = (this.node.getComponent(UITransform).height - this.content.getComponent(UITransform).height) / 2
-        // this.content.setPosition(this.content.position.x, -content_position_y, 1)
+        let level_list_bg_y = (this.node.getComponent(UITransform).height) / 2
+        this.level_list_bg.setPosition(this.level_list_bg.position.x, -level_list_bg_y, 1)
 
         let layout = this.content.getComponent(Layout)
         let item = instantiate(this.game_level_item)

Some files were not shown because too many files changed in this diff