mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-18 07:07:32 +08:00
17 lines
537 B
C++
17 lines
537 B
C++
![]() |
#include "gui/components/components.hpp"
|
||
|
#include "fiber_pool.hpp"
|
||
|
#include "natives.hpp"
|
||
|
|
||
|
namespace big
|
||
|
{
|
||
|
void components::input_text_with_hint(const std::string_view label, const std::string_view hint, char* buf, size_t buf_size, ImGuiInputTextFlags_ flag, std::function<void()> cb) {
|
||
|
if (ImGui::InputTextWithHint(label.data(), hint.data(), buf, buf_size, flag))
|
||
|
if (cb)
|
||
|
g_fiber_pool->queue_job(std::move(cb));
|
||
|
|
||
|
if (ImGui::IsItemActive())
|
||
|
g_fiber_pool->queue_job([] {
|
||
|
PAD::DISABLE_ALL_CONTROL_ACTIONS(0);
|
||
|
});
|
||
|
}
|
||
|
}
|