-
Notifications
You must be signed in to change notification settings - Fork 173
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
setSize cause click bugs #106
Comments
can't reproduce, could you provide modified example.cpp for HelloWorld? |
Hi, frank //create button Sprite
spSprite button = new Sprite();
//setup it:
//set button.png image. Resource 'button' defined in 'res.xml'
button->setResAnim(gameResources.getResAnim("button"));
button->setSize(200, 200); |
@frankinshtein I tried to modify the code like this, and it works, but I don't know why. bool Sprite::isOn(const Vector2& localPosition, float localScale)
{
if (!Actor::isOn(localPosition, localScale))
return false;
if (_extendedIsOn)
return true;
const HitTestData& ad = _frame.getHitTestData();
if (!ad.data || *(ad.data) == 0)
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When I call setSize in a Button and setResAnim, eg.
The button can't click anymore!
The size of frame-1.png is 1100 x 868
The oxyengine-framework is the newest version cloned from master
Can I setSize with any value I want please? Thanks in advanced.
The text was updated successfully, but these errors were encountered: