Commit 8f3b8fc7 authored by yu's avatar yu

滑动条隐藏

parent bafe6fdf
...@@ -4251,7 +4251,7 @@ ...@@ -4251,7 +4251,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 2176, "width": 2176,
"height": 1600 "height": 1650
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -4263,7 +4263,7 @@ ...@@ -4263,7 +4263,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 25,
0, 0,
0, 0,
0, 0,
...@@ -4316,7 +4316,7 @@ ...@@ -4316,7 +4316,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 2176, "width": 2176,
"height": 1600 "height": 1650
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -4706,7 +4706,7 @@ ...@@ -4706,7 +4706,7 @@
"_alignFlags": 45, "_alignFlags": 45,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": -50,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
......
...@@ -718,8 +718,6 @@ cc.Class({ ...@@ -718,8 +718,6 @@ cc.Class({
let card_group = cc.find("card_group", this.node); let card_group = cc.find("card_group", this.node);
let slider = cc.find("slider", card_group); let slider = cc.find("slider", card_group);
slider.action = true; slider.action = true;
let handle = cc.find("Handle", slider);
handle.active = true;
let sl = slider.getComponent(cc.Slider) let sl = slider.getComponent(cc.Slider)
sl.progress = 0; sl.progress = 0;
let t = time / 10; let t = time / 10;
...@@ -736,10 +734,10 @@ cc.Class({ ...@@ -736,10 +734,10 @@ cc.Class({
.to(t, { progress: 1 }).call(() => { .to(t, { progress: 1 }).call(() => {
this.setCardColor(sl.progress); this.setCardColor(sl.progress);
this.hideBox(); this.hideBox();
let handle = cc.find("Handle", slider); slider.active = false;
handle.active = false; sl.progress = 0;
}) })
.delay(0.5).call(() => { .delay(0.8).call(() => {
return resolve("") return resolve("")
}) })
.start(); .start();
......
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