showCurrent method
void
showCurrent()
Show the label of the current object.
Implementation
void showCurrent() {
final row = currentRow;
if (row == null) {
_oldSound = game.outputMessage(title, oldSound: _oldSound);
} else {
final position = horizontalPosition;
if (position == null) {
_oldSound = game.outputMessage(row.label, oldSound: _oldSound);
} else if (position < 0) {
final action = row.actions.reversed.elementAt((position * -1) - 1);
_oldSound = game.outputMessage(action.label, oldSound: _oldSound);
} else {
final label = row.getEntryLabel(position);
_oldSound = game.outputMessage(label, oldSound: _oldSound);
}
}
}