-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings + some list fixes #1108
Conversation
@@ -151,7 +151,6 @@ void TextInput::setCallback(std::function<void(std::string const&)> onInput) { | |||
m_onInput = onInput; | |||
} | |||
void TextInput::setEnabled(bool enabled) { | |||
m_input->setMouseEnabled(enabled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, this caused the scroll issues in all lists and text input doesn't even use the mouse besides touches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If setTouchEnabled
is enough to make the input non-clickable then this is fine by me
ret->setSpriteFrames("geode-list-top.png"_spr, "geode-list-side.png"_spr, 2); | ||
ret->setContentSize(size); | ||
} else { | ||
ret->setContentSize(size + ccp(5, 5)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We love hardcoded values for dealing with weird textures
@@ -74,12 +74,17 @@ | |||
}); | |||
} | |||
|
|||
bool GeodeSquareSprite::init(CCSprite* top, bool* state) { | |||
if (!CCSprite::initWithFile(isGeodeTheme() ? "GE_button_05.png"_spr : "GJ_button_01.png")) | |||
bool isGeodeTheme(bool forceDisableTheme) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be marked static
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it though? its in the header
No description provided.