[editor only] Linkage container is only for composites

This commit is contained in:
fgnm
2024-05-04 14:46:44 +02:00
parent 4b872afcd7
commit 5afa445ee2
2 changed files with 6 additions and 0 deletions
@@ -175,6 +175,10 @@ public class UIBasicItemProperties extends UIItemProperties {
libraryLinkLabel.setText(text);
}
public void disableLinkage() {
linkageContainer.setVisible(false);
}
private Table getTintTable() {
VisTable tintTable = new VisTable();
tintTable.add(StandardWidgetsFactory.createLabel("Tint:")).growX().padRight(3);
@@ -177,6 +177,8 @@ public class UIBasicItemPropertiesMediator extends UIItemPropertiesMediator<UIBa
} else {
viewComponent.setLinkage(false, "not in library");
}
} else {
viewComponent.disableLinkage();
}
if (entityType == EntityFactory.LIGHT_TYPE) {