Fixing ui bugs

This commit is contained in:
Vladislav Khorev committed 2026-03-09 20:52:16 +03:00
1 parent 3e8dba36a4
commit a8ded217df
5 files changed
+46 -13

No files matched your search

+2 -1
View File
@@ -139,11 +139,12 @@ namespace ZL {
if (auto btn = uiManager.findButton("takeButton")) btn->state = ButtonState::Disabled;
/*
auto velocityTv = uiManager.findTextView("velocityText");
if (velocityTv) {
velocityTv->rect.x = 10.0f;
velocityTv->rect.y = static_cast<float>(Environment::height) - velocityTv->rect.h - 10.0f;
}
}*/
uiManager.setButtonPressCallback("shootButton", [this](const std::string&) {
if (onFirePressed) onFirePressed();