WaitForContact now using new assignment function

This commit is contained in:
Stephan Richter
2021-01-16 01:20:19 +01:00
parent 901577dec6
commit fc95444fd8
4 changed files with 17 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ public class BlockFree extends Condition {
@Override
protected Window properties(List<Fieldset> preForm, FormInput formInputs, List<Fieldset> postForm) {
formInputs.add(t("Block: {}",isNull(block) ? t("unset") : block),button(t("Select from plan"),Map.of(ACTION,ACTION_UPDATE,ASSIGN,BLOCK)));
formInputs.add(t("Block")+": "+(isNull(block) ? t("unset") : block),button(t("Select from plan"),Map.of(ACTION,ACTION_UPDATE,ASSIGN,BLOCK)));
return super.properties(preForm, formInputs, postForm);
}
@@ -83,7 +83,7 @@ public class BlockFree extends Condition {
if (tile instanceof Block) {
block = (Block) tile;
} else {
return t("Clicked tile is not a block!");
return t("Clicked tile is not a {}!",t("block"));
}
return super.update(params);