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

Поддержка динамического размера для UI #603

Closed
XiadaOku opened this issue Jul 19, 2022 · 1 comment
Closed

Comments

@XiadaOku
Copy link
Contributor

Сейчас элементы (например чат) зависят от разрешения, а не размеров экрана

sx = ICS_HISTORY_SIZE_X + ICS_DELTA + ICS_BUTTON_SIZE_X + (XGR_MAXX - 800);
sy = ICS_HISTORY_SIZE_Y + ICS_DELTA * 2 + ICS_BUTTON_SIZE_Y * 2 + (XGR_MAXY - 600);
// bsx = (sx - ICS_DELTA * 2) / 3;
bsx = (ICS_HISTORY_SIZE_X - ICS_DELTA * 2) / 3;
x = (XGR_MAXX - sx) / 2;
y = (XGR_MAXY - sy) / 2;

XGR_MAXX и XGR_MAXY изменяются при смене разрешения в настройках, но не при изменении размеров окна

@XiadaOku
Copy link
Contributor Author

my bad, там скейл учитывается

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

1 participant