Commit 7bced400 authored by Chen Jiping's avatar Chen Jiping

fix:调整气泡显示层次

parent 772c013e
...@@ -512,6 +512,7 @@ cc.Class({ ...@@ -512,6 +512,7 @@ cc.Class({
} }
let bubble_bg = cc.find('Canvas/stage/centerPart/bubble_bg'); let bubble_bg = cc.find('Canvas/stage/centerPart/bubble_bg');
bubble_bg.zIndex = 4;
bubbleSpr.node.parent = bubble_bg; bubbleSpr.node.parent = bubble_bg;
...@@ -530,6 +531,7 @@ cc.Class({ ...@@ -530,6 +531,7 @@ cc.Class({
bubbleSpr.node.x = x; bubbleSpr.node.x = x;
bubbleSpr.node.y = y; bubbleSpr.node.y = y;
bubbleSpr.node.scale = 0; bubbleSpr.node.scale = 0;
bubbleSpr.zIndex = 5;
centerPart.bubbleArr[i] = bubbleSpr.node; centerPart.bubbleArr[i] = bubbleSpr.node;
bubbleSpr.node.addComponent(cc.Button) bubbleSpr.node.addComponent(cc.Button)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment