mirror of
https://github.com/boxgaming/qbjs.git
synced 2024-09-20 04:24:45 +00:00
Advance row when printing on next column if width reached
This commit is contained in:
parent
56ef8356ba
commit
551fd8ee43
1 changed files with 10 additions and 1 deletions
9
qb.js
9
qb.js
|
@ -2200,6 +2200,15 @@ var QB = new function() {
|
|||
else if (args[ai] == QB.COLUMN_ADVANCE) {
|
||||
// advance to the next column offset
|
||||
_locX += 14 - _locX % 13;
|
||||
if (_locX > _textColumns()-1) {
|
||||
_locX = 0;
|
||||
if (_locY < _textRows()-1) {
|
||||
_locY = _locY + 1;
|
||||
}
|
||||
else {
|
||||
await _printScroll();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
var str = args[ai];
|
||||
|
|
Loading…
Reference in a new issue