implemented auto-mode

This commit is contained in:
Stephan Richter
2020-09-20 19:14:48 +02:00
parent f472e4345b
commit 451c35c066
7 changed files with 87 additions and 47 deletions

View File

@@ -56,8 +56,8 @@ public abstract class Block extends StretchableTile{
if (train != null) {
new Tag("h4").content(t("Train:")).addTo(window);
new Tag("span").clazz("link").attr("onclick","train("+x+","+y+",'show')").content(train.name()).addTo(window);
new Tag("span").clazz("link").attr("onclick","train("+x+","+y+",'start')").content(" - "+t("start")).addTo(window);
new Tag("span").clazz("link").attr("onclick","train("+train.id+",'"+Train.MODE_SHOW+"')").content(train.name()).addTo(window);
new Tag("span").clazz("link").attr("onclick","train("+train.id+",'"+Train.MODE_START+"')").content(" - "+t("start")).addTo(window);
}
return window;
}

View File

@@ -9,7 +9,7 @@ public abstract class Contact extends Tile{
private boolean active = false;
private void activate() throws IOException {
public void activate() throws IOException {
active = true;
stream();
new Thread() {