Commit a66a7ae9 authored by 智慧's avatar 智慧

style:修改进度条的样式适配

parent 0ea01a0c
...@@ -602,8 +602,8 @@ ...@@ -602,8 +602,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 880, "width": 100,
"height": 24 "height": 16
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -667,8 +667,8 @@ ...@@ -667,8 +667,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 876, "width": 16,
"height": 24 "height": 16
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -680,7 +680,7 @@ ...@@ -680,7 +680,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
0, 0,
-13, -8.5,
0, 0,
0, 0,
0, 0,
...@@ -720,7 +720,7 @@ ...@@ -720,7 +720,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "79d95da5-1d6f-4e2e-8db8-aab4e32cf820" "__uuid__": "1f8794d7-3dee-4349-b516-203741dc1b0d"
}, },
"_type": 1, "_type": 1,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -748,7 +748,7 @@ ...@@ -748,7 +748,7 @@
"_target": null, "_target": null,
"_alignFlags": 40, "_alignFlags": 40,
"_left": 0, "_left": 0,
"_right": 4, "_right": 84,
"_top": 0, "_top": 0,
"_bottom": 0, "_bottom": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
......
...@@ -273,6 +273,7 @@ cc.Class({ ...@@ -273,6 +273,7 @@ cc.Class({
let newX = percent * maxX; let newX = percent * maxX;
newX = Math.min(maxX, Math.max(newX, minX)); newX = Math.min(maxX, Math.max(newX, minX));
this.barTag.width = newX; this.barTag.width = newX;
console.log('this.barTag.width', this.barTag.width);
}, },
formatTime(time) { formatTime(time) {
if (time === undefined) { if (time === undefined) {
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f812f764-e14c-474f-9d06-7b615df8f024", "uuid": "94c44a8d-1ba6-47ec-82d1-ddcd565b65a8",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": false,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 314, "width": 306,
"height": 24, "height": 16,
"platformSettings": {}, "platformSettings": {},
"subMetas": { "subMetas": {
"pb-forward-bg": { "pb-forward-bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "79d95da5-1d6f-4e2e-8db8-aab4e32cf820", "uuid": "1f8794d7-3dee-4349-b516-203741dc1b0d",
"rawTextureUuid": "f812f764-e14c-474f-9d06-7b615df8f024", "rawTextureUuid": "94c44a8d-1ba6-47ec-82d1-ddcd565b65a8",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 314, "width": 306,
"height": 24, "height": 16,
"rawWidth": 314, "rawWidth": 306,
"rawHeight": 24, "rawHeight": 16,
"borderTop": 0, "borderTop": 7,
"borderBottom": 0, "borderBottom": 7,
"borderLeft": 31, "borderLeft": 20,
"borderRight": 44, "borderRight": 20,
"subMetas": {} "subMetas": {}
} }
} }
......
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