Skip to content

Commit

Permalink
Fix text inputs on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Oct 15, 2023
1 parent 410e2e6 commit 131d27e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layers/IDRangePopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ bool IDRangePopup::init(IDRangeDelegate* delegate, int min, int max, const char*
if(min != 0) m_minNode->setString(std::to_string(min).c_str());
m_minNode->setAllowedChars("0123456789");
m_minNode->setMaxLabelScale(0.7f);
m_minNode->setMaxLabelWidth(11);
m_minNode->setPosition({0,6});
m_buttonMenu->addChild(m_minNode);

Expand All @@ -43,6 +44,7 @@ bool IDRangePopup::init(IDRangeDelegate* delegate, int min, int max, const char*
if(max != 0) m_maxNode->setString(std::to_string(max).c_str());
m_maxNode->setAllowedChars("0123456789");
m_maxNode->setMaxLabelScale(0.7f);
m_maxNode->setMaxLabelWidth(11);
m_maxNode->setPosition({0,-37});
m_buttonMenu->addChild(m_maxNode);

Expand Down
1 change: 1 addition & 0 deletions src/layers/JumpToPageLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ bool JumpToPageLayer::init(){
//if(dailyViewLayer != nullptr) m_textNode->setString(std::to_string(dailyViewLayer->getPage()+1).c_str());
m_textNode->setAllowedChars("0123456789");
m_textNode->setMaxLabelScale(0.7f);
m_textNode->setMaxLabelWidth(11);
m_textNode->setPosition({0,6});
m_textNode->setID("text-input");
m_buttonMenu->addChild(m_textNode);
Expand Down
1 change: 1 addition & 0 deletions src/layers/LevelIDLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ bool LevelIDLayer::init(){
m_textNode->setLabelPlaceholderColor({0x75, 0xAA, 0xF0});
m_textNode->setAllowedChars("0123456789");
m_textNode->setMaxLabelScale(0.7f);
m_textNode->setMaxLabelWidth(11);
m_textNode->setPosition({0,6});
m_buttonMenu->addChild(m_textNode);

Expand Down
1 change: 1 addition & 0 deletions src/layers/ProfileSearchOptionsSongSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ bool ProfileSearchOptionsSongSelect::init(DialogCloseDelegate* delegate){
textNode->setString(std::to_string(getOptionInt("user_search_song_id")).c_str());
textNode->setAllowedChars("0123456789");
textNode->setMaxLabelScale(0.7f);
textNode->setMaxLabelWidth(11);
textNode->setPosition({0,-37});
m_buttonMenu->addChild(textNode);

Expand Down

0 comments on commit 131d27e

Please sign in to comment.