implemented selection of train destination

This commit is contained in:
Stephan Richter
2020-11-11 15:56:51 +01:00
parent 7a0dcbb439
commit f8afe79268
5 changed files with 57 additions and 7 deletions

View File

@@ -282,7 +282,7 @@ public abstract class Block extends StretchableTile{
replacements.put("%text%",name);
if (isSet(train)) replacements.put("%text%",train.directedName());
Tag tag = super.tag(replacements);
if (isSet(train)) tag.clazz(tag.get("class")+" occupied");
tag.clazz(tag.get("class")+" Block");
return tag;
}
@@ -355,4 +355,4 @@ public abstract class Block extends StretchableTile{
return this;
}
}
}