Sfoglia il codice sorgente

Merge branch 'master' of http://39.106.8.246:3003/web/persagy-web

haojianlong 4 anni fa
parent
commit
a6ad70b831

+ 2 - 1
persagy-web-big-edit/src/items/SBaseEquipment.ts

@@ -200,8 +200,9 @@ export class SBaseEquipment extends SBaseIconTextEdit {
             item.connect('textSelect', this, this.textSelectChange)
             this.textItemList.push(item)
         } else {
-            this.textItemList.splice(index, 1)
             this.scene?.removeItem(this.textItemList[index]);
+            this.textItemList.splice(index, 1)
+            this.update()
         }
     }
 

+ 1 - 0
persagy-web-big/src/items/SEquipItem.ts

@@ -107,6 +107,7 @@ export class SEquipItem extends SIconTextItem {
             }
 
             item.font.size = val.font ? val.font : 12;
+            item.backgroundColor = val.backgroundColor ? new SColor(val.backgroundColor) : SColor.Transparent;
             item.isTransform = false;
             item.showSelect = false;
             item.color = val.color