Skip to content

Commit

Permalink
fix string setting filter not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Oct 8, 2024
1 parent d4ca28c commit 6d0b583
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loader/src/loader/SettingNodeV3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ bool StringSettingNodeV3::init(std::shared_ptr<StringSettingV3> setting, float w
});
m_input->setScale(.7f);
m_input->setString(this->getSetting()->getValue());
if (auto filter = this->getSetting()->getAllowedCharacters()) {
m_input->setFilter(*filter);
}

this->getButtonMenu()->addChildAtPosition(m_input, Anchor::Center);

if (setting->getEnumOptions()) {
Expand Down

0 comments on commit 6d0b583

Please sign in to comment.