WIP: Double click to item on timeline edits item in place

This commit is contained in:
Jindra Petřík
2024-10-29 16:55:43 +01:00
parent 32fb583fcb
commit 19151edaef
10 changed files with 282 additions and 106 deletions
@@ -649,7 +649,12 @@ public class InstancePropertiesPanel extends AbstractPropertiesPanel {
if (dss.size() == 1) {
EasyTagNameResolver resolver = new EasyTagNameResolver();
instanceLabel.setText(EasyStrings.translate("properties.instance.single").replace("%item%", resolver.getTagName(dss.get(0).getCharacter())));
DepthState ds = dss.get(0);
if (ds == null) {
instanceLabel.setText("");
} else {
instanceLabel.setText(EasyStrings.translate("properties.instance.single").replace("%item%", resolver.getTagName(ds.getCharacter())));
}
} else {
instanceLabel.setText(EasyStrings.translate("properties.instance.multiple").replace("%count%", "" + dss.size()));
}
@@ -703,6 +708,10 @@ public class InstancePropertiesPanel extends AbstractPropertiesPanel {
backgroundColor.add(ds.backGroundColor);
}
if (visible.size() == 0) {
return;
}
alphaPercentPropertyField.setValue(alphaPercent, true);
alphaAddPropertyField.setValue(alphaAdd, true);