Commit f4f58373 authored by Chen Jiping's avatar Chen Jiping

完善

parent cc34407c
......@@ -698,7 +698,7 @@ export class PlayComponent implements OnInit, OnDestroy {
//初始化标题
const titePart1Bg = new MySprite();
titePart1Bg.init(this.images.get('titlePart1Bg'));
titePart1Bg.x = 60 * this.mapScale + titePart1Bg.width / 2;
titePart1Bg.x = 60 + titePart1Bg.width / 2;
titePart1Bg.y = titePart1Bg.height / 2;
//标题1内容
......@@ -719,7 +719,7 @@ export class PlayComponent implements OnInit, OnDestroy {
part2.fontName = "FUTURAB";
part2.fontColor = "#000000";
part2.refreshSize();
part2.x = titePart1Bg.width + 70 * this.mapScale;
part2.x = titePart1Bg.width + 10 * this.mapScale + 60;
part2.y = titePart1Bg.height / 2;
let bgWidth = titePart1Bg.width + part2.getBoundingBox().width + 10 * this.mapScale;
......
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