Added hotkey for renaming the selected (#1137)

This commit is contained in:
Anke_Does_Coding
2025-06-24 06:16:23 +01:00
committed by GitHub
parent 3274fdb79a
commit 46149bf0e1
4 changed files with 32 additions and 1 deletions
+10
View File
@@ -590,6 +590,16 @@ void ComponentsWindow::Update(float dt)
{
animWnd.Update();
weatherWnd.Update();
if (nameWnd.nameInput.GetState() == wi::gui::WIDGETSTATE::DEACTIVATING)
{
editor->renaming_mode = false;
}
if (nameWnd.nameInput.GetState() == wi::gui::WIDGETSTATE::ACTIVE)
{
editor->renaming_mode = true;
}
}
void ComponentsWindow::ResizeLayout()