2023-10-02 12:03:58 -04:00
|
|
|
#include <Geode/modify/CCTextInputNode.hpp>
|
|
|
|
|
|
|
|
#ifdef GEODE_IS_ANDROID
|
|
|
|
|
|
|
|
using namespace geode::prelude;
|
|
|
|
|
2023-12-21 11:42:01 -05:00
|
|
|
// TODO: commenting cause cctextinputnode is changed enough that i'm not sure how it works now
|
2023-10-02 12:03:58 -04:00
|
|
|
|
2023-12-21 11:42:01 -05:00
|
|
|
// struct TextNodeFix : Modify<TextNodeFix, CCTextInputNode> {
|
|
|
|
// bool onTextFieldInsertText(cocos2d::CCTextFieldTTF* field, char const* text, int count) {
|
|
|
|
// auto change = count >= m_maxLabelLength ? 1 : 0;
|
|
|
|
|
|
|
|
// m_maxLabelLength += change;
|
|
|
|
// auto ret = CCTextInputNode::onTextFieldInsertText(field, text, count);
|
|
|
|
// m_maxLabelLength -= change;
|
|
|
|
// return ret;
|
|
|
|
// }
|
|
|
|
// };
|
2023-10-02 12:03:58 -04:00
|
|
|
|
|
|
|
#endif
|