Commit 5695e599 authored by 李维's avatar 李维

Bug fix

parent c9eb17a3
...@@ -56,7 +56,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy { ...@@ -56,7 +56,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
} }
this.init(); this.init();
this.refresh(); this.refresh();
this.save() // this.save()
}, this.KEY); }, this.KEY);
} }
ngOnChanges() { ngOnChanges() {
......
...@@ -198,6 +198,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -198,6 +198,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.initCutter() this.initCutter()
this.initHand() this.initHand()
this.initBlackMask() this.initBlackMask()
this.initTestLabel();
} }
cleanGameVar(){ cleanGameVar(){
...@@ -308,6 +309,13 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -308,6 +309,13 @@ export class PlayComponent implements OnInit, OnDestroy {
this.render(PB.ref) this.render(PB.ref)
} }
initTestLabel() {
let labelText = this.g_cartoon.createLabel("Test", "BRLNSR_1", "#634846", 50)
labelText.x = 0;
labelText.y = 0;
this.render(labelText, -1)
}
initXuanZhuanTai(){ initXuanZhuanTai(){
let element = this.g_cartoon.createCartoonElementImageFunc("XuanZhuanTai", "bg_taizi", (w, h)=>{ let element = this.g_cartoon.createCartoonElementImageFunc("XuanZhuanTai", "bg_taizi", (w, h)=>{
return { return {
......
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