added dialog up / down

This commit is contained in:
musilto9 2020-03-25 12:32:28 +01:00
parent 6f2f2fae1f
commit ffa592bc3e
2 changed files with 10 additions and 2 deletions

View File

@ -76,6 +76,14 @@ public class InteractionCell extends Cell {
case "hide": case "hide":
dialog.hideText(); dialog.hideText();
break; break;
case "up":
readNextLine();
window.getDialogBar().setBounds(0, 0, WindowOfFreeMove.CELL_SIZE * WindowOfFreeMove.WINDOW_WIDTH, WindowOfFreeMove.CELL_SIZE * WindowOfFreeMove.WINDOW_HEIGHT / 4);
break;
case "down":
readNextLine();
window.getDialogBar().setBounds(0, WindowOfFreeMove.CELL_SIZE * WindowOfFreeMove.WINDOW_HEIGHT * 3 / 4, WindowOfFreeMove.CELL_SIZE * WindowOfFreeMove.WINDOW_WIDTH, WindowOfFreeMove.CELL_SIZE * WindowOfFreeMove.WINDOW_HEIGHT / 4);
break;
} }
} }
else { else {

View File

@ -1,6 +1,6 @@
Keep out Keep out
<dialog> up
... ...
<dialog> hide <dialog> down
<dialog> show
or enter<br/>I'm a sign not a cop or enter<br/>I'm a sign not a cop
<end> <end>