Commit a66a7ae9 authored by 智慧's avatar 智慧

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

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