WIP: JD1A 底部操作栏左侧显隐控制部分

This commit is contained in:
Yuan 2022-07-12 14:01:08 +08:00
parent e300d62896
commit 36c5e3c7db
3 changed files with 898 additions and 763 deletions

View File

@ -459,9 +459,7 @@ class Signal extends Group {
} }
this.add(this.sigPost); this.add(this.sigPost);
this.add(this.sigName); this.style.Signal.text.show && model.nameShow && this.add(this.sigName);
this.style.Signal.text.show && model.nameShow ? this.sigName.show() : this.sigName.hide();
this.add(this.sigRoute); this.add(this.sigRoute);
this.add(this.sigDelay); this.add(this.sigDelay);
this.add(this.remainTimeName); this.add(this.remainTimeName);

View File

@ -223,10 +223,9 @@ export default class Switch extends Group {
this.add(this.shapeModelB); this.add(this.shapeModelB);
this.add(this.shapeModelC); this.add(this.shapeModelC);
this.add(this.shapeBlockCover); this.add(this.shapeBlockCover);
this.add(this.name); style.Switch.text.show && model.nameShow && this.add(this.name);
this.add(this.enabledName); this.add(this.enabledName);
style.Switch.text.show && model.nameShow ? this.name.show() : this.name.hide();
} }
createLockRect() { createLockRect() {

File diff suppressed because it is too large Load Diff