UNPKG

phaser3-rex-plugins

Version:
63 lines (54 loc) 1.24 kB
import SetNoWrapText from '../../../utils/text/SetNoWrapText.js'; export default { showPage(idx) { this.displayText( this.getPage(idx) ); return this; }, showNextPage() { this.displayText( this.getNextPage() ); return this; }, showPreviousPage() { this.displayText( this.getPreviousPage() ); return this; }, showFirstPage() { this.displayText( this.getFirstPage() ); return this; }, showLastPage() { this.displayText( this.getLastPage() ); return this; }, show() { this.displayText( this.getLines() ); return this; }, showNextLine() { this.displayText( this.setStartLineIndex(this.startLineIndex + 1).getLines() ); return this; }, showPreviousLine() { this.displayText( this.setStartLineIndex(this.startLineIndex - 1).getLines() ); return this; }, displayText(text) { SetNoWrapText(this.parent, text); } }