Skip to content
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

LUISpriteButton doesn't work #22

Open
Minthos opened this issue Aug 28, 2016 · 2 comments
Open

LUISpriteButton doesn't work #22

Minthos opened this issue Aug 28, 2016 · 2 comments

Comments

@Minthos
Copy link

Minthos commented Aug 28, 2016

Trying to make one gives me the error message:
File "/home/user/Downloads/LUI-master/Builtin/LUISpriteButton.py", line 15, in __init__ self._button_sprite.width = width NameError: global name 'width' is not defined
I had hoped that class would let me create a clickable sprite, but I'll have to read more of the source before I figure out how to do that.

@tobspr
Copy link
Owner

tobspr commented May 8, 2017

Hi, first of all, sorry for the super late response.

can you try changing line 15 and 16 of Builtin/LUISpriteButton.py to:

    self.width = self._button_sprite.width
    self.height = self._button_sprite.height

@Minthos
Copy link
Author

Minthos commented May 9, 2017

I'll see if I remember it when I have time. I don't even remember what I used it for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants