mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-22 02:45:49 -04:00
fix floatsettingnode not accepting .
This commit is contained in:
parent
f89ae16e04
commit
c83858d4fd
1 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,7 @@ void IntSettingNode::textChanged(CCTextInputNode* input) {
|
|||
bool IntSettingNode::setup(IntSettingValue* setting, float width) {
|
||||
if (setting->castDefinition().controls.input) {
|
||||
m_menu->addChild(m_input = createInput(this, setting, width));
|
||||
m_input->getInput()->setAllowedChars("0123456789-");
|
||||
}
|
||||
else {
|
||||
m_label = CCLabelBMFont::create("", "bigFont.fnt");
|
||||
|
@ -284,6 +285,7 @@ void FloatSettingNode::textChanged(CCTextInputNode* input) {
|
|||
bool FloatSettingNode::setup(FloatSettingValue* setting, float width) {
|
||||
if (setting->castDefinition().controls.input) {
|
||||
m_menu->addChild(m_input = createInput(this, setting, width));
|
||||
m_input->getInput()->setAllowedChars("0123456789.-");
|
||||
}
|
||||
else {
|
||||
m_label = CCLabelBMFont::create("", "bigFont.fnt");
|
||||
|
|
Loading…
Reference in a new issue