Commit 9ea25660 authored by 李维's avatar 李维

sit feedback

parent ed421e7b
......@@ -108,5 +108,5 @@
}
.anticon {
vertical-align: 0;
vertical-align: 2px;
}
\ No newline at end of file
......@@ -18,7 +18,7 @@
</button>
</div>
<h5 *ngIf="customBackground" style="border-top: 2px solid #ddd;">选区字母图:</h5>
<div *ngIf="customBackground" style="width: 200px; margin: auto;">
<div *ngIf="customBackground" style="width: 200px;">
<div class="bg-box">
<app-upload-image-with-preview [picUrl]="bgItem.url" (imageUploaded)="onBackgroundUploadSuccess($event)">
</app-upload-image-with-preview>
......
......@@ -334,22 +334,20 @@ export class PlayComponent implements OnInit, OnDestroy {
y: (65*this.g_mapScale)/2
}
})
element.ref.x = this.g_partTitle_x - 12 * this.g_mapScale + (57*this.g_mapScale)/2;
let text = this.g_cartoon.createLabel(this.g_formData.title.NO, "BerlinSansFBDemi-Bold", "#FFFFFF", 48)
element.ref.addChild(text)
let text = this.g_cartoon.createLabel(this.g_formData.title.NO, "BerlinSansFBDemi-Bold", "#FFFFFF", 48, 35, 0)
let partBG = this.g_cartoon.createCartoonElementImageFunc("part-title-background", "part_number_bg", (w, h)=>{
return {
sx: 121*this.g_mapScale / w,
sy: 69*this.g_mapScale / h,
sx: 117 * this.g_mapScale / w,
sy: 65 * this.g_mapScale / h,
}
}, (w, h)=>{
return {
x: (121*this.g_mapScale)/2,
y: (69*this.g_mapScale)/2
x: 117 * this.g_mapScale / 2,
y: 65 * this.g_mapScale / 2
}
})
partBG.ref.addChild(text)
this.render(partBG.ref)
this.render(element.ref)
}
......@@ -357,9 +355,9 @@ export class PlayComponent implements OnInit, OnDestroy {
initTitle_Main(){
let labelWidth = 0
let text = this.g_cartoon.createCartoonElementLabelFunc("main-title", this.g_formData.title.mainText, "FuturaBT-Medium", "#000000", 36 * this.g_mapScale, (w, h)=>{
labelWidth = w/2
labelWidth = w
return {
x: this.g_partTitle_x - 20 * this.g_mapScale + labelWidth * this.g_mapScale,
x: 128*this.g_mapScale,
y: 5*this.g_mapScale + (65*this.g_mapScale) / 2
}
})
......@@ -367,17 +365,16 @@ export class PlayComponent implements OnInit, OnDestroy {
let background = this.g_cartoon.createCartoonElementImageFunc("main-title-background", "bg_50_20", (w, h)=>{
return {
sx: labelWidth*2 / w,
sx: labelWidth / w,
sy: 50*this.g_mapScale / h,
}
}, (w, h)=>{
return {
x: this.g_partTitle_x + labelWidth + 60 * this.g_mapScale,
x: 128 * this.g_mapScale + (labelWidth / 2),
y: 5*this.g_mapScale + (65*this.g_mapScale) / 2
}
})
text.ref.x = this.g_partTitle_x + 60 * this.g_mapScale
text.ref.textAlign = "left"
this.subscribeMapDownEvent(background.id, ()=>{
......
src/assets/play/bg_50_20.png

1.62 KB | W: | H:

src/assets/play/bg_50_20.png

1.82 KB | W: | H:

src/assets/play/bg_50_20.png
src/assets/play/bg_50_20.png
src/assets/play/bg_50_20.png
src/assets/play/bg_50_20.png
  • 2-up
  • Swipe
  • Onion skin
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