mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
Compare commits
4 commits
45b201b44d
...
dc54560b82
Author | SHA1 | Date | |
---|---|---|---|
|
dc54560b82 | ||
|
d0eb881ebc | ||
|
4bd137d97e | ||
|
2d316da361 |
2 changed files with 2 additions and 1 deletions
|
@ -103,6 +103,7 @@ bool FiltersPopup::setup(ModListSource* src) {
|
|||
|
||||
m_developerNameInput = TextInput::create(inputContainer->getContentWidth(), "Developer Name");
|
||||
m_developerNameInput->setTextAlign(TextInputAlign::Left);
|
||||
m_developerNameInput->setFilter("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-");
|
||||
m_developerNameInput->setString(src->getQuery().developer.value_or(""));
|
||||
inputContainer->addChildAtPosition(m_developerNameInput, Anchor::Center);
|
||||
|
||||
|
|
|
@ -209,7 +209,7 @@ void SimpleTextArea::updateLinesNoWrap() {
|
|||
|
||||
void SimpleTextArea::updateLinesWordWrap(bool spaceWrap) {
|
||||
this->charIteration([this, spaceWrap](CCLabelBMFont* line, const char c, const float top) {
|
||||
static const std::string delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|");
|
||||
const std::string_view delimiters(spaceWrap ? " " : " `~!@#$%^&*()-_=+[{}];:'\",<.>/?\\|");
|
||||
|
||||
if (delimiters.find(c) == std::string_view::npos) {
|
||||
const std::string& text = line->getString();
|
||||
|
|
Loading…
Reference in a new issue