|
|
@@ -269,23 +269,34 @@ struct SandboxApp : AppBase {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // ФИО
|
|
|
this->mem_arena_temp->begin(this->def_mem_arena.get());
|
|
|
- uint64_t full_name_size = 65;
|
|
|
- uint8_t *full_name = this->mem_arena_temp->push(full_name_size);
|
|
|
+
|
|
|
+ // ФИО
|
|
|
+ {
|
|
|
+ uint64_t default_size = 65;
|
|
|
+
|
|
|
+ uint8_t *full_name = this->mem_arena_temp->push(default_size);
|
|
|
+ ImGui::InputText("ФИО", (char *)full_name, default_size);
|
|
|
+ tmp_client.full_name = (char *)full_name;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Телефон
|
|
|
{
|
|
|
+ uint64_t default_size = 65;
|
|
|
|
|
|
- ImGui::InputText("ФИО", (char *)full_name, full_name_size);
|
|
|
+ uint8_t *email = this->mem_arena_temp->push(default_size);
|
|
|
+ ImGui::InputText("Эл. почта", (char *)email, default_size);
|
|
|
+ tmp_client.email = (char*)email;
|
|
|
}
|
|
|
|
|
|
if (ImGui::Button("Close", ImVec2(120, 0))) {
|
|
|
- tmp_client.full_name = (char *)full_name;
|
|
|
- spdlog::info("ФИО: {}", tmp_client.full_name.c_str());
|
|
|
- this->mem_arena_temp->pop_zero();
|
|
|
+ spdlog::info("{}, {}", tmp_client.full_name, tmp_client.email);
|
|
|
+ this->mem_arena_temp->pop_zero_all();
|
|
|
ImGui::CloseCurrentPopup();
|
|
|
}
|
|
|
|
|
|
this->mem_arena_temp->end();
|
|
|
+
|
|
|
ImGui::EndPopup();
|
|
|
}
|
|
|
|