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

AntButton label #28

Closed
GrinchakYaroslav opened this issue May 6, 2014 · 1 comment
Closed

AntButton label #28

GrinchakYaroslav opened this issue May 6, 2014 · 1 comment

Comments

@GrinchakYaroslav
Copy link
Contributor

label который прикреплен к AntButton невозможно перемещать через изменение x и y. Я так понял это связано с updateLabel().
label.x = width * 0.5 - label.width * 0.5 + origin.x;
label.y = height * 0.5 - label.height * 0.5 + origin.y;

Возможно стоит добавить переменные вроде labelX и labelY . Тогда можно будет делать вот так:
label.x = width * 0.5 - label.width * 0.5 + origin.x + labelX;
label.y = height * 0.5 - label.height * 0.5 + origin.y + labelY;
Конечно читерски можно менять origin или добавлять свой лейбл ручками. Но не комильфо. :D
Или я что-то упустил.

@AntKarlov
Copy link
Owner

Поправил. Спасибы за участие! :)

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