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 a4209c1b23
commit 347f33fb2d
14 changed files with 41 additions and 19 deletions

View File

@ -16,9 +16,13 @@ namespace big
ImGui::SetNextItemWidth(width);
ImGui::InputText("Dst", dst_text, IM_ARRAYSIZE(dst_text));
if (ImGui::IsItemActive())
g.self.hud.typing = TYPING_TICKS;
ImGui::SameLine();
ImGui::SetNextItemWidth(width);
ImGui::InputText("Src", src_text, IM_ARRAYSIZE(src_text));
if (ImGui::IsItemActive())
g.self.hud.typing = TYPING_TICKS;
ImGui::SameLine();
if (ImGui::Button("Add/Change"))