Disable input when typing into a text field. (#2140)

Closes #2139
This commit is contained in:
gir489
2023-09-17 16:23:26 -04:00
committed by GitHub
parent 3bfc632f44
commit 548c9d80a3
14 changed files with 41 additions and 19 deletions

View File

@ -219,6 +219,8 @@ namespace big
static char global_name[50]{};
ImGui::SetNextItemWidth(200.f);
ImGui::InputText("##GlobalName", global_name, IM_ARRAYSIZE(global_name));
if (ImGui::IsItemActive())
g.self.hud.typing = TYPING_TICKS;
if (ImGui::Button("Save Global"))
{
save_global(global_name, global_test);