bug fix
This commit is contained in:
parent
677fae57f1
commit
ab076c612f
@ -463,13 +463,13 @@ export default {
|
|||||||
this.paper_main_object.addChild(this.setPaperContour());
|
this.paper_main_object.addChild(this.setPaperContour());
|
||||||
|
|
||||||
if (this.concernement.has_puissancedagir) {
|
if (this.concernement.has_puissancedagir) {
|
||||||
this.addNewPaperSymbolInstance('puissanceagir_icon');
|
this.addNewPaperSymbolInstance('puissanceagir_icon', false, 0.7);
|
||||||
}
|
}
|
||||||
if (this.concernement.has_agissantes) {
|
if (this.concernement.has_agissantes) {
|
||||||
this.paper_main_object.addChild(this.setPaperAgissantesIcons());
|
this.paper_main_object.addChild(this.setPaperAgissantesIcons());
|
||||||
}
|
}
|
||||||
if (this.concernement.has_doleance) {
|
if (this.concernement.has_doleance) {
|
||||||
this.addNewPaperSymbolInstance('doleance_icon');
|
this.addNewPaperSymbolInstance('doleance_icon', false, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.initPaperEvents()
|
this.initPaperEvents()
|
||||||
@ -521,12 +521,13 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addNewPaperSymbolInstance(name, back){
|
addNewPaperSymbolInstance(name, back, scale){
|
||||||
let instance = new paper.SymbolItem(this.paper_symbol_definitions[name]); // , {x:0,y:0}
|
let instance = new paper.SymbolItem(this.paper_symbol_definitions[name]); // , {x:0,y:0}
|
||||||
instance.name = name;
|
instance.name = name;
|
||||||
// instance.pivot = new paper.Point({x:0,y:0});
|
// instance.pivot = new paper.Point({x:0,y:0});
|
||||||
instance.position = this.pos;
|
instance.position = this.pos;
|
||||||
instance.scale(this.scale*0.7);
|
let s = scale ? this.scale * scale : this.scale;
|
||||||
|
instance.scale(s);
|
||||||
// instance.locked = true;
|
// instance.locked = true;
|
||||||
this.paper_main_object.addChild(instance);
|
this.paper_main_object.addChild(instance);
|
||||||
if (back) {
|
if (back) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user