Allow a maximum of 26 lines, with L suffix

This commit is contained in:
AllyTally
2022-11-30 13:56:44 -04:00
committed by Misa Elizabeth Kai
parent 299ed90493
commit 1183083355
6 changed files with 38 additions and 6 deletions

View File

@@ -24,6 +24,8 @@ textboxclass::textboxclass(void)
rand = 0;
large = false;
print_flags = PR_FONT_LEVEL;
}
@@ -117,7 +119,10 @@ void textboxclass::addline(const std::string& t)
{
lines.push_back(t);
resize();
if ((int) lines.size() >= 12) lines.clear();
if ((int)lines.size() > (large ? 26 : 11))
{
lines.clear();
}
}
void textboxclass::pad(size_t left_pad, size_t right_pad)