Bladeren bron

修改大厅按钮bundle资源的获取.(从游戏内放到LB)

zhaoyu_ma 4 maanden geleden
bovenliggende
commit
2aeaf54865
37 gewijzigde bestanden met toevoegingen van 41 en 11 verwijderingen
  1. 2 2
      luckypot_sp/assets/Lobby/scripts/BundleLoaderManager.js
  2. 1 0
      luckypot_sp/assets/Lobby/scripts/HNScenceManager.js
  3. 5 5
      luckypot_sp/assets/Lobby/scripts/homesence/GameBtn/GameBtn3100.js
  4. 3 3
      luckypot_sp/assets/Lobby/scripts/homesence/GameBtn/GameBtn3101.js
  5. 6 1
      luckypot_sp/assets/Lobby/scripts/homesence/homeStartDev.js
  6. 12 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG.meta
  7. 12 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow.meta
  8. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox.meta
  9. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.atlas
  10. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.atlas.meta
  11. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.json
  12. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.json.meta
  13. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.png
  14. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.png.meta
  15. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_2.png
  16. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_2.png.meta
  17. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_3.png
  18. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_3.png.meta
  19. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse.meta
  20. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.atlas
  21. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.atlas.meta
  22. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.json
  23. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.json.meta
  24. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.png
  25. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.png.meta
  26. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.atlas
  27. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.atlas.meta
  28. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.json
  29. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.json.meta
  30. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.png
  31. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.png.meta
  32. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.atlas
  33. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.atlas.meta
  34. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.json
  35. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.json.meta
  36. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.png
  37. 0 0
      luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.png.meta

+ 2 - 2
luckypot_sp/assets/Lobby/scripts/BundleLoaderManager.js

@@ -155,12 +155,12 @@ class BundleLoaderManager {
             }, [GameConstant.KIND_ID_MOUSE]: {
                 bundle: "slotMousebundle",
                 taskID: 99,
-                importBundle: [],
+                importBundle: ["LB"],
                 gamePrefabPath: ["slotMouse"]
             }, [GameConstant.KIND_ID_NCOW]: {
                 bundle: "slotNCowbundle",
                 taskID: 99,
-                importBundle: [],
+                importBundle: ["LB"],
                 gamePrefabPath: ["slotNCow"]
             }, [GameConstant.KIND_ID_NTIGER]: {
                 bundle: "slotNTigerbundle",

+ 1 - 0
luckypot_sp/assets/Lobby/scripts/HNScenceManager.js

@@ -310,6 +310,7 @@ class HNScenceManager {
                     window.nowBundle = null;
                     bundle.releaseAll();
                     cc.assetManager.removeBundle(bundle);
+                    cc.vv.GetHallScript().setPreLoadBundle();
                 }, 100)
             }
 

+ 5 - 5
luckypot_sp/assets/Lobby/scripts/homesence/GameBtn/GameBtn3100.js

@@ -23,7 +23,7 @@ cc.Class({
     // update (dt) {},
 
     onSetBtnBundle(data){
-        if(data.wKindID != 3100) return;
+        // if(data.wKindID != 3100) return;
         cc.tween(this.spNode)
             .to(0.8, { opacity: 255 })
         .start();
@@ -32,9 +32,9 @@ cc.Class({
         .start();
 
         let self = this;
-        let tempBundle = cc.assetManager.getBundle('slotMousebundle');
+        let tempBundle = cc.assetManager.getBundle('LB');
         if(tempBundle){
-            tempBundle.load('spine/mouse/laoshuguang', sp.SkeletonData, (err, data)=>{
+            tempBundle.load('spine/PG/mouse/laoshuguang', sp.SkeletonData, (err, data)=>{
                 if(err){
                     console.log('err: ', err);
                     return;
@@ -44,7 +44,7 @@ cc.Class({
                 }
             });
 
-            tempBundle.load('spine/mouse/laoshu', sp.SkeletonData, (err, data)=>{
+            tempBundle.load('spine/PG/mouse/laoshu', sp.SkeletonData, (err, data)=>{
                 if(err){
                     console.log('err: ', err);
                     return;
@@ -54,7 +54,7 @@ cc.Class({
                 }
             });
 
-            tempBundle.load('spine/mouse/laoshu2', sp.SkeletonData, (err, data)=>{
+            tempBundle.load('spine/PG/mouse/laoshu2', sp.SkeletonData, (err, data)=>{
                 if(err){
                     console.log('err: ', err);
                     return;

+ 3 - 3
luckypot_sp/assets/Lobby/scripts/homesence/GameBtn/GameBtn3101.js

@@ -15,7 +15,7 @@ cc.Class({
     },
 
     onSetBtnBundle(data){
-        if(data.wKindID != 3101) return;
+        // if(data.wKindID != 3101) return;
         cc.tween(this.spNode)
             .to(0.8, { opacity: 255 })
         .start();
@@ -24,9 +24,9 @@ cc.Class({
         .start();
 
         let self = this;
-        let tempBundle = cc.assetManager.getBundle('slotNCowbundle');
+        let tempBundle = cc.assetManager.getBundle('LB');
         if(tempBundle){
-            tempBundle.load('spine/avatar_ox/avatar_ox', sp.SkeletonData, (err, data)=>{
+            tempBundle.load('spine/PG/cow/avatar_ox/avatar_ox', sp.SkeletonData, (err, data)=>{
                 if(err){
                     console.log('err: ', err);
                     return;

+ 6 - 1
luckypot_sp/assets/Lobby/scripts/homesence/homeStartDev.js

@@ -157,14 +157,19 @@ cc.Class({
     },
 
     setPreLoadBundle(){
-        return;
+       
+        /*
         for(let item of cc.vv.miniGameSort){
             this.preArr.push(item.KindID);        
         }
+        */
 
         cc.assetManager.loadBundle('LB', () => {
         }, (err, bundle) => {
+            /*
             this.preRes();
+            */
+            EventMgr.getInstance().postEvent('setBtnBundle');
         });
     },  
 

+ 12 - 0
luckypot_sp/assets/SubGamePublic/LB/spine/PG.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "352b25bc-5382-4aac-a4b7-33e5d151e04a",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 12 - 0
luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow.meta

@@ -0,0 +1,12 @@
+{
+  "ver": "1.1.2",
+  "uuid": "3e50d972-76d0-4199-81c5-2217a60c965b",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.atlas → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.atlas


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.atlas.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.atlas.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.json → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.json


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.json.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.json.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox.png.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox_2.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_2.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox_2.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_2.png.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox_3.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_3.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotNCowbundle/spine/avatar_ox/avatar_ox_3.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/cow/avatar_ox/avatar_ox_3.png.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.atlas → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.atlas


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.atlas.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.atlas.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.json → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.json


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.json.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.json.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu.png.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.atlas → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.atlas


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.atlas.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.atlas.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.json → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.json


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.json.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.json.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshu2.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshu2.png.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.atlas → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.atlas


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.atlas.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.atlas.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.json → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.json


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.json.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.json.meta


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.png → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.png


+ 0 - 0
luckypot_sp/assets/SubGame/slotMousebundle/spine/mouse/laoshuguang.png.meta → luckypot_sp/assets/SubGamePublic/LB/spine/PG/mouse/laoshuguang.png.meta