Commit 52d07904 authored by 李维's avatar 李维

更改划掉线颜色

parent 80149629
...@@ -1811,7 +1811,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1811,7 +1811,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
node.anchorY = 0; node.anchorY = 0;
const ctx = node.addComponent(cc.Graphics); const ctx = node.addComponent(cc.Graphics);
ctx.lineWidth = 4; const color = new cc.Color();
cc.Color.fromHEX(color, "#a8a9ad");
ctx.strokeColor = color;
ctx.lineWidth = 3;
// 移动到当前开始节点的中心开始画线 // 移动到当前开始节点的中心开始画线
ctx.moveTo(0, 0); ctx.moveTo(0, 0);
// 终点坐标在上面已经计算好了 这里使用 // 终点坐标在上面已经计算好了 这里使用
......
This diff is collapsed.
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
"rawHeight": 300, "rawHeight": 300,
"borderTop": 19, "borderTop": 19,
"borderBottom": 22, "borderBottom": 22,
"borderLeft": 8, "borderLeft": 0,
"borderRight": 8, "borderRight": 4,
"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