refactor(Spawn): Prevent typing when in spawn menu

This commit is contained in:
Yimura 2021-02-02 16:38:59 +01:00
parent 6903aa03be
commit 11f67334c7
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -3,12 +3,17 @@
namespace big namespace big
{ {
static char model[64]; static char model[12];
void tabbar::render_spawn() void tabbar::render_spawn()
{ {
if (ImGui::BeginTabItem("Spawn")) if (ImGui::BeginTabItem("Spawn"))
{ {
QUEUE_JOB_BEGIN_CLAUSE()
{
PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
}QUEUE_JOB_END_CLAUSE
if ( if (
ImGui::InputText("Model Name", model, sizeof(model), ImGuiInputTextFlags_EnterReturnsTrue) || ImGui::InputText("Model Name", model, sizeof(model), ImGuiInputTextFlags_EnterReturnsTrue) ||
ImGui::Button("Spawn") ImGui::Button("Spawn")