Commit 1a5159a2 authored by limingzhe's avatar limingzhe

style: 标题样式修改

parent 21144371
...@@ -834,8 +834,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -834,8 +834,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this.title1.refreshSize(); this.title1.refreshSize();
this.t1Bg.addChild(this.title1); this.t1Bg.addChild(this.title1);
this.title1.setMaxSize(52); this.title1.setMaxSize(52);
this.title1.x = -2; this.title1.x = -2 + this.t1Bg.width / 2;
this.title1.y = 1; this.title1.y = 1 + this.t1Bg.height / 2;
//大标题 //大标题
let bgRect = new ShapeRect(); let bgRect = new ShapeRect();
bgRect.setSize(1000, 60); bgRect.setSize(1000, 60);
...@@ -850,13 +850,14 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -850,13 +850,14 @@ export class PlayComponent implements OnInit, OnDestroy {
this.title2.text = this.data.title.t_val2; this.title2.text = this.data.title.t_val2;
this.title2.fontName = 'FUTURAB'; this.title2.fontName = 'FUTURAB';
this.title2.fontColor = '#040404'; this.title2.fontColor = '#040404';
this.title2.fontSize = 30; this.title2.fontSize = 50 * this.t1Bg.scaleX;
this.title2.textAlign = 'left'; this.title2.textAlign = 'left';
this.title2.refreshSize(); this.title2.refreshSize();
bgRect.addChild(this.title2); // bgRect.addChild(this.title2);
this.title2.setMaxSize(1000); this.title2.setMaxSize(1000);
this.title2.x = -514; this.title2.x = this.t1Bg.x + (this.t1Bg.width + 10) * this.t1Bg.scaleX;
this.title2.y = 0; this.title2.y = this.t1Bg.y + (this.t1Bg.height / 2 + 6) * this.t1Bg.scaleY;
this.renderArr.push(this.title2);
this.bgRect = bgRect; this.bgRect = bgRect;
} }
...@@ -880,10 +881,22 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -880,10 +881,22 @@ export class PlayComponent implements OnInit, OnDestroy {
//标题一背景块 //标题一背景块
this.t1Bg = new MySprite(); // this.t1Bg = new MySprite();
this.t1Bg.init(this.images.get('title1')); // this.t1Bg.init(this.images.get('title1'));
//
// this.t1Bg.setScaleXY(this.mapScale / 1.6);
const bgRect2 = new ShapeRect();
bgRect2.setSize(57, 65);
bgRect2.fillColor = '#AB5B22';
const sx2 = this.canvasWidth / this.canvasBaseW;
bgRect2.setScaleXY(sx2);
bgRect2.x = 65 * sx2;
this.t1Bg = bgRect2;
this.renderArr.push(bgRect2);
this.t1Bg.setScaleXY(this.mapScale / 1.6);
//句子背景 //句子背景
this.juziBg = new MySprite(); this.juziBg = new MySprite();
this.juziBg.init(this.images.get('juzi')); this.juziBg.init(this.images.get('juzi'));
...@@ -905,9 +918,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -905,9 +918,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// this.juziBg.y=-2; // this.juziBg.y=-2;
this.juziBg.addChild(this.t1Bg); // this.juziBg.addChild(this.t1Bg);
this.t1Bg.x = -510; // this.t1Bg.x = -510;
this.t1Bg.y = -340; // this.t1Bg.y = -340;
//句子方块 //句子方块
this.juzi_bg = new ShapeRect(); this.juzi_bg = new ShapeRect();
this.juzi_bg.fillColor = '#ffffff'; this.juzi_bg.fillColor = '#ffffff';
...@@ -1181,7 +1194,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -1181,7 +1194,8 @@ export class PlayComponent implements OnInit, OnDestroy {
this.updateArr(this.renderArr); this.updateArr(this.renderArr);
this.updateItem(this.t1Bg);
this.updateItem(this.title2);
} }
......
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