# 0.2.9-1 HotFix

- Fix Bug where Input is locked for ever when removing a Menu by Changing its name / Not Process it anymore
This commit is contained in:
tobid7 2025-03-09 20:40:02 +01:00
parent edf5f387ae
commit b94dfc0c53
2 changed files with 9 additions and 1 deletions

View File

@ -37,7 +37,7 @@ SOFTWARE.
* Major Minor Patch Build
* 0x01010000 -> 1.1.0-0
*/
#define UI7_VERSION 0x00020900
#define UI7_VERSION 0x00020901
namespace PD {
namespace UI7 {

View File

@ -103,11 +103,19 @@ void UI7::Context::Update(float delta) {
Assert(current == nullptr, "Still in a Menu!");
this->io->Delta = delta;
io->DeltaStats->Add(io->Delta * 1000);
bool focused_exist = false;
for (auto it : amenus) {
auto m = menus[it];
io->CurrentMenu = m->id;
m->Update(io->Delta);
io->CurrentMenu = 0;
if (it == io->FocusedMenu) {
focused_exist = true;
}
}
if (!focused_exist) {
io->FocusedMenu = 0;
io->FocusedMenuRect = 0;
}
int list = 0;
u32 vtx_counter = 0;