Commit c458b230 authored by 李维's avatar 李维

Bug fix

parent 3c674bf7
......@@ -322,8 +322,8 @@ export class PlayComponent implements OnInit, OnDestroy {
let sliderBG = this.g_cartoon.createCartoonElementImageFunc("slider-background", "bgSlider", (w, h)=>{
return {
sx: 14 / w,
sy: 552 / h,
sx: 14 * this.g_mapScale / w,
sy: 552* this.g_mapScale / h,
}
}, (w, h)=>{
return {
......@@ -767,10 +767,10 @@ export class PlayComponent implements OnInit, OnDestroy {
}
createTestLabel() {
let testLabel_1 = this.g_cartoon.createCartoonElementLabel(`test-label-1`, "TEST_YOU_CANT_SEE_THIS", "BRLNSDB_1", "#000000", 42 * this.g_mapScale);
let testLabel_2 = this.g_cartoon.createCartoonElementLabel(`test-label-2`, "TEST_YOU_CANT_SEE_THIS", "DFChu-W4-WIN-BF", "#000000", 42 * this.g_mapScale);
let testLabel_3 = this.g_cartoon.createCartoonElementLabel(`test-label-3`, "TEST_YOU_CANT_SEE_THIS", "FuturaStd-Medium", "#000000", 42 * this.g_mapScale);
let testLabel_4 = this.g_cartoon.createCartoonElementLabel(`test-label-4`, "TEST_YOU_CANT_SEE_THIS", "GOTHICB_1", "#000000", 42 * this.g_mapScale);
let testLabel_1 = this.g_cartoon.createCartoonElementLabel(`test-label-1`, "TEST_YOU_CANT_SEE_THIS", "BRLNSDB_1", "#FFFFFF", 42 * this.g_mapScale);
let testLabel_2 = this.g_cartoon.createCartoonElementLabel(`test-label-2`, "TEST_YOU_CANT_SEE_THIS", "DFChu-W4-WIN-BF", "#FFFFFF", 42 * this.g_mapScale);
let testLabel_3 = this.g_cartoon.createCartoonElementLabel(`test-label-3`, "TEST_YOU_CANT_SEE_THIS", "FuturaStd-Medium", "#FFFFFF", 42 * this.g_mapScale);
let testLabel_4 = this.g_cartoon.createCartoonElementLabel(`test-label-4`, "TEST_YOU_CANT_SEE_THIS", "GOTHICB_1", "#FFFFFF", 42 * this.g_mapScale);
this.render(testLabel_1.ref)
this.render(testLabel_2.ref)
this.render(testLabel_3.ref)
......
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