Commit 6e419ec5 authored by yu's avatar yu

进度条隐藏

parent 9dae1f68
...@@ -5047,7 +5047,7 @@ ...@@ -5047,7 +5047,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",
...@@ -5059,7 +5059,7 @@ ...@@ -5059,7 +5059,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
0, 25,
0, 0,
0, 0,
0, 0,
...@@ -5112,7 +5112,7 @@ ...@@ -5112,7 +5112,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",
...@@ -5502,7 +5502,7 @@ ...@@ -5502,7 +5502,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,
......
...@@ -802,8 +802,6 @@ cc.Class({ ...@@ -802,8 +802,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.active = true; slider.active = 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;
...@@ -819,13 +817,11 @@ cc.Class({ ...@@ -819,13 +817,11 @@ cc.Class({
.to(t, { progress: 0.9 }).call(() => { this.setCardColor(sl.progress); }) .to(t, { progress: 0.9 }).call(() => { this.setCardColor(sl.progress); })
.to(t, { progress: 1 }).call(() => { .to(t, { progress: 1 }).call(() => {
this.setCardColor(sl.progress); this.setCardColor(sl.progress);
let handle = cc.find("Handle", slider); slider.active = false;
handle.active = false;
}) })
.delay(1).call(() => { .delay(1).call(() => {
this.hideBox(); this.hideBox();
let handle = cc.find("Handle", slider); sl.progress = 0;
handle.active = false;
}) })
.delay(0.5).call(() => { .delay(0.5).call(() => {
return resolve("") return resolve("")
......
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