added new tiles and actions:

* Tile displaying text
* TextDisplay: an action that sends text to clients
* DetermineTrainInBlock: action that alters the context by requesting the train in a specific block
This commit is contained in:
Stephan Richter
2020-11-19 19:07:23 +01:00
parent 6f5b2f677c
commit 9ea3d7a65b
14 changed files with 266 additions and 16 deletions

View File

@@ -0,0 +1,23 @@
package de.srsoftware.web4rail.actions;
import de.srsoftware.web4rail.tags.Label;
public class ShowText extends TextAction{
@Override
public boolean fire(Context context) {
plan.stream(fill(text,context));
return true;
}
@Override
protected Label label() {
return new Label(t("Text to display on clients:")+NBSP);
}
@Override
public String toString() {
return t("Display \"{}\" on clients.",text);
}
}